Package org.openl.rules.table
Class TransposedGridTable
- java.lang.Object
-
- org.openl.rules.table.AGridTable
-
- org.openl.rules.table.AGridTableDecorator
-
- org.openl.rules.table.TransposedGridTable
-
- All Implemented Interfaces:
IGridTable,ITable<IGridTable>
public class TransposedGridTable extends AGridTableDecorator
TODO: createCoordinatesTransformerfor this case of transposed grid table.- Author:
- snshor
-
-
Field Summary
-
Fields inherited from class org.openl.rules.table.AGridTableDecorator
table
-
Fields inherited from interface org.openl.rules.table.IGridTable
EMPTY_GRID
-
-
Constructor Summary
Constructors Constructor Description TransposedGridTable(IGridTable gridTable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetGridColumn(int column, int row)intgetGridRow(int column, int row)intgetHeight()IGridRegiongetRegion()intgetWidth()booleanisNormalOrientation()IGridTabletranspose()-
Methods inherited from class org.openl.rules.table.AGridTableDecorator
edit, getGrid, getOriginalGridTable, stopEditing
-
Methods inherited from class org.openl.rules.table.AGridTable
getCell, getColumn, getColumns, getColumns, getRow, getRows, getRows, getSubtable, getUri, getUri, getUriParser, resetUri, toString
-
-
-
-
Constructor Detail
-
TransposedGridTable
public TransposedGridTable(IGridTable gridTable)
-
-
Method Detail
-
getGridColumn
public int getGridColumn(int column, int row)
-
getHeight
public int getHeight()
- Returns:
- height of the table
-
getGridRow
public int getGridRow(int column, int row)
-
getWidth
public int getWidth()
- Returns:
- width of the table
-
isNormalOrientation
public boolean isNormalOrientation()
- Returns:
- checks if it is transposed or not. see
ITable.transpose()andTransposedGridTable.
-
getRegion
public IGridRegion getRegion()
- Specified by:
getRegionin interfaceIGridTable- Overrides:
getRegionin classAGridTable
-
transpose
public IGridTable transpose()
- Specified by:
transposein interfaceITable<IGridTable>- Overrides:
transposein classAGridTable- Returns:
- transposed current table. See
TransposedGridTable.
-
-