Package org.openl.rules.table
Interface ILogicalTable
-
- All Superinterfaces:
ITable<ILogicalTable>
- All Known Implementing Classes:
ALogicalTable,LogicalTable,SimpleLogicalTable
public interface ILogicalTable extends ITable<ILogicalTable>
Logical Table consists of logical columns and rows (created as a result of merged cells). Each merged region is taken as one cell.
To makeILogicalTablefrom your sourceIGridTableuseLogicalTableHelper.logicalTable(IGridTable).- Author:
- snshor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intfindColumnStart(int gridOffset)Calculates # of the column starting exactly at gridOffset.intfindRowStart(int gridOffset)Calculates # of the row starting exactly at gridOffset.intgetColumnWidth(int column)intgetRowHeight(int row)IGridTablegetSource()-
Methods inherited from interface org.openl.rules.table.ITable
getCell, getColumn, getColumns, getColumns, getHeight, getRow, getRows, getRows, getSubtable, getWidth, isNormalOrientation, transpose
-
-
-
-
Method Detail
-
getSource
IGridTable getSource()
- Returns:
- underlying
IGridTable
-
getColumnWidth
int getColumnWidth(int column)
- Parameters:
column- index of the column- Returns:
- width of the column by its index.
-
getRowHeight
int getRowHeight(int row)
- Parameters:
row- index of the row- Returns:
- height of the row by its index.
-
findColumnStart
int findColumnStart(int gridOffset)
Calculates # of the column starting exactly at gridOffset. Throws TableException if gridOffset does not match any column's start.- Parameters:
gridOffset-- Returns:
-
findRowStart
int findRowStart(int gridOffset)
Calculates # of the row starting exactly at gridOffset. Throws TableException if gridOffset does not match any row's start.- Parameters:
gridOffset-- Returns:
-
-