org.geotools.graph.structure.line
Interface XYNode

All Superinterfaces:
Graphable, Node
All Known Implementing Classes:
BasicDirectedXYNode, BasicXYNode, OptDirectedXYNode, OptXYNode

public interface XYNode
extends Node

Represents a node in a line network. A node in a line graph has a coordinate associated with it.

Author:
Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net

Method Summary
 com.vividsolutions.jts.geom.Coordinate getCoordinate()
          Returns the coordinate associated with the node.
 void setCoordinate(com.vividsolutions.jts.geom.Coordinate c)
          Sets the coordinate associated with the node.
 
Methods inherited from interface org.geotools.graph.structure.Node
add, getDegree, getEdge, getEdges, getEdges, remove
 
Methods inherited from interface org.geotools.graph.structure.Graphable
getCount, getID, getObject, getRelated, isVisited, setCount, setID, setObject, setVisited
 

Method Detail

getCoordinate

public com.vividsolutions.jts.geom.Coordinate getCoordinate()
Returns the coordinate associated with the node.

Returns:
A coordinate.

setCoordinate

public void setCoordinate(com.vividsolutions.jts.geom.Coordinate c)
Sets the coordinate associated with the node.

Parameters:
c - A coordinate.


Copyright © GeoTools. All Rights Reserved.