|
Eclipse Draw2d 3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.draw2d.internal.graph.GraphVisitor
org.eclipse.draw2d.internal.graph.PopulateRanks
This class takes a DirectedGraph with an optimal rank assignment and a spanning tree, and populates the ranks of the DirectedGraph. Virtual nodes are inserted for edges that span 1 or more ranks.
Ranks are populated using a pre-order depth-first traversal of the spanning tree. For each node, all edges requiring virtual nodes are added to the ranks.
Constructor Summary | |
PopulateRanks()
|
Method Summary | |
void |
revisit(DirectedGraph g)
Called in reverse order of visit. |
void |
visit(DirectedGraph g)
Act on the given directed graph. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PopulateRanks()
Method Detail |
public void visit(DirectedGraph g)
GraphVisitor
visit
in class GraphVisitor
g
- the graphGraphVisitor.visit(org.eclipse.draw2d.graph.DirectedGraph)
public void revisit(DirectedGraph g)
GraphVisitor
revisit
in class GraphVisitor
g
- the graph to act uponGraphVisitor.revisit(DirectedGraph)
|
Eclipse Draw2d 3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |