org.geotools.graph.structure.line
Class OptXYNode
Object
OptGraphable
OptNode
OptXYNode
- All Implemented Interfaces:
- Serializable, Graphable, XYNode, Node
public class OptXYNode
- extends OptNode
- implements XYNode
Optimized implementation of XYNode extended from OptNode. Instead of
storing an underlying coordinate object, only a set of (x,y) values are
stored eliminating the storage of additional oordinate dimensions.
- Author:
- Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net
- See Also:
OptNode
,
Serialized Form
- Module:
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OptXYNode
public OptXYNode()
getCoordinate
public Coordinate getCoordinate()
- This method creates a new Coordinate object upon each call.
- Specified by:
getCoordinate
in interface XYNode
- Returns:
- A coordinate.
- See Also:
XYNode.getCoordinate()
setCoordinate
public void setCoordinate(Coordinate c)
- This method strips only the x and y ordinates from the Coordinate object
and stores them.
- Specified by:
setCoordinate
in interface XYNode
- Parameters:
c
- A coordinate.- See Also:
XYNode.setCoordinate(Coordinate)
Copyright © 1996-2009 Geotools. All Rights Reserved.