|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.ics.jung.algorithms.layout.TreeLayout<V,E>
public class TreeLayout<V,E>
Field Summary | |
---|---|
protected Map<V,Integer> |
basePositions
|
static int |
DEFAULT_DISTX
|
static int |
DEFAULT_DISTY
|
protected Map<V,Point2D> |
locations
|
Constructor Summary | |
---|---|
TreeLayout(Forest<V,E> g)
|
|
TreeLayout(Forest<V,E> g,
int distx)
|
|
TreeLayout(Forest<V,E> g,
int distx,
int disty)
|
Method Summary | |
---|---|
List<V> |
getAtomics(V p)
|
Point2D |
getCenter()
|
Dimension |
getCurrentSize()
|
int |
getDepth(V v)
|
Graph<V,E> |
getGraph()
Returns the full graph (the one that was passed in at construction time) that this Layout refers to. |
Dimension |
getSize()
Returns the current size of the visualization's space. |
void |
initialize()
Initializes fields in the node that may not have been set during the constructor. |
boolean |
isLocked(V v)
Returns true if the position of vertex v
is locked. |
void |
lock(V v,
boolean state)
Sets a flag which fixes this vertex in place. |
void |
reset()
|
void |
setGraph(Graph<V,E> graph)
setter for graph |
void |
setInitializer(
provides initial locations for all vertices. |
void |
setLocation(V v,
Point2D location)
set the location of a vertex |
void |
setSize(Dimension size)
|
Point2D |
transform(V v)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map<V,Integer> basePositions
protected Map<V,Point2D> locations
public static int DEFAULT_DISTX
public static int DEFAULT_DISTY
Constructor Detail |
---|
public TreeLayout(Forest<V,E> g)
public TreeLayout(Forest<V,E> g, int distx)
public TreeLayout(Forest<V,E> g, int distx, int disty)
Method Detail |
---|
public List<V> getAtomics(V p)
public Dimension getCurrentSize()
public int getDepth(V v)
public void setSize(Dimension size)
setSize
in interface Layout<V,E>
public Graph<V,E> getGraph()
Layout
getGraph
in interface Layout<V,E>
public Dimension getSize()
Layout
getSize
in interface Layout<V,E>
public void initialize()
Layout
initialize
in interface Layout<V,E>
public boolean isLocked(V v)
Layout
true
if the position of vertex v
is locked.
isLocked
in interface Layout<V,E>
public void lock(V v, boolean state)
Layout
lock
in interface Layout<V,E>
v
- vertexpublic void reset()
reset
in interface Layout<V,E>
public void setGraph(Graph<V,E> graph)
Layout
setGraph
in interface Layout<V,E>
public void setInitializer(initializer)
Layout
setInitializer
in interface Layout<V,E>
public Point2D getCenter()
public void setLocation(V v, Point2D location)
Layout
setLocation
in interface Layout<V,E>
public Point2D transform(V v)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |