Package org.geotools.graph.build.feature
Class FeatureGraphGenerator
- Object
-
- BasicGraphGenerator
-
- FeatureGraphGenerator
-
- All Implemented Interfaces:
GraphGenerator
public class FeatureGraphGenerator extends BasicGraphGenerator
Builds a graph fromorg.geotools.feature.Featureobjects.This graph generator decorates another graph generator which builds a graph from geometries.
- Author:
- Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org, Anders Bakkevold, Bouvet AS, bakkedev@gmail.com
-
-
Constructor Summary
Constructors Constructor Description FeatureGraphGenerator(GraphGenerator decorated)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Graphableadd(Object obj)Adds an object to the graph.Graphableget(Object obj)Retrieves a component of the graph.GraphGeneratorgetDecorated()GraphgetGraph()Returns the graph being generated.GraphBuildergetGraphBuilder()Returns the underlying builder.Graphableremove(Object obj)Removes an object from the graph.-
Methods inherited from class BasicGraphGenerator
setGraphBuilder
-
-
-
-
Constructor Detail
-
FeatureGraphGenerator
public FeatureGraphGenerator(GraphGenerator decorated)
-
-
Method Detail
-
getGraph
public Graph getGraph()
Description copied from interface:GraphGeneratorReturns the graph being generated.- Specified by:
getGraphin interfaceGraphGenerator- Overrides:
getGraphin classBasicGraphGenerator- Returns:
- The generated graph.
- See Also:
GraphGenerator.getGraph()
-
getGraphBuilder
public GraphBuilder getGraphBuilder()
Description copied from interface:GraphGeneratorReturns the underlying builder.- Specified by:
getGraphBuilderin interfaceGraphGenerator- Overrides:
getGraphBuilderin classBasicGraphGenerator- Returns:
- The underyling builder.
- See Also:
GraphGenerator.getGraphBuilder()
-
getDecorated
public GraphGenerator getDecorated()
-
add
public Graphable add(Object obj)
Description copied from interface:GraphGeneratorAdds an object to the graph.- Specified by:
addin interfaceGraphGenerator- Overrides:
addin classBasicGraphGenerator- Parameters:
obj- The object to be modelled in the graph.- Returns:
- The graph component used to model the object.
- See Also:
GraphGenerator.add(Object)
-
remove
public Graphable remove(Object obj)
Description copied from interface:GraphGeneratorRemoves an object from the graph.- Specified by:
removein interfaceGraphGenerator- Overrides:
removein classBasicGraphGenerator- Parameters:
obj- The object modelled by the component.- Returns:
- The graph component used to model the object.
- See Also:
GraphGenerator.remove(Object)
-
get
public Graphable get(Object obj)
Description copied from interface:GraphGeneratorRetrieves a component of the graph.- Specified by:
getin interfaceGraphGenerator- Overrides:
getin classBasicGraphGenerator- Parameters:
obj- The object modelled by the component.- Returns:
- The graph component used to model the object.
- See Also:
GraphGenerator.get(Object)
-
-