Package org.locationtech.jts.planargraph
Class NodeMap
java.lang.Object
org.locationtech.jts.planargraph.NodeMap
A map of
Node
s, indexed by the coordinate of the node.- Version:
- 1.7
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a node to the map, replacing any that is already at that location.find
(Coordinate coord) Returns the Node at the given location, or null if no Node was there.iterator()
Returns an Iterator over the Nodes in this NodeMap, sorted in ascending order by angle with the positive x-axis.remove
(Coordinate pt) Removes the Node at the given location, and returns it (or null if no Node was there).values()
Returns the Nodes in this NodeMap, sorted in ascending order by angle with the positive x-axis.
-
Constructor Details
-
NodeMap
public NodeMap()Constructs a NodeMap without any Nodes.
-
-
Method Details
-
add
Adds a node to the map, replacing any that is already at that location.- Returns:
- the added node
-
remove
Removes the Node at the given location, and returns it (or null if no Node was there). -
find
Returns the Node at the given location, or null if no Node was there. -
iterator
Returns an Iterator over the Nodes in this NodeMap, sorted in ascending order by angle with the positive x-axis. -
values
Returns the Nodes in this NodeMap, sorted in ascending order by angle with the positive x-axis.
-