Package org.openl.rules.table
Interface ITable<T extends ITable<T>>
-
- All Known Subinterfaces:
IGridTable,ILogicalTable
- All Known Implementing Classes:
AGridTable,AGridTableDecorator,ALogicalTable,EditableGridTable,GridTable,LogicalTable,SimpleLogicalTable,SingleCellGridTable,SubGridTable,TransformedGridTable,TransposedGridTable
public interface ITable<T extends ITable<T>>Base interface that represents abstract table.- Author:
- Andrei Astrouski, DLiauchuk
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ICellgetCell(int column, int row)TgetColumn(int column)TgetColumns(int from)TgetColumns(int from, int to)intgetHeight()TgetRow(int row)TgetRows(int from)TgetRows(int from, int to)TgetSubtable(int column, int row, int width, int height)intgetWidth()booleanisNormalOrientation()Ttranspose()
-
-
-
Method Detail
-
getWidth
int getWidth()
- Returns:
- width of the table
-
getHeight
int getHeight()
- Returns:
- height of the table
-
isNormalOrientation
boolean isNormalOrientation()
- Returns:
- checks if it is transposed or not. see
transpose()andTransposedGridTable.
-
getCell
ICell getCell(int column, int row)
- Parameters:
column-row-- Returns:
- cell form the given column and row.
-
getColumn
T getColumn(int column)
- Parameters:
column-- Returns:
- the column represented as
ITableby it`s index.
-
getColumns
T getColumns(int from)
- Parameters:
from-- Returns:
- the columns represented as
ITablefrom given index and till the right last column, including borders.
-
getColumns
T getColumns(int from, int to)
- Parameters:
from-to-- Returns:
- the columns represented as
ITablefrom given start index and till the given end.
-
getRows
T getRows(int from)
- Parameters:
from-- Returns:
- the rows represented as
ITablefrom given index and till the bottom row, including borders.
-
getRows
T getRows(int from, int to)
- Parameters:
from-to-- Returns:
- the rows represented as
ITablefrom given start index and till the given end.
-
getSubtable
T getSubtable(int column, int row, int width, int height)
- Parameters:
column- from which we want to take the subtable, including border.row- from which we want to take the subtable, including border.width- of the needed table.height- of the needed table.- Returns:
- the subtable of this table.
-
transpose
T transpose()
- Returns:
- transposed current table. See
TransposedGridTable.
-
-