Style Intelligence v12.0

inetsoft.report.lens
Class CalcTableLens.CalcTableLensDataDescriptor

java.lang.Object
  extended by inetsoft.report.lens.CalcTableLens.CalcTableLensDataDescriptor
All Implemented Interfaces:
TableDataDescriptor, Serializable
Enclosing class:
CalcTableLens

protected class CalcTableLens.CalcTableLensDataDescriptor
extends Object
implements TableDataDescriptor

FreehandTableLens data descriptor.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface inetsoft.report.TableDataDescriptor
CALC_TABLE, CROSSTAB_TABLE, FREEHAND_TABLE, GROUPED_TABLE, NORMAL_TABLE, SUMMARY_TABLE, TABLE_SUMMARY_TABLE, UNKNOWN_TABLE
 
Constructor Summary
CalcTableLens.CalcTableLensDataDescriptor()
           
 
Method Summary
 boolean containsDrill()
          Check if contains drill.
 boolean containsFormat()
          Check if contains format.
 TableDataPath getCellDataPath(int row, int col)
          Get table data path of a specified table cell.
 TableDataPath getColDataPath(int col)
          Get table data path of a specified table column.
 TableDataPath getRowDataPath(int row)
          Get table data path of a specified table row.
 int getRowLevel(int row)
          Get level of a specified table row, which is required for nested table.
 int getType()
          Get table type which is one of the table types defined in table data descriptor like NORMAL_TABLE, CROSSTAB_TABLE, etc.
 XMetaInfo getXMetaInfo(TableDataPath path)
          Get table xmeta info.
 boolean isCellDataPath(int row, int col, TableDataPath path)
          Check if a cell belongs to a table data path.
 boolean isCellDataPathType(int row, int col, TableDataPath path)
          Check if a cell belongs to a table data path in a loose way.
 boolean isColDataPath(int col, TableDataPath path)
          Check if a column belongs to a table data path.
 boolean isRowDataPath(int row, TableDataPath path)
          Check if a row belongs to a table data path.
 String toString()
          Get the string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CalcTableLens.CalcTableLensDataDescriptor

public CalcTableLens.CalcTableLensDataDescriptor()
Method Detail

getColDataPath

public TableDataPath getColDataPath(int col)
Get table data path of a specified table column.

Specified by:
getColDataPath in interface TableDataDescriptor
Parameters:
col - the specified table column
Returns:
table data path of the table column

getRowDataPath

public TableDataPath getRowDataPath(int row)
Get table data path of a specified table row.

Specified by:
getRowDataPath in interface TableDataDescriptor
Parameters:
row - the specified table row
Returns:
table data path of the table row

getCellDataPath

public TableDataPath getCellDataPath(int row,
                                     int col)
Get table data path of a specified table cell.

Specified by:
getCellDataPath in interface TableDataDescriptor
Parameters:
row - the specified table cell row
col - the specified table cell col
Returns:
table data path of the table cell

isColDataPath

public boolean isColDataPath(int col,
                             TableDataPath path)
Check if a column belongs to a table data path.

Specified by:
isColDataPath in interface TableDataDescriptor
Parameters:
col - the specified table col
path - the specified table data path
Returns:
true if the col belongs to the table data path, false otherwise

isRowDataPath

public boolean isRowDataPath(int row,
                             TableDataPath path)
Check if a row belongs to a table data path.

Specified by:
isRowDataPath in interface TableDataDescriptor
Parameters:
row - the specified table row
path - the specified table data path
Returns:
true if the row belongs to the table data path, false otherwise

isCellDataPathType

public boolean isCellDataPathType(int row,
                                  int col,
                                  TableDataPath path)
Check if a cell belongs to a table data path in a loose way. Note: when cheking, path in the table data path will be ignored.

Specified by:
isCellDataPathType in interface TableDataDescriptor
Parameters:
row - the specified table cell row
col - the specified table cell col
path - the specified table data path
Returns:
true if the cell belongs to the table data path, false otherwise

isCellDataPath

public boolean isCellDataPath(int row,
                              int col,
                              TableDataPath path)
Check if a cell belongs to a table data path.

Specified by:
isCellDataPath in interface TableDataDescriptor
Parameters:
row - the specified table cell row
col - the specified table cell col
path - the specified table data path
Returns:
true if the cell belongs to the table data path, false otherwise

getRowLevel

public int getRowLevel(int row)
Get level of a specified table row, which is required for nested table. The default value is -1.

Specified by:
getRowLevel in interface TableDataDescriptor
Parameters:
row - the specified table row
Returns:
level of the table row

getType

public int getType()
Get table type which is one of the table types defined in table data descriptor like NORMAL_TABLE, CROSSTAB_TABLE, etc.

Specified by:
getType in interface TableDataDescriptor
Returns:
table type

getXMetaInfo

public XMetaInfo getXMetaInfo(TableDataPath path)
Get table xmeta info.

Specified by:
getXMetaInfo in interface TableDataDescriptor
Parameters:
path - the specified table data path
Returns:
meta info of the table data path

containsFormat

public boolean containsFormat()
Check if contains format.

Specified by:
containsFormat in interface TableDataDescriptor
Returns:
true if contains format

containsDrill

public boolean containsDrill()
Check if contains drill.

Specified by:
containsDrill in interface TableDataDescriptor
Returns:
true if contains drill, false otherwise

toString

public String toString()
Get the string representation.

Overrides:
toString in class Object

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.