public class GeometryGraph extends Graph<LineSegment>
| Constructor and Description |
|---|
GeometryGraph(Geometry geometry) |
GeometryGraph(GeometryFactory geometryFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEdge(Node<LineSegment> fromNode,
Node<LineSegment> toNode) |
void |
addGeometry(Geometry geometry) |
protected LineSegment |
clone(LineSegment segment,
LineString line)
Clone the object, setting the line property to the new value.
|
Geometry |
getBoundaryIntersection(LineString line)
Get the intersection between the line and the boundary of this geometry.
|
BoundingBox |
getBoundingBox(Geometry geometry) |
LineString |
getEdgeLine(int edgeId) |
Geometry |
getGeometry()
Only currently works for lines and points.
|
boolean |
intersects(LineString line) |
boolean |
isStartPoint(Point coordinates) |
void |
removeDuplicateLineEdges() |
boolean |
removeDuplicateLineEdges(Edge<LineSegment> edge)
Remove duplicate edges, edges must be processed in order of the index
attribute.
|
add, addEdge, addEdge, addEdge, addEdgeListener, close, contains, createEdge, deleteEdges, evict, evict, findEdges, findEdges, findNode, findNodes, findNodes, findNodes, findNodes, findNodes, findNodesOfDegree, getClosestDistance, getEdge, getEdgeAttribute, getEdgeAttributes, getEdgeCount, getEdgeIds, getEdgeIds, getEdgeIndex, getEdgeLines, getEdgeObject, getEdges, getEdges, getEdges, getEdges, getEdges, getEdges, getEdges, getEdges, getEdges, getEdges, getEdges, getGeometryFactory, getGraph, getId, getMaxEdgesInMemory, getNode, getNode, getNodeAttribute, getNodeAttributes, getNodeIds, getNodeIndex, getNodes, getNodes, getNodes, getNodes, getNodes, getNodes, getNodes, getObjects, getPrecisionModel, getTypeName, hasEdge, hasEdgeBetween, merge, mergeEdges, moveNode, moveNodesToMidpoint, movePointsWithinTolerance, moveToMidpoint, nodeMoved, nodes, queryEdges, queryEdges, remove, remove, remove, remove, replaceEdge, replaceEdge, replaceEdge, setEdgeAttribute, setEdgeAttributes, setGeometryFactory, setMaxEdgesInMemory, setNodeAttribute, setNodeAttributes, setPrecisionModel, splitEdge, splitEdge, splitEdge, splitEdge, visitEdges, visitEdges, visitEdges, visitEdges, visitEdges, visitNodes, visitNodes, visitNodes, visitNodespublic GeometryGraph(Geometry geometry)
public GeometryGraph(GeometryFactory geometryFactory)
public void addEdge(Node<LineSegment> fromNode, Node<LineSegment> toNode)
public void addGeometry(Geometry geometry)
protected LineSegment clone(LineSegment segment, LineString line)
Graphclone in class Graph<LineSegment>segment - The object to clone.line - The line.public Geometry getBoundaryIntersection(LineString line)
line - public BoundingBox getBoundingBox(Geometry geometry)
public LineString getEdgeLine(int edgeId)
getEdgeLine in class Graph<LineSegment>public Geometry getGeometry()
public boolean intersects(LineString line)
public boolean isStartPoint(Point coordinates)
public void removeDuplicateLineEdges()
public boolean removeDuplicateLineEdges(Edge<LineSegment> edge)
edge1 - Copyright © 2015 Revolution Systems Inc.. All rights reserved.