public class LineStringGraphGenerator extends BasicLineGraphGenerator
LineString
,
Point
Constructor and Description |
---|
LineStringGraphGenerator() |
LineStringGraphGenerator(double tolerance) |
Modifier and Type | Method and Description |
---|---|
Graphable |
add(Object obj)
Adds a line to the graph.
|
protected LineSegment |
alterLine(LineSegment line,
Node n1,
Node n2) |
Graphable |
get(Object obj)
Returns the edge which represents a line.
|
Graphable |
remove(Object obj)
Removes the edge from the graph that represents a line.
|
protected void |
setObject(Node n,
Object obj) |
getEdge, getGraph, getGraphBuilder, getNode, getNodeMap, setGraphBuilder, setObject, useTolerance
public LineStringGraphGenerator(double tolerance)
public LineStringGraphGenerator()
public Graphable add(Object obj)
BasicLineGraphGenerator
add
in interface GraphGenerator
add
in class BasicLineGraphGenerator
obj
- An instance of LineSegment.LineSegment
,
GraphGenerator.add(Object)
protected LineSegment alterLine(LineSegment line, Node n1, Node n2)
alterLine
in class BasicLineGraphGenerator
public Graphable remove(Object obj)
BasicLineGraphGenerator
remove
in interface GraphGenerator
remove
in class BasicLineGraphGenerator
obj
- The object modelled by the component.GraphGenerator.remove(Object)
public Graphable get(Object obj)
BasicLineGraphGenerator
get
in interface GraphGenerator
get
in class BasicLineGraphGenerator
obj
- An instance of LineSegment.GraphGenerator.get(Object)
protected void setObject(Node n, Object obj)
setObject
in class BasicLineGraphGenerator
Copyright © 1996–2019 Geotools. All rights reserved.