|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplugins.big.bigsnakeutils.icy.snake3D.Snake3DScale
public class Snake3DScale
This class is used to store the scales that are used to draw the skin of the snake.
Constructor Summary | |
---|---|
Snake3DScale(double[][] coordinates,
java.awt.Color color,
boolean closed)
This constructor builds a scale with the provided colors and flags. |
|
Snake3DScale(int nPoints)
This constructor builds a scale of length length . |
|
Snake3DScale(int nPoints,
java.awt.Color color,
boolean closed)
This constructor builds a scale with the provided colors and flags. |
Method Summary | |
---|---|
boolean |
containsInXYProjection(java.awt.geom.Point2D point)
|
java.awt.Color |
getColor()
Returns the associated color of the scale. |
double[][] |
getCoordinates()
Returns the coordinates of the scales. |
boolean |
isClosed()
Returns if the scale is closed or not. |
void |
loadFromXML(org.w3c.dom.Node node)
Loads the scale from an XML node. |
void |
saveToXML(org.w3c.dom.Node node)
Saves the scale in an XML node. |
java.lang.String |
toString()
This method returns text-based information about this object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Snake3DScale(int nPoints)
length
. The
default color color
is set to Color.RED
. The
scale is closed by default.
public Snake3DScale(int nPoints, java.awt.Color color, boolean closed)
public Snake3DScale(double[][] coordinates, java.awt.Color color, boolean closed)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public void saveToXML(org.w3c.dom.Node node) throws java.lang.Exception
java.lang.Exception
public void loadFromXML(org.w3c.dom.Node node)
public java.awt.Color getColor()
public boolean isClosed()
public double[][] getCoordinates()
public boolean containsInXYProjection(java.awt.geom.Point2D point)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |