| org.geotools.graph.build.GraphGenerator
All known Subclasses: org.geotools.graph.build.polygon.PolygonGraphGenerator, org.geotools.graph.build.basic.BasicGraphGenerator,
GraphGenerator | public interface GraphGenerator (Code) | | Contructs a graph based on relationships between the entities (objects)
modelled by the graph.
The underlying graph is generated by continually adding objects to the
generator. The Generator determines the relationships between the objects
and decides how to model the relationship and the objects themselves in the
graph.
The GraphGenerator is the upper level of the graph construction process.
It is a wrapper around the GraphBuilder class that is intended to
instruct the builder how to build the underyling graph structure.
See Also: GraphBuilder author: Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net |
Method Summary | |
public Graphable | add(Object obj) Adds an object to the graph.
Parameters: obj - The object to be modelled in the graph. | public Graphable | get(Object obj) Retrieves a component of the graph.
Parameters: obj - The object modelled by the component. | public Graph | getGraph() Returns the graph being generated. | public GraphBuilder | getGraphBuilder() Returns the underlying builder. | public Graphable | remove(Object obj) Removes an object from the graph.
Parameters: obj - The object modelled by the component. | public void | setGraphBuilder(GraphBuilder builder) Sets the underlying builder used to physically construct the graph. |
add | public Graphable add(Object obj)(Code) | | Adds an object to the graph.
Parameters: obj - The object to be modelled in the graph. The graph component used to model the object. |
get | public Graphable get(Object obj)(Code) | | Retrieves a component of the graph.
Parameters: obj - The object modelled by the component. The graph component used to model the object. |
getGraph | public Graph getGraph()(Code) | | Returns the graph being generated.
The generated graph. |
getGraphBuilder | public GraphBuilder getGraphBuilder()(Code) | | Returns the underlying builder.
The underyling builder. |
remove | public Graphable remove(Object obj)(Code) | | Removes an object from the graph.
Parameters: obj - The object modelled by the component. The graph component used to model the object. |
setGraphBuilder | public void setGraphBuilder(GraphBuilder builder)(Code) | | Sets the underlying builder used to physically construct the graph.
Parameters: builder - The new underlying GraphBuilder. |
|
|