|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface for building graph components. Graphs are built by continously
supplying features to the builder, see FeatureReader
| Method Summary | |
GraphComponent |
add(org.geotools.feature.Feature feature)
Adds a feature to the graph. |
Graph |
build()
Signals the builder to complete the graph build. |
Graph |
getGraph()
Returns the graph built by the builder. |
boolean |
isDirected()
Indicates wether or not the graph is directed. |
void |
removeEdge(Edge edge)
Removes an edge from the graph. |
void |
removeNode(Node node)
Removes a node from the graph. |
void |
setDirected(boolean directed)
Sets the graph to be directed/undirected. |
| Method Detail |
public GraphComponent add(org.geotools.feature.Feature feature)
feature - Feature to be added. The feature will be encapsulated
with a GraphComponent, either a Node or a
Edge. Which one is implentation dependant.
public void removeNode(Node node)
public void removeEdge(Edge edge)
edge - public Graph build()
public Graph getGraph()
Graphpublic void setDirected(boolean directed)
directed - True if directed, false if undirected.public boolean isDirected()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||