|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.graph.traverse.basic.SimpleGraphWalker
A simple implementation of GraphWalker that decorates a GraphVisitor.
| Constructor Summary | |
SimpleGraphWalker(GraphVisitor visitor)
Creates a GraphWalker from a preexising GraphVisitor. |
|
| Method Summary | |
void |
finish()
Does nothing. |
GraphVisitor |
getVistor()
Returns the underlying visitor. |
void |
setVisitor(GraphVisitor visitor)
Sets the underlying visitor. |
int |
visit(Graphable element,
GraphTraversal traversal)
Defers to the underlying visitor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SimpleGraphWalker(GraphVisitor visitor)
visitor - The visitor to decorate| Method Detail |
public GraphVisitor getVistor()
public void setVisitor(GraphVisitor visitor)
visitor - The visitor to be decorated by the walker.
public int visit(Graphable element,
GraphTraversal traversal)
visit in interface GraphWalkerelement - The component being visited.traversal - The traversal controlling the sequence of graph
component visits.
GraphWalker.visit(Graphable, GraphTraversal)public void finish()
finish in interface GraphWalkerGraphWalker.finish()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||