public class Matrix extends Object
| Constructor and Description |
|---|
Matrix() |
Matrix(int width,
int height)
Creats a Matrix.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public Matrix()
public Matrix(int width,
int height)
width - Width of matrixheight - Height of matrixpublic void set(int x,
int y,
DataCell cell)
x - X coordinatey - Y coordinatevalue - Valueright - Whether value is right-justifiedsameAsPrev - Whether value is the same as the previous value. If true, some formats separators between cellspublic void set(int x,
int y,
MemberCell value)
x - X coordinatey - Y coordinatevalue - Valueright - Whether value is right-justifiedsameAsPrev - Whether value is the same as the previous value. If true, some formats separators between cellspublic AbstractBaseCell get(int x, int y)
x - X coordinatey - Y coordinatepublic int getMatrixWidth()
public int getMatrixHeight()
public Map<List<Integer>,AbstractBaseCell> getMap()
public void setOffset(int offset)
offset - public int getOffset()
Copyright © 2018 Hitachi Vantara. All rights reserved.