| Constructor and Description |
|---|
NodeMap()
Constructs a NodeMap without any Nodes.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
add(Node n)
Adds a node to the map, replacing any that is already at that location.
|
Node |
find(Point 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(Point 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.
|
public Node add(Node n)
public Node find(Point coord)
public Iterator iterator()
public Node remove(Point pt)
public Collection values()
Copyright © 2015 Revolution Systems Inc.. All rights reserved.