|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.neu.ccs.gui.CellPosition
Encapsulates a row-column pair referencing an index in a 2-dimensional array.
| Field Summary | |
int |
col
The column, or second, index into a 2-dimensional array. |
int |
row
The row, or first, index into a 2-dimensional array. |
| Constructor Summary | |
CellPosition()
Constructs a cell position representing the index at row 0 and column 0. |
|
CellPosition(int r,
int c)
Constructs a cell position representing the index at the given row and column. |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int row
public int col
| Constructor Detail |
public CellPosition()
CellPosition(int, int)
public CellPosition(int r,
int c)
r - the row for this cell positionc - the column for this cell positionCellPosition()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||