|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface StickMagnetGraph.Visitor
A StickMagnetGraph.Visitor can be used to visit all the nodes of the graph.
| Method Summary | |
|---|---|
boolean |
beginVisit(StickMagnetGraph.Edge edge)
Called when edge is added to the stack. |
boolean |
beginVisit(StickMagnetGraph.Node node,
boolean revisit)
Called when node is added to the stack. |
void |
endVisit(StickMagnetGraph.Edge edge)
Called when edge is popped from the stack. |
void |
endVisit(StickMagnetGraph.Node node)
Called when node is popped from the stack. |
| Method Detail |
|---|
boolean beginVisit(StickMagnetGraph.Node node,
boolean revisit)
node is added to the stack.
node - the node that is visitedrevisit - whether this node has already been visited
true if the node should be visited, false if not. In the
later case #endVisit(Edge) is called immediatellyvoid endVisit(StickMagnetGraph.Node node)
node is popped from the stack.
node - the node that is no longer visitedboolean beginVisit(StickMagnetGraph.Edge edge)
edge is added to the stack. The visitor always follows the edges from
source to target.
edge - the edge that is going to be visited
true if the visitor should follow the edge, false if not.
In the later case #endVisit(Edge) is called immediatellyvoid endVisit(StickMagnetGraph.Edge edge)
edge is popped from the stack.
edge - the edge that is no longer visited
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||