|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.geom.Point2D
java.awt.geom.Point2D.Double
plugins.big.bigsnakeutils.icy.snake2D.Snake2DNode
public class Snake2DNode
This class is used to store the snake-defining parameters. It extends the
capabilities of the class Point2D.Double
by additional state
variables.
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 | |
---|---|
static java.lang.String |
ID_FROZEN
|
static java.lang.String |
ID_HIDDEN
|
static java.lang.String |
ID_X
|
static java.lang.String |
ID_Y
|
Fields inherited from class java.awt.geom.Point2D.Double |
---|
x, y |
Constructor Summary | |
---|---|
Snake2DNode(double x,
double y)
This constructor builds a point that is initially neither frozen nor hidden. |
|
Snake2DNode(double x,
double y,
boolean frozen,
boolean hidden)
This constructor builds a point with the given initial values. |
Method Summary | |
---|---|
void |
freeze()
Sets the frozen state of the node to |
void |
hide()
Sets the hidden state of the node to |
boolean |
isFrozen()
Returns the frozen state of the node. |
boolean |
isHidden()
Returns the hidden state of the node. |
void |
loadFromXML(org.w3c.dom.Node node)
|
void |
saveToXML(org.w3c.dom.Element node)
|
java.lang.String |
toString()
This method returns text-based information about this object. |
void |
unfreeze()
Sets the frozen state of the node to |
void |
unhide()
Sets the hidden state of the node to |
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 |
---|
public static final java.lang.String ID_X
public static final java.lang.String ID_Y
public static final java.lang.String ID_FROZEN
public static final java.lang.String ID_HIDDEN
Constructor Detail |
---|
public Snake2DNode(double x, double y)
public Snake2DNode(double x, double y, boolean frozen, boolean hidden)
Method Detail |
---|
public void loadFromXML(org.w3c.dom.Node node)
public void saveToXML(org.w3c.dom.Element node)
public java.lang.String toString()
toString
in class java.awt.geom.Point2D.Double
public void hide()
public void unhide()
public boolean isHidden()
public void freeze()
public void unfreeze()
public boolean isFrozen()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |