|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Grid
It contains generic methods to operate on a cell grid.
Method Summary | |
---|---|
void |
clear()
Clears grid. |
java.awt.Dimension |
getDimension()
Get dimension of cellgrid. |
java.util.Enumeration |
getEnum()
Get cell-enumerator. |
State |
getStateCell(int col,
int row)
Get status of cell. |
void |
resize(int col,
int row)
Resize the cell grid. |
void |
setCell(int col,
int row,
State state)
Set status of cell (alive or dead). |
Method Detail |
---|
State getStateCell(int col, int row)
col
- x-positionrow
- y-position
void setCell(int col, int row, State state)
col
- x-positionrow
- y-positioncell
- living or notvoid resize(int col, int row)
col
- new number of columns.row
- new number of rows.void clear()
java.awt.Dimension getDimension()
java.util.Enumeration getEnum()
Cell
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |