|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.ics.jung.algorithms.layout.AbstractLayout<V,E>
edu.uci.ics.jung.algorithms.layout.SpringLayout<V,E>
edu.uci.ics.jung.algorithms.layout.DAGLayout<V,E>
public class DAGLayout<V,E>
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.uci.ics.jung.algorithms.layout.SpringLayout |
---|
SpringLayout.LengthFunction<E>, SpringLayout.SpringDimensionChecker, SpringLayout.SpringEdgeData<E>, SpringLayout.SpringVertexData, SpringLayout.UnitLengthFunction<E> |
Field Summary |
---|
Fields inherited from class edu.uci.ics.jung.algorithms.layout.SpringLayout |
---|
force_multiplier, lengthFunction, repulsion_range, stretch, UNITLENGTHFUNCTION |
Fields inherited from class edu.uci.ics.jung.algorithms.layout.AbstractLayout |
---|
initialized, locations |
Constructor Summary | |
---|---|
DAGLayout(Graph<V,E> g)
|
Method Summary | |
---|---|
boolean |
done()
Override incrementsAreDone so that we can eventually stop. |
void |
initialize()
Had to override this one as well, to ensure that setRoot() is called. |
protected void |
moveNodes()
Override the moveNodes() method from SpringLayout. |
void |
propagateMinimumLevel(V v)
A recursive method for allocating the level for each vertex. |
protected void |
relaxEdges()
Overridden relaxEdges. |
void |
setLocation(V picked,
double x,
double y)
Override forceMove so that if someone moves a node, we can re-layout everything. |
void |
setLocation(V picked,
Point2D p)
Override forceMove so that if someone moves a node, we can re-layout everything. |
void |
setRoot(Graph<V,E> g)
setRoot calculates the level of each vertex in the graph. |
void |
setRoot(V v)
Set vertex v to be level 0. |
void |
setSize(Dimension size)
When a visualization is resized, it presumably wants to fix the locations of the vertices and possibly to reinitialize its data. |
Methods inherited from class edu.uci.ics.jung.algorithms.layout.SpringLayout |
---|
calcEdgeLength, calculateRepulsion, getAVertex, getForceMultiplier, getLength, getRepulsionRange, getSpringEdgeData, getSpringVertexData, getStretch, isIncremental, reset, setForceMultiplier, setRepulsionRange, setStretch, step |
Methods inherited from class edu.uci.ics.jung.algorithms.layout.AbstractLayout |
---|
getGraph, getSize, getVertices, getX, getY, isLocked, lock, lock, offsetVertex, setGraph, setInitializer, transform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DAGLayout(Graph<V,E> g)
Method Detail |
---|
public void setRoot(Graph<V,E> g)
public void setRoot(V v)
public void propagateMinimumLevel(V v)
v
- public void setSize(Dimension size)
AbstractLayout
setSize
in interface Layout<V,E>
setSize
in class SpringLayout<V,E>
public void initialize()
initialize
in interface Layout<V,E>
initialize
in class SpringLayout<V,E>
protected void moveNodes()
moveNodes
in class SpringLayout<V,E>
public boolean done()
done
in interface IterativeContext
done
in class SpringLayout<V,E>
public void setLocation(V picked, double x, double y)
setLocation
in class AbstractLayout<V,E>
public void setLocation(V picked, Point2D p)
setLocation
in interface Layout<V,E>
setLocation
in class AbstractLayout<V,E>
protected void relaxEdges()
relaxEdges
in class SpringLayout<V,E>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |