org.univ.paris5.GameOfLife
Class State

java.lang.Object
  extended by org.univ.paris5.GameOfLife.State

public class State
extends java.lang.Object

Every cell have a state, it is this objet.


Field Summary
 java.lang.String indexState
           
 java.awt.Color stateColor
           
 
Constructor Summary
State(State state)
          Instance of State.
State(java.lang.String indexState, java.awt.Color stateColor)
          Instance of State.
 
Method Summary
 java.awt.Color getColor()
          Get the color.
 java.lang.String getIndex()
          Get the index.
 void setColor(java.awt.Color color)
          Set the color.
 void setIndex(java.lang.String index)
          Set the index.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

indexState

public java.lang.String indexState

stateColor

public java.awt.Color stateColor
Constructor Detail

State

public State(State state)
Instance of State. Set index.

Parameters:
state -

State

public State(java.lang.String indexState,
             java.awt.Color stateColor)
Instance of State. Set color and index.

Parameters:
state -
Method Detail

setColor

public void setColor(java.awt.Color color)
Set the color.

Parameters:
color -

setIndex

public void setIndex(java.lang.String index)
Set the index.

Parameters:
index -

getColor

public java.awt.Color getColor()
Get the color.

Returns:

getIndex

public java.lang.String getIndex()
Get the index.

Returns: