GP.Collections
Class Matrix

java.lang.Object
  |
  +--GP.Collection
        |
        +--GP.Collections.Matrix

public class Matrix
extends Collection


Constructor Summary
Matrix(int columns)
           
 
Method Summary
 void AddElementAt(java.lang.Object item, Index i)
           
 void AddElementAt(java.lang.Object item, int column, int row)
           
 Index AddElementIndexed(java.lang.Object item)
           
 void AddEmptyColumn(int colIndex)
           
 void AddEmptyRow(int rowIndex)
           
 void DeleteColumn(int colIndex)
           
 void DeleteRow(int rowIndex)
           
 Sequence GetColumn(int colIndex)
           
 java.lang.Object GetElementAt(Index i)
           
 java.lang.Object GetElementAt(int column, int row)
           
 Sequence GetRow(int rowIndex)
           
 Index IndexOf(java.lang.Object item)
           
 int NumColumns()
           
 int NumRows()
           
 void RemoveElementAt(Index i)
           
 void RemoveElementAt(int column, int row)
           
 void ReplaceElementAt(java.lang.Object item, Index i)
           
 void ReplaceElementAt(java.lang.Object item, int column, int row)
           
 java.lang.String toString()
           
 
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
 

Constructor Detail

Matrix

public Matrix(int columns)
Method Detail

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