public class BasicGraphGenerator extends Object implements GraphGenerator
Constructor and Description |
---|
BasicGraphGenerator()
Constructs a new generator.
|
Modifier and Type | Method and Description |
---|---|
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.
|
void |
setGraphBuilder(GraphBuilder builder)
Sets the underlying builder used to physically construct the graph.
|
public Graphable add(Object obj)
GraphGenerator
add
in interface GraphGenerator
obj
- The object to be modelled in the graph.GraphGenerator.add(Object)
public Graphable get(Object obj)
GraphGenerator
get
in interface GraphGenerator
obj
- The object modelled by the component.GraphGenerator.get(Object)
public Graphable remove(Object obj)
GraphGenerator
remove
in interface GraphGenerator
obj
- The object modelled by the component.GraphGenerator.remove(Object)
public void setGraphBuilder(GraphBuilder builder)
GraphGenerator
setGraphBuilder
in interface GraphGenerator
builder
- The new underlying GraphBuilder.GraphGenerator.setGraphBuilder(GraphBuilder)
public GraphBuilder getGraphBuilder()
GraphGenerator
getGraphBuilder
in interface GraphGenerator
GraphGenerator.getGraphBuilder()
public Graph getGraph()
GraphGenerator
getGraph
in interface GraphGenerator
GraphGenerator.getGraph()
Copyright © 1996–2019 Geotools. All rights reserved.