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.Feature
objects.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 Graphable
add(Object obj)
Adds an object to the graph.Graphable
get(Object obj)
Retrieves a component of the graph.GraphGenerator
getDecorated()
Graph
getGraph()
Returns the graph being generated.GraphBuilder
getGraphBuilder()
Returns the underlying builder.Graphable
remove(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:GraphGenerator
Returns the graph being generated.- Specified by:
getGraph
in interfaceGraphGenerator
- Overrides:
getGraph
in classBasicGraphGenerator
- Returns:
- The generated graph.
- See Also:
GraphGenerator.getGraph()
-
getGraphBuilder
public GraphBuilder getGraphBuilder()
Description copied from interface:GraphGenerator
Returns the underlying builder.- Specified by:
getGraphBuilder
in interfaceGraphGenerator
- Overrides:
getGraphBuilder
in classBasicGraphGenerator
- Returns:
- The underyling builder.
- See Also:
GraphGenerator.getGraphBuilder()
-
getDecorated
public GraphGenerator getDecorated()
-
add
public Graphable add(Object obj)
Description copied from interface:GraphGenerator
Adds an object to the graph.- Specified by:
add
in interfaceGraphGenerator
- Overrides:
add
in 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:GraphGenerator
Removes an object from the graph.- Specified by:
remove
in interfaceGraphGenerator
- Overrides:
remove
in 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:GraphGenerator
Retrieves a component of the graph.- Specified by:
get
in interfaceGraphGenerator
- Overrides:
get
in classBasicGraphGenerator
- Parameters:
obj
- The object modelled by the component.- Returns:
- The graph component used to model the object.
- See Also:
GraphGenerator.get(Object)
-
-