com.vividsolutions.jts.geomgraph

Class NodeMap


public class NodeMap
extends java.lang.Object

A map of nodes, indexed by the coordinate of the node
Version:
1.6

Constructor Summary

NodeMap(NodeFactory nodeFact)

Method Summary

void
add(EdgeEnd e)
Adds a node for the start point of this EdgeEnd (if one does not already exist in this map).
Node
addNode(Coordinate coord)
This method expects that a node has a coordinate value.
Node
addNode(Node n)
Node
find(Coordinate coord)
Collection
getBoundaryNodes(int geomIndex)
Iterator
iterator()
void
print(PrintStream out)
Collection
values()

Constructor Details

NodeMap

public NodeMap(NodeFactory nodeFact)

Method Details

add

public void add(EdgeEnd e)
Adds a node for the start point of this EdgeEnd (if one does not already exist in this map). Adds the EdgeEnd to the (possibly new) node.

addNode

public Node addNode(Coordinate coord)
This method expects that a node has a coordinate value.

addNode

public Node addNode(Node n)

find

public Node find(Coordinate coord)
Returns:
the node if found; null otherwise

getBoundaryNodes

public Collection getBoundaryNodes(int geomIndex)

iterator

public Iterator iterator()

print

public void print(PrintStream out)

values

public Collection values()