Class BasicXYNode
- Object
-
- BasicGraphable
-
- BasicNode
-
- BasicXYNode
-
- All Implemented Interfaces:
Serializable
,Graphable
,XYNode
,Node
- Direct Known Subclasses:
DelaunayNode
public class BasicXYNode extends BasicNode implements XYNode
Basic implementation of XYNode extended from BasicNode. The coordinate is stored in the underlying object reference of the node.- Author:
- Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net
- See Also:
BasicNode
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BasicXYNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Coordinate
getCoordinate()
Returns the coordinate associated with the node.void
setCoordinate(Coordinate c)
Sets the coordinate associated with the node.-
Methods inherited from class BasicNode
add, getDegree, getEdge, getEdges, getEdges, getRelated, remove
-
Methods inherited from class BasicGraphable
getCount, getID, getObject, isVisited, setCount, setID, setObject, setVisited, toString
-
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface Graphable
getCount, getID, getObject, getRelated, isVisited, setCount, setID, setObject, setVisited
-
-
-
-
Method Detail
-
getCoordinate
public Coordinate getCoordinate()
Description copied from interface:XYNode
Returns the coordinate associated with the node.- Specified by:
getCoordinate
in interfaceXYNode
- Returns:
- A coordinate.
- See Also:
XYNode.getCoordinate()
-
setCoordinate
public void setCoordinate(Coordinate c)
Description copied from interface:XYNode
Sets the coordinate associated with the node.- Specified by:
setCoordinate
in interfaceXYNode
- Parameters:
c
- A coordinate.- See Also:
XYNode.setCoordinate(Coordinate)
-
-