ovusculeSnake2D
Class OvusculeSnake2DNode

java.lang.Object
  extended by java.awt.geom.Point2D
      extended by java.awt.geom.Point2D.Double
          extended by ovusculeSnake2D.OvusculeSnake2DNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class OvusculeSnake2DNode
extends java.awt.geom.Point2D.Double

This class is used to store the snake-defining parameters. It extends the capabilities of the class Point2D.Double by additional state variables.

See Also:
OvusculeSnake2D, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Point2D
java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Float
 
Field Summary
 boolean frozen
          Methods of the class OvusculeSnake2DKeeper are allowed to modify OvusculeSnake2DNode objects only if their frozen flag is set to false.
 boolean hidden
          Methods of the class OvusculeSnake2DKeeper are allowed to interactively display (as a cross) the nodes stored in OvusculeSnake2DNode objects only if their hidden flag is set to false.
 
Fields inherited from class java.awt.geom.Point2D.Double
x, y
 
Constructor Summary
OvusculeSnake2DNode(double x, double y)
          This constructor builds a point that is initially neither frozen nor hidden.
OvusculeSnake2DNode(double x, double y, boolean frozen, boolean hidden)
          This constructor builds a point with the given initial values.
 
Method Summary
 java.lang.String toString()
          This method returns text-based information about this object.
 
Methods inherited from class java.awt.geom.Point2D.Double
getX, getY, setLocation
 
Methods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

frozen

public boolean frozen
Methods of the class OvusculeSnake2DKeeper are allowed to modify OvusculeSnake2DNode objects only if their frozen flag is set to false.


hidden

public boolean hidden
Methods of the class OvusculeSnake2DKeeper are allowed to interactively display (as a cross) the nodes stored in OvusculeSnake2DNode objects only if their hidden flag is set to false.

Constructor Detail

OvusculeSnake2DNode

public OvusculeSnake2DNode(double x,
                           double y)
This constructor builds a point that is initially neither frozen nor hidden.

Parameters:
x - The horizontal coordinate.
y - The vertical coordinate.

OvusculeSnake2DNode

public OvusculeSnake2DNode(double x,
                           double y,
                           boolean frozen,
                           boolean hidden)
This constructor builds a point with the given initial values.

Parameters:
x - The horizontal coordinate.
y - The vertical coordinate.
frozen - Set to false to allow methods of the class OvusculeSnake2DKeeper to modify this point. Set to true otherwise.
hidden - Set to false to allow methods of the class OvusculeSnake2DKeeper to display this point. Set to true otherwise.
Method Detail

toString

public java.lang.String toString()
This method returns text-based information about this object.

Overrides:
toString in class java.awt.geom.Point2D.Double