org.pentaho.di.trans.steps.olapinput.olap4jhelper
Class Matrix

java.lang.Object
  extended by org.pentaho.di.trans.steps.olapinput.olap4jhelper.Matrix

public class Matrix
extends Object


Constructor Summary
Matrix()
           
Matrix(int width, int height)
          Creats a Matrix.
 
Method Summary
 AbstractBaseCell get(int x, int y)
          Returns the cell at a particular coordinate.
 Map<List<Integer>,AbstractBaseCell> getMap()
          Return the generated hashmap.
 int getMatrixHeight()
          Return the height of the matrix.
 int getMatrixWidth()
          Return the width of the created matrix.
 int getOffset()
          Return the header/row data offset.
 void set(int x, int y, DataCell cell)
          Sets the value at a particular coordinate
 void set(int x, int y, MemberCell value)
          Sets the value at a particular coordinate
 void setOffset(int offset)
          Set the header/row data offset.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Matrix

public Matrix()

Matrix

public Matrix(int width,
              int height)
Creats a Matrix.

Parameters:
width - Width of matrix
height - Height of matrix
Method Detail

set

public void set(int x,
                int y,
                DataCell cell)
Sets the value at a particular coordinate

Parameters:
x - X coordinate
y - Y coordinate
value - Value
right - Whether value is right-justified
sameAsPrev - Whether value is the same as the previous value. If true, some formats separators between cells

set

public void set(int x,
                int y,
                MemberCell value)
Sets the value at a particular coordinate

Parameters:
x - X coordinate
y - Y coordinate
value - Value
right - Whether value is right-justified
sameAsPrev - Whether value is the same as the previous value. If true, some formats separators between cells

get

public AbstractBaseCell get(int x,
                            int y)
Returns the cell at a particular coordinate.

Parameters:
x - X coordinate
y - Y coordinate
Returns:
Cell

getMatrixWidth

public int getMatrixWidth()
Return the width of the created matrix.

Returns:
the width

getMatrixHeight

public int getMatrixHeight()
Return the height of the matrix.

Returns:
the height

getMap

public Map<List<Integer>,AbstractBaseCell> getMap()
Return the generated hashmap.

Returns:
the map

setOffset

public void setOffset(int offset)
Set the header/row data offset.

Parameters:
offset -

getOffset

public int getOffset()
Return the header/row data offset.

Returns:
offset