|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides ability to manipulate a matrix-like data structures.
Method Summary | |
void |
addMatrixListener(MatrixListener l)
Adds the matrix listener to be notified whenever the matrix cell has been updated or the matrix dimension has been changed. |
java.lang.Object |
get(int row,
int col)
Gets the value of the specified cell. |
int |
getCols()
Gets the number of columns. |
int |
getRows()
Gets the number of rows. |
void |
put(int row,
int col,
java.lang.Object o)
Updates the specified cell with the specified value. |
void |
removeMatrixListener(MatrixListener l)
Removes the matrix listener. |
Method Detail |
public int getRows()
public int getCols()
public java.lang.Object get(int row, int col)
row
- the specified row.col
- the specified column.public void put(int row, int col, java.lang.Object o)
row
- the specified row.col
- the specified column.obj
- the specified value to update the cell value.public void addMatrixListener(MatrixListener l)
l
- the matrix listener.public void removeMatrixListener(MatrixListener l)
l
- the matrix listener.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |