Class BasicXYNode
Object
BasicGraphable
BasicNode
BasicXYNode
- All Implemented Interfaces:
Serializable,Graphable,XYNode,Node
- Direct Known Subclasses:
DelaunayNode
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the coordinate associated with the node.voidSets the coordinate associated with the node.Methods inherited from class BasicNode
add, getDegree, getEdge, getEdges, getEdges, getRelated, removeMethods inherited from class BasicGraphable
getCount, getID, getObject, isVisited, setCount, setID, setObject, setVisited, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Graphable
getCount, getID, getObject, getRelated, isVisited, setCount, setID, setObject, setVisited
-
Constructor Details
-
BasicXYNode
public BasicXYNode()
-
-
Method Details
-
getCoordinate
Description copied from interface:XYNodeReturns the coordinate associated with the node.- Specified by:
getCoordinatein interfaceXYNode- Returns:
- A coordinate.
- See Also:
-
setCoordinate
Description copied from interface:XYNodeSets the coordinate associated with the node.- Specified by:
setCoordinatein interfaceXYNode- Parameters:
c- A coordinate.- See Also:
-