org.geotools.graph.build.feature
Class FeatureGraphGenerator

Object
  extended by BasicGraphGenerator
      extended by FeatureGraphGenerator
All Implemented Interfaces:
GraphGenerator

public class FeatureGraphGenerator
extends BasicGraphGenerator

Builds a graph from 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
Module:
modules/extension/graph (gt-graph.jar)

Constructor Summary
FeatureGraphGenerator(GraphGenerator decorated)
           
 
Method Summary
 Graphable add(Object obj)
          Adds an object to the graph.
 Graphable get(Object obj)
          Retrieves a component of the graph.
 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
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface GraphGenerator
Overrides:
getGraph in class BasicGraphGenerator
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 interface GraphGenerator
Overrides:
getGraphBuilder in class BasicGraphGenerator
Returns:
The underyling builder.
See Also:
GraphGenerator.getGraphBuilder()

add

public Graphable add(Object obj)
Description copied from interface: GraphGenerator
Adds an object to the graph.

Specified by:
add in interface GraphGenerator
Overrides:
add in class BasicGraphGenerator
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 interface GraphGenerator
Overrides:
remove in class BasicGraphGenerator
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 interface GraphGenerator
Overrides:
get in class BasicGraphGenerator
Parameters:
obj - The object modelled by the component.
Returns:
The graph component used to model the object.
See Also:
GraphGenerator.get(Object)


Copyright © 1996-2009 Geotools. All Rights Reserved.