|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This class is a functional visitor for subgraphs.
It can be used via the method
Graph.visitSubgraphs(GraphVisitor)
| Field Summary | |
static int |
POST_ORDER
Constant that tells about the order of graph traversal. |
static int |
PRE_ORDER
Constant that tells about the order of graph traversal. |
| Method Summary | |
int |
getOrder()
Returns a constant that defines the order of graph traversal. |
void |
visit(Subgraph subgraph,
int level)
Callback invoked during traversal of graph-hierarchies. |
| Field Detail |
public static final int PRE_ORDER
public static final int POST_ORDER
| Method Detail |
public int getOrder()
PRE_ORDER, which means that subgraphs
are visited after the actual node is visited, or POST_ORDER,
which means that subgraphs are visited before the actual node is visited.
public void visit(Subgraph subgraph,
int level)
subgraph - the Subgraph that is currently
being visited.level - the depth of the recursion, which is measured
from the beginning point of the recursion. This does not
necessarily have to be the top-level-graph if the recursion
was initiated from an already nested graph.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||