Package org.openl.rules.table
Class ALogicalTable
- java.lang.Object
-
- org.openl.rules.table.ALogicalTable
-
- All Implemented Interfaces:
ILogicalTable,ITable<ILogicalTable>
- Direct Known Subclasses:
LogicalTable,SimpleLogicalTable
public abstract class ALogicalTable extends Object implements ILogicalTable
Default implementation for logical tables.- Author:
- Andrei Astrouski
-
-
Constructor Summary
Constructors Constructor Description ALogicalTable(IGridTable table)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ILogicalTablegetColumn(int column)ILogicalTablegetColumns(int from)ILogicalTablegetColumns(int from, int to)ILogicalTablegetRow(int row)ILogicalTablegetRows(int from)ILogicalTablegetRows(int from, int to)IGridTablegetSource()booleanisNormalOrientation()StringtoString()ILogicalTabletranspose()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openl.rules.table.ILogicalTable
findColumnStart, findRowStart, getColumnWidth, getRowHeight
-
Methods inherited from interface org.openl.rules.table.ITable
getCell, getHeight, getSubtable, getWidth
-
-
-
-
Constructor Detail
-
ALogicalTable
public ALogicalTable(IGridTable table)
-
-
Method Detail
-
getSource
public IGridTable getSource()
- Specified by:
getSourcein interfaceILogicalTable- Returns:
- underlying
IGridTable
-
getColumn
public ILogicalTable getColumn(int column)
- Specified by:
getColumnin interfaceITable<ILogicalTable>- Returns:
- the column represented as
ITableby it`s index.
-
getColumns
public ILogicalTable getColumns(int from)
- Specified by:
getColumnsin interfaceITable<ILogicalTable>- Returns:
- the columns represented as
ITablefrom given index and till the right last column, including borders.
-
getColumns
public ILogicalTable getColumns(int from, int to)
- Specified by:
getColumnsin interfaceITable<ILogicalTable>- Returns:
- the columns represented as
ITablefrom given start index and till the given end.
-
getRow
public ILogicalTable getRow(int row)
- Specified by:
getRowin interfaceITable<ILogicalTable>- Returns:
- the row represented as
ITableby it`s index.
-
getRows
public ILogicalTable getRows(int from)
- Specified by:
getRowsin interfaceITable<ILogicalTable>- Returns:
- the rows represented as
ITablefrom given index and till the bottom row, including borders.
-
getRows
public ILogicalTable getRows(int from, int to)
- Specified by:
getRowsin interfaceITable<ILogicalTable>- Returns:
- the rows represented as
ITablefrom given start index and till the given end.
-
transpose
public ILogicalTable transpose()
- Specified by:
transposein interfaceITable<ILogicalTable>- Returns:
- transposed current table. See
TransposedGridTable.
-
isNormalOrientation
public boolean isNormalOrientation()
- Specified by:
isNormalOrientationin interfaceITable<ILogicalTable>- Returns:
- checks if it is transposed or not. see
ITable.transpose()andTransposedGridTable.
-
-