com.vividsolutions.jts.planargraph
Class NodeMap
java.lang.Object
com.vividsolutions.jts.planargraph.NodeMap
public class NodeMap
extends java.lang.Object
A map of
Node
s, indexed by the coordinate of the node.
NodeMap() - Constructs a NodeMap without any Nodes.
|
Node | add(Node n) - Adds a node to the map, replacing any that is already at that location.
|
Node | find(Coordinate coord) - Returns the Node at the given location, or null if no Node was there.
|
Iterator | iterator() - Returns an Iterator over the Nodes in this NodeMap, sorted in ascending order
by angle with the positive x-axis.
|
Node | remove(Coordinate pt) - Removes the Node at the given location, and returns it (or null if no Node was there).
|
Collection | values() - Returns the Nodes in this NodeMap, sorted in ascending order
by angle with the positive x-axis.
|
NodeMap
public NodeMap()
Constructs a NodeMap without any Nodes.
add
public Node add(Node n)
Adds a node to the map, replacing any that is already at that location.
find
public Node find(Coordinate coord)
Returns the Node at the given location, or null if no Node was there.
iterator
public Iterator iterator()
Returns an Iterator over the Nodes in this NodeMap, sorted in ascending order
by angle with the positive x-axis.
remove
public Node remove(Coordinate pt)
Removes the Node at the given location, and returns it (or null if no Node was there).
values
public Collection values()
Returns the Nodes in this NodeMap, sorted in ascending order
by angle with the positive x-axis.