Class NodeMap

Hierarchy: Object , NodeMap
public class NodeMap
A map of Nodes, indexed by the coordinate of the node.

Other

  • version: 1.7
public NodeMap()
Constructs a NodeMap without any Nodes.
public Node add(Node n)
Adds a node to the map, replacing any that is already at that location.
Returns:
the added node
public Node remove(Coordinate pt)
Removes the Node at the given location, and returns it (or null if no Node was there).
public Node find(Coordinate coord)
Returns the Node at the given location, or null if no Node was there.
public Iterator iterator()
Returns an Iterator over the Nodes in this NodeMap, sorted in ascending order by angle with the positive x-axis.
public Collection values()
Returns the Nodes in this NodeMap, sorted in ascending order by angle with the positive x-axis.