| java.lang.Object com.jeta.forms.store.AbstractJETAPersistable com.jeta.forms.store.support.Matrix
Matrix | public class Matrix extends AbstractJETAPersistable (Code) | | A Matrix represents a storable grid of objects. The grid can
grow or shrink by adding/removing rows or column.
author: Jeff Tassin |
Constructor Summary | |
public | Matrix() | public | Matrix(int rows, int cols) |
VERSION | final public static int VERSION(Code) | | The version of this class
|
serialVersionUID | final static long serialVersionUID(Code) | | |
Matrix | public Matrix(int rows, int cols)(Code) | | ctor
|
getColumnCount | public int getColumnCount()(Code) | | the number of columns in the matrix |
getRowCount | public int getRowCount()(Code) | | the number of rows in the matrix |
getValue | public Object getValue(int row, int col)(Code) | | the value at the given row/column |
insertColumn | public void insertColumn(int col)(Code) | | Inserts a column in the matrix
Parameters: col - the 0-based column |
insertRow | public void insertRow(int row)(Code) | | Inserts a row in the matrix
Parameters: row - the 0-based row |
removeColumn | public void removeColumn(int col)(Code) | | Removes a column from the matrix
Parameters: col - the 0-based column |
removeRow | public void removeRow(int row)(Code) | | Removes a row from the matrix
Parameters: row - the 0-based row |
setValue | public void setValue(int row, int col, Object value)(Code) | | Sets the value at the given row/column
|
|
|