GP.Collections
Class Matrix
java.lang.Object
|
+--GP.Collection
|
+--GP.Collections.Matrix
- public class Matrix
- extends Collection
Constructor Summary |
Matrix(int columns)
|
Methods inherited from class GP.Collection |
AddElement, Contains, Copy, DoForEach, Empty, EnsureSize, GetBag, GetCurrentElement, GetRandomElement, NumElements, RemoveAllElements, RemoveElement |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Matrix
public Matrix(int columns)
NumColumns
public int NumColumns()
NumRows
public int NumRows()
GetElementAt
public java.lang.Object GetElementAt(int column,
int row)
GetElementAt
public java.lang.Object GetElementAt(Index i)
AddElementAt
public void AddElementAt(java.lang.Object item,
int column,
int row)
AddElementAt
public void AddElementAt(java.lang.Object item,
Index i)
AddElementIndexed
public Index AddElementIndexed(java.lang.Object item)
RemoveElementAt
public void RemoveElementAt(int column,
int row)
RemoveElementAt
public void RemoveElementAt(Index i)
ReplaceElementAt
public void ReplaceElementAt(java.lang.Object item,
int column,
int row)
ReplaceElementAt
public void ReplaceElementAt(java.lang.Object item,
Index i)
IndexOf
public Index IndexOf(java.lang.Object item)
AddEmptyRow
public void AddEmptyRow(int rowIndex)
AddEmptyColumn
public void AddEmptyColumn(int colIndex)
DeleteRow
public void DeleteRow(int rowIndex)
DeleteColumn
public void DeleteColumn(int colIndex)
GetRow
public Sequence GetRow(int rowIndex)
GetColumn
public Sequence GetColumn(int colIndex)
toString
public java.lang.String toString()
- Overrides:
toString
in class Collection