| java.lang.Object com.salmonllc.util.Vector2D
Vector2D | public class Vector2D implements java.io.Serializable(Code) | | This class is a two dimensional Vector. It contains rows and columns that can expand as necessary.
|
Constructor Summary | |
public | Vector2D() Constructs an empty 2 Dimensional vector. |
_columnCapacity | int _columnCapacity(Code) | | |
_columnCount | int _columnCount(Code) | | |
_columnSize | int _columnSize(Code) | | |
Vector2D | public Vector2D()(Code) | | Constructs an empty 2 Dimensional vector.
|
addColumns | public void addColumns(int noColumns)(Code) | | This method adds a specified number of columns to the vector
Parameters: The - Number of colums to add. |
addRows | public void addRows(int noRows)(Code) | | This method adds a specified number of rows to the vector
Parameters: The - Number of rows to add. |
elementAt | public Object elementAt(int index)(Code) | | This method returns the object at row and column..
|
elementAt | public Object elementAt(int row, int column)(Code) | | This method returns the object at row and column..
|
getColumnCount | public int getColumnCount()(Code) | | This method returns the number of columns in the 2D Vector
|
getColumnSize | public int getColumnSize()(Code) | | This method returns the number of columns that are occupied with data in the 2D Vector
|
getRowCount | public int getRowCount()(Code) | | This method returns the number of columns in the 2DVector
|
getRowSize | public int getRowSize()(Code) | | This method returns the number of rows that are occupied with data in the 2D Vector
|
indexAt | public int indexAt(int row, int column)(Code) | | This method returns the index of the item at row and column or -1 if the element doesn't exist.
|
insertRow | public void insertRow(int row)(Code) | | This method inserts a row immediately before the specified row
|
removeAll | public void removeAll()(Code) | | This method inserts a row immediately before the specified row
|
removeRow | public void removeRow(int row)(Code) | | This method removes a row from the 2DVector
Parameters: row - The row to remove. |
setElementAt | public void setElementAt(int row, int column, Object in)(Code) | | This method sets the value of a cell in the 2D Vector
Parameters: row - The row position Parameters: column - The row position Parameters: in - The object to set. |
setElementAt | public void setElementAt(int index, Object in)(Code) | | This method sets the value of a cell in the 2D Vector
Parameters: in - The object to set. Parameters: index - The position to put it at |
size | public int size()(Code) | | This method was created in VisualAge.
int |
toString | public String toString()(Code) | | Returns a string representation of the 2D vector.
|
|
|