|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgenegui.CellState
CellState.java A class used in conjuction with ModelState. Represents the state of all the nodes in a cell and its position.
Constructor Summary | |
CellState()
Simple constructor does little to be proud of. |
|
CellState(int size)
Main constructor assigns a 0 value to all nodes. |
Method Summary | |
CellState |
cloneState()
Makes a clone of this CellState instance and returns it as a new CellState instance. |
java.awt.geom.Point2D.Float |
getCellPosition()
Returns the location of the cell. |
float |
getNodeValue(int index)
Returns the value of a single node for this cell. |
float[] |
getNodeValueArray()
Returns an array with the values of all the nodes for this cell. |
void |
reset()
Resets all node values for this cell to 0. |
void |
setCellPosition(java.awt.geom.Point2D.Float position)
Sets the location of the cell. |
void |
setCellState(CellState state)
Sets the state of this cell by copying it from the another cell state passed as an argument. |
void |
setNodeValue(int index,
float value)
Sets the value of a node for this cell. |
void |
setNodeValueArray(float[] values)
Sets the values of all the nodes for this cell based upon an array of values passed to it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CellState()
public CellState(int size)
Method Detail |
public CellState cloneState()
public java.awt.geom.Point2D.Float getCellPosition()
public float getNodeValue(int index)
public float[] getNodeValueArray()
public void setCellPosition(java.awt.geom.Point2D.Float position)
public void setCellState(CellState state)
public void setNodeValue(int index, float value)
public void setNodeValueArray(float[] values)
public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |