Style Intelligence v12.0

inetsoft.report.lens
Class SetTableLens

java.lang.Object
  extended by inetsoft.report.lens.SetTableLens
All Implemented Interfaces:
BinaryTableFilter, inetsoft.report.internal.table.CancellableTableLens, StyleConstants, TableLens, XConstants, XTable, Serializable, Cloneable
Direct Known Subclasses:
IntersectTableLens, MinusTableLens, UnionTableLens

public abstract class SetTableLens
extends Object
implements BinaryTableFilter, inetsoft.report.internal.table.CancellableTableLens

Set table lens implements most of the functions to do a set operation on one/two tables. The sub class may vary its function in table supply and visitor implementation.

See Also:
Serialized Form

Nested Class Summary
protected static class SetTableLens.Row
          Row locates a row in a table.
 
Field Summary
 
Fields inherited from interface inetsoft.report.TableLens
BREAK_BORDER, NULL
 
Fields inherited from interface inetsoft.uql.XTable
EOT
 
Fields inherited from interface inetsoft.report.StyleConstants
ARROW_LINE_1, ARROW_LINE_2, ARROW_LINE_3, BACKGROUND_CENTER, BACKGROUND_TILED, BOX_RECTANGLE, BOX_ROUNDED_RECTANGLE, CENTER, CHART_3D_BAR, CHART_3D_BAR_3D, CHART_3D_PIE, CHART_3D_STACK_BAR, CHART_AREA, CHART_BAR, CHART_BUBBLE, CHART_CANDLE, CHART_CURVE, CHART_FILL_RADAR, CHART_GANTT, CHART_INV_BAR, CHART_INV_CURVE, CHART_INV_LINE, CHART_INV_POINT, CHART_INV_STACK_BAR, CHART_LINE, CHART_MAX_USER, CHART_PARETO, CHART_PIE, CHART_PIE_EXPLODED_ALL, CHART_PIE_EXPLODED_FIRST, CHART_PIE_EXPLODED_NONE, CHART_POINT, CHART_RADAR, CHART_RIBBON, CHART_SCATTER, CHART_SPEEDOMETER, CHART_STACK_AREA, CHART_STACK_BAR, CHART_STICK, CHART_STOCK, CHART_SURFACE, CHART_USER, CHART_VOLUME, CHART_WATERFALL, CHART_XY_LINE, CIRCLE, CROSS, CURRENCY, DASH_LINE, DASH_MASK, DEFAULT_PAGE_SIZE, DIAMOND, DOT_LINE, DOUBLE_3D_LOWERED, DOUBLE_3D_RAISED, DOUBLE_LINE, DOUBLE_MASK, FILL, FILLED_CIRCLE, FILLED_DIAMOND, FILLED_SQUARE, FILLED_TRIANGLE, FRACTION_WIDTH_MASK, H_ALIGN_MASK, H_CENTER, H_CURRENCY, H_LEFT, H_LINE, H_RIGHT, LANDSCAPE, LARGE_DASH, LEFT, LINECAP_BUTT, LINECAP_ROUND, LINECAP_SQUARE, LINEJOIN_BEVEL, LINEJOIN_MITER, LINEJOIN_ROUND, LOWERED_3D, LOWERED_MASK, LT_ANGLE, MEDIUM_DASH, MEDIUM_LINE, NIL, NO_BORDER, NONE, PAPER_10X11, PAPER_10X14, PAPER_11X17, PAPER_15X11, PAPER_9X11, PAPER_A_PLUS, PAPER_A2, PAPER_A3, PAPER_A3_EXTRA, PAPER_A3_EXTRA_TRANSVERSE, PAPER_A3_TRANSVERSE, PAPER_A4, PAPER_A4_EXTRA, PAPER_A4_PLUS, PAPER_A4_TRANSVERSE, PAPER_A4SMALL, PAPER_A5, PAPER_A5_EXTRA, PAPER_A5_TRANSVERSE, PAPER_B_PLUS, PAPER_B4, PAPER_B5, PAPER_B5_EXTRA, PAPER_B5_TRANSVERSE, PAPER_CSHEET, PAPER_DSHEET, PAPER_ENV_10, PAPER_ENV_11, PAPER_ENV_12, PAPER_ENV_14, PAPER_ENV_9, PAPER_ENV_B4, PAPER_ENV_B5, PAPER_ENV_B6, PAPER_ENV_C3, PAPER_ENV_C4, PAPER_ENV_C5, PAPER_ENV_C6, PAPER_ENV_C65, PAPER_ENV_DL, PAPER_ENV_INVITE, PAPER_ENV_ITALY, PAPER_ENV_MONARCH, PAPER_ENV_PERSONAL, PAPER_ESHEET, PAPER_EXECUTIVE, PAPER_FANFOLD_LGL_GERMAN, PAPER_FANFOLD_STD_GERMAN, PAPER_FANFOLD_US, PAPER_FOLIO, PAPER_ISO_B4, PAPER_JAPANESE_POSTCARD, PAPER_LEDGER, PAPER_LEGAL, PAPER_LEGAL_EXTRA, PAPER_LETTER, PAPER_LETTER_EXTRA, PAPER_LETTER_EXTRA_TRANSVERSE, PAPER_LETTER_PLUS, PAPER_LETTER_TRANSVERSE, PAPER_LETTERSMALL, PAPER_NOTE, PAPER_QUARTO, PAPER_STATEMENT, PAPER_TABLOID, PAPER_TABLOID_EXTRA, PATTERN_0, PATTERN_1, PATTERN_10, PATTERN_11, PATTERN_12, PATTERN_13, PATTERN_14, PATTERN_15, PATTERN_16, PATTERN_17, PATTERN_18, PATTERN_19, PATTERN_2, PATTERN_3, PATTERN_4, PATTERN_5, PATTERN_6, PATTERN_7, PATTERN_8, PATTERN_9, PATTERN_NONE, PORTRAIT, RAISED_3D, RAISED_MASK, REMAINDER, RIGHT, RIGHT_ANGLE, SOLID_MASK, SQUARE, STAR, THICK_LINE, THIN_LINE, THIN_THIN_LINE, TRAY_AUTO, TRAY_CASSETTE, TRAY_ENVELOPE, TRAY_ENVMANUAL, TRAY_FORMSOURCE, TRAY_LARGECAPACITY, TRAY_LARGEFMT, TRAY_LOWER, TRAY_MANUAL, TRAY_MIDDLE, TRAY_ONLYONE, TRAY_SMALLFMT, TRAY_TRACTOR, TRAY_UPPER, TRIANGLE, ULTRA_THIN_LINE, V_ALIGN_MASK, V_ANGLE, V_BASELINE, V_BOTTOM, V_CENTER, V_LINE, V_TOP, WIDTH_MASK, X
 
Fields inherited from interface inetsoft.uql.XConstants
AM_PM_DATE_GROUP, AM_PM_OF_DAY_DATE_GROUP, AVERAGE_FORMULA, CALC_FORMULA, COLUMN, CONCAT_FORMULA, CONDITION_EMPTY_STRING, CONDITION_NULL_STRING, CONDITION_NULL_VALUE, CONDITION_REAL_NULL, CORRELATION_FORMULA, COUNT_FORMULA, COVARIANCE_FORMULA, CURRENCY_FORMAT, CURRENT_REP_CHANGED, CURRENT_REP_WILL_CHANGE, DATE_FORMAT, DAY_DATE_GROUP, DAY_OF_MONTH_DATE_GROUP, DAY_OF_WEEK_DATE_GROUP, DAY_OF_YEAR_DATE_GROUP, DECIMAL_FORMAT, DISTINCTCOUNT_FORMULA, FIRST_FORMULA, FULL_JOIN, GREATER_EQUAL_JOIN, GREATER_JOIN, GROUP_OTHERS, HOUR_DATE_GROUP, HOUR_OF_DAY_DATE_GROUP, INNER_JOIN, JOIN, LAST_FORMULA, LEAVE_OTHERS, LEFT_JOIN, LESS_EQUAL_JOIN, LESS_JOIN, MAX_FORMULA, MEDIAN_FORMULA, MESSAGE_FORMAT, MILLISECOND_DATE_GROUP, MIN_FORMULA, MINUTE_DATE_GROUP, MODE_FORMULA, MONTH_DATE_GROUP, MONTH_OF_YEAR_DATE_GROUP, NONE_DATE_GROUP, NONE_FORMULA, NOT_EQUAL_JOIN, NTHLARGEST_FORMULA, NTHMOSTFREQUENT_FORMULA, NTHSMALLEST_FORMULA, PARAM_PREFIX, PART_DATE_GROUP, PERCENT_FORMAT, PERCENTAGE_BY_COL, PERCENTAGE_BY_ROW, PERCENTAGE_NONE, PERCENTAGE_OF_COL_GRANDTOTAL, PERCENTAGE_OF_COL_GROUP, PERCENTAGE_OF_GRANDTOTAL, PERCENTAGE_OF_GROUP, PERCENTAGE_OF_ROW_GRANDTOTAL, PERCENTAGE_OF_ROW_GROUP, POPULATIONSTANDARDDEVIATION_FORMULA, POPULATIONVARIANCE_FORMULA, PRODUCT_FORMULA, PTHPERCENTILE_FORMULA, QUARTER_DATE_GROUP, QUARTER_OF_YEAR_DATE_GROUP, RIGHT_JOIN, SECOND_DATE_GROUP, SET_FORMULA, SORT_ASC, SORT_DESC, SORT_NONE, SORT_ORIGINAL, SORT_SPECIFIC, SORT_VALUE_ASC, SORT_VALUE_DESC, STANDARDDEVIATION_FORMULA, SUB_QUERY_PARAM, SUM_FORMULA, SUMSQ_FORMULA, SUMWT_FORMULA, VARIANCE_FORMULA, WEEK_DATE_GROUP, WEEK_OF_MONTH_DATE_GROUP, WEEK_OF_YEAR_DATE_GROUP, WEIGHTEDAVERAGE_FORMULA, YEAR_DATE_GROUP
 
Constructor Summary
SetTableLens()
          Constructor.
SetTableLens(TableLens ltable, TableLens rtable)
          Constructor.
 
Method Summary
 void addChangeListener(TableChangeListener listener)
          Add table change listener to the filtered table.
protected  void addSetRow(SetTableLens.Row row)
           
 void cancel()
          Cancel the table lens and running queries if supported.
 boolean containsDrill()
          Check if contains drill.
 boolean containsFormat()
          Check if contains format.
protected  inetsoft.report.internal.table.MergedTable createMergedTable()
          Create a merged table.
 void dispose()
          Dispose the set table lens.
protected  void finalize()
          Finalize the set table lens.
protected  void fireChangeEvent()
          Fire change event when filtered table changed.
 int getAlignment(int r, int c)
          Return the per cell alignment.
 Color getBackground(int r, int c)
          Return the per cell background color.
 boolean getBoolean(int r, int c)
          Get the boolean value in one row.
 byte getByte(int r, int c)
          Get the byte value in one row.
 int getColBorder(int r, int c)
          Return the style for right border of the specified row.
 Color getColBorderColor(int r, int c)
          Return the color for drawing the column border lines.
 int getColCount()
          Return the number of columns in the table.
 Class getColType(int col)
          Get the current column content type.
 String getColumnIdentifier(int col)
          Get the column identifier of a column.
 int getColWidth(int col)
          Get the current column width setting.
 Format getDefaultFormat(int row, int col)
          Return the per cell format.
 TableDataDescriptor getDescriptor()
          Get internal table data descriptor which contains table structural infos.
 double getDouble(int r, int c)
          Get the double value in one row.
 float getFloat(int r, int c)
          Get the float value in one row.
 Font getFont(int r, int c)
          Return the per cell font.
 Color getForeground(int r, int c)
          Return the per cell foreground color.
 int getHeaderColCount()
          Return the number of columns on the left of the table to be treated as header columns.
 int getHeaderRowCount()
          Return the number of rows on the top of the table to be treated as header rows.
 Insets getInsets(int r, int c)
          Return the cell gap space.
 int getInt(int r, int c)
          Get the int value in one row.
 TableLens getLeftTable()
          Get the left base table lens.
 long getLong(int r, int c)
          Get the long value in one row.
 Object getObject(int r, int c)
          Return the value at the specified cell.
 TableLens getRightTable()
          Get the right base table lens.
protected  SetTableLens.Row getRow(int row)
          Get the associated row object of a row index.
 int getRowBorder(int r, int c)
          Return the style for bottom border of the specified cell.
 Color getRowBorderColor(int r, int c)
          Return the color for drawing the row border lines.
 int getRowCount()
          Return the number of rows in the table.
 int getRowHeight(int r)
          Get the current row heights setting.
protected  int getSetRowCount()
           
 short getShort(int r, int c)
          Get the short value in one row.
 Dimension getSpan(int r, int c)
          Return the spanning setting for the cell.
 TableLens getTable(int index)
          Gets the specified base table.
 int getTableCount()
          Gets the number of base tables.
 List getTables()
          Get all base tables.
 int getTrailerColCount()
          Return the number of columns on the right of the table to be treated as trailer columns.
 int getTrailerRowCount()
          Return the number of rows on the bottom of the table to be treated as trailer rows.
protected abstract  inetsoft.report.internal.table.MergedTable.Visitor getVisitor()
          Get the merged table visitor.
 XDrillInfo getXDrillInfo(int row, int col)
          Get table drill info.
 void invalidate()
          Invalidate the table filter forcely, and the table filter will perform filtering calculation to validate itself.
 boolean isCancelled()
          Check the TableLens to see if it is cancelled.
 boolean isLineWrap(int r, int c)
          Return the per cell line wrap mode.
 boolean isNull(int r, int c)
          Check if the value at one cell is null.
 boolean isPrimitive(int col)
          Check if is primitive.
protected  boolean isSetRowsInitialized()
           
 boolean moreRows(int row)
          Check if there are more rows.
 void removeChangeListener(TableChangeListener listener)
          Remove table change listener from the filtered table.
 void setColumnIdentifier(int col, String identifier)
          Set the column identifier of a column.
 void setObject(int r, int c, Object v)
          Set the cell value.
 void setTable(int index, TableLens table)
           
 void setTables(TableLens ltable, TableLens rtable)
          Set the base table lenses.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetTableLens

public SetTableLens()
Constructor.


SetTableLens

public SetTableLens(TableLens ltable,
                    TableLens rtable)
Constructor.

Method Detail

addChangeListener

public void addChangeListener(TableChangeListener listener)
Add table change listener to the filtered table. If the table filter's data changes, a TableChangeEvent will be triggered for the TableChangeListener to process.

Specified by:
addChangeListener in interface TableLens
Parameters:
listener - the specified TableChangeListener

removeChangeListener

public void removeChangeListener(TableChangeListener listener)
Remove table change listener from the filtered table.

Specified by:
removeChangeListener in interface TableLens
Parameters:
listener - the specified TableChangeListener to be removed

fireChangeEvent

protected void fireChangeEvent()
Fire change event when filtered table changed.


getLeftTable

public TableLens getLeftTable()
Get the left base table lens.

Specified by:
getLeftTable in interface BinaryTableFilter
Returns:
the left base table lens.

getRightTable

public TableLens getRightTable()
Get the right base table lens.

Specified by:
getRightTable in interface BinaryTableFilter
Returns:
the right base table lens.

getTable

public TableLens getTable(int index)
Gets the specified base table.

Parameters:
index - the index of the table.
Returns:
the specified table or null if it is not set.

getTableCount

public int getTableCount()
Gets the number of base tables.

Returns:
the table count.

getTables

public List getTables()
Get all base tables.


getXDrillInfo

public XDrillInfo getXDrillInfo(int row,
                                int col)
Get table drill info.

Specified by:
getXDrillInfo in interface TableLens
Parameters:
row - the row number.
col - the col number.
Returns:
drill info for the specified cell.

getDefaultFormat

public Format getDefaultFormat(int row,
                               int col)
Return the per cell format.

Specified by:
getDefaultFormat in interface TableLens
Parameters:
row - row number.
col - column number.
Returns:
format for the specified cell.

containsFormat

public boolean containsFormat()
Check if contains format.

Specified by:
containsFormat in interface TableLens
Returns:
true if contains format.

containsDrill

public boolean containsDrill()
Check if contains drill.

Specified by:
containsDrill in interface TableLens
Returns:
true if contains drill.

getDescriptor

public TableDataDescriptor getDescriptor()
Get internal table data descriptor which contains table structural infos.

Specified by:
getDescriptor in interface TableLens
Specified by:
getDescriptor in interface XTable
Returns:
table data descriptor.

setTables

public void setTables(TableLens ltable,
                      TableLens rtable)
Set the base table lenses.

Parameters:
ltable - the specified left base table lens, null is not allowed.
rtable - the specified right base table lens, null is allowed.

setTable

public void setTable(int index,
                     TableLens table)

cancel

public void cancel()
Cancel the table lens and running queries if supported.

Specified by:
cancel in interface inetsoft.report.internal.table.CancellableTableLens

isCancelled

public boolean isCancelled()
Check the TableLens to see if it is cancelled.

Specified by:
isCancelled in interface inetsoft.report.internal.table.CancellableTableLens

invalidate

public void invalidate()
Invalidate the table filter forcely, and the table filter will perform filtering calculation to validate itself.

Specified by:
invalidate in interface BinaryTableFilter

createMergedTable

protected inetsoft.report.internal.table.MergedTable createMergedTable()
                                                                throws Exception
Create a merged table.

Returns:
the created merged table.
Throws:
Exception

moreRows

public boolean moreRows(int row)
Check if there are more rows. The row index is the row that will be accessed. This method must block until the row is available, or return false if the row does not exist in the table. This method is used to iterate through the table, and allow partial table to be accessed in report processing.

Specified by:
moreRows in interface XTable
Parameters:
row - row number. If EOT is passed in, this method should wait until the table is fully loaded.
Returns:
true if the row exists, or false if no more rows.

getRowCount

public int getRowCount()
Return the number of rows in the table. The number of rows includes the header rows. If the table is loading in background and loading is not done, return the negative number of loaded rows minus 1.

Specified by:
getRowCount in interface XTable
Returns:
number of rows in table.

getColCount

public int getColCount()
Return the number of columns in the table. The number of columns includes the header columns.

Specified by:
getColCount in interface XTable
Returns:
number of columns in table.

getHeaderRowCount

public int getHeaderRowCount()
Return the number of rows on the top of the table to be treated as header rows.

Specified by:
getHeaderRowCount in interface XTable
Returns:
number of header rows. Default is 1.

getHeaderColCount

public int getHeaderColCount()
Return the number of columns on the left of the table to be treated as header columns.

Specified by:
getHeaderColCount in interface XTable

getTrailerRowCount

public int getTrailerRowCount()
Return the number of rows on the bottom of the table to be treated as trailer rows.

Specified by:
getTrailerRowCount in interface XTable
Returns:
number of header rows.

getTrailerColCount

public int getTrailerColCount()
Return the number of columns on the right of the table to be treated as trailer columns.

Specified by:
getTrailerColCount in interface XTable

isPrimitive

public final boolean isPrimitive(int col)
Check if is primitive.

Specified by:
isPrimitive in interface XTable
Returns:
true if is primitive, false otherwise.

isNull

public final boolean isNull(int r,
                            int c)
Check if the value at one cell is null.

Specified by:
isNull in interface XTable
Parameters:
r - the specified row index.
c - column number.
Returns:
true if null, false otherwise.

getObject

public Object getObject(int r,
                        int c)
Return the value at the specified cell.

Specified by:
getObject in interface XTable
Parameters:
r - row number.
c - column number.
Returns:
the value at the location.

getDouble

public final double getDouble(int r,
                              int c)
Get the double value in one row.

Specified by:
getDouble in interface XTable
Parameters:
r - the specified row index.
c - column number.
Returns:
the double value in the specified row.

getFloat

public final float getFloat(int r,
                            int c)
Get the float value in one row.

Specified by:
getFloat in interface XTable
Parameters:
r - the specified row index.
c - column number.
Returns:
the float value in the specified row.

getLong

public final long getLong(int r,
                          int c)
Get the long value in one row.

Specified by:
getLong in interface XTable
Parameters:
r - the specified row index.
c - column number.
Returns:
the long value in the specified row.

getInt

public final int getInt(int r,
                        int c)
Get the int value in one row.

Specified by:
getInt in interface XTable
Parameters:
r - the specified row index.
c - column number.
Returns:
the int value in the specified row.

getShort

public final short getShort(int r,
                            int c)
Get the short value in one row.

Specified by:
getShort in interface XTable
Parameters:
r - the specified row index.
c - column number.
Returns:
the short value in the specified row.

getByte

public final byte getByte(int r,
                          int c)
Get the byte value in one row.

Specified by:
getByte in interface XTable
Parameters:
r - the specified row index.
c - column number.
Returns:
the byte value in the specified row.

getBoolean

public final boolean getBoolean(int r,
                                int c)
Get the boolean value in one row.

Specified by:
getBoolean in interface XTable
Parameters:
r - the specified row index.
c - column number.
Returns:
the boolean value in the specified row.

getColType

public Class getColType(int col)
Get the current column content type.

Specified by:
getColType in interface XTable
Parameters:
col - column number.
Returns:
column type.

setObject

public void setObject(int r,
                      int c,
                      Object v)
Set the cell value. For table filters, the setObject() call should be forwarded to the base table if possible. An implementation should throw a runtime exception if this method is not supported. In that case, data in a table can not be modified in scripts.

Specified by:
setObject in interface XTable
Parameters:
r - row number.
c - column number.
v - cell value.

getRowHeight

public int getRowHeight(int r)
Get the current row heights setting. The meaning of row heights depends on the table layout policy setting. If the row height is to be calculated by the ReportSheet based on the content, return -1.

Specified by:
getRowHeight in interface TableLens
Returns:
row height.

getColWidth

public int getColWidth(int col)
Get the current column width setting. The meaning of column widths depends on the table layout policy setting. If the column width is to be calculated by the ReportSheet based on the content, return -1. A special value, StyleConstants.REMAINDER, can be returned by this method to indicate that width of this column should be calculated based on the remaining space after all other columns' widths are satisfied. If there are more than one column that return REMAINDER as their widths, the remaining space is distributed evenly among these columns.

Specified by:
getColWidth in interface TableLens
Returns:
column width.

getRowBorderColor

public Color getRowBorderColor(int r,
                               int c)
Return the color for drawing the row border lines.

Specified by:
getRowBorderColor in interface TableLens
Parameters:
r - row number.
c - column number.
Returns:
ruling color.

getColBorderColor

public Color getColBorderColor(int r,
                               int c)
Return the color for drawing the column border lines.

Specified by:
getColBorderColor in interface TableLens
Parameters:
r - row number.
c - column number.
Returns:
ruling color.

getRowBorder

public int getRowBorder(int r,
                        int c)
Return the style for bottom border of the specified cell. The flag must be one of the style options defined in the StyleConstants class. If the row number is -1, it's checking the outside ruling on the top.

Specified by:
getRowBorder in interface TableLens
Parameters:
r - row number.
c - column number.
Returns:
ruling flag.

getColBorder

public int getColBorder(int r,
                        int c)
Return the style for right border of the specified row. The flag must be one of the style options defined in the StyleConstants class. If the column number is -1, it's checking the outside ruling on the left.

Specified by:
getColBorder in interface TableLens
Parameters:
r - row number.
c - column number.
Returns:
ruling flag.

getInsets

public Insets getInsets(int r,
                        int c)
Return the cell gap space.

Specified by:
getInsets in interface TableLens
Parameters:
r - row number.
c - column number.
Returns:
cell gap space.

getSpan

public Dimension getSpan(int r,
                         int c)
Return the spanning setting for the cell. If the specified cell is not a spanning cell, it returns null. Otherwise it returns a Dimension object with Dimension.width equals to the number of columns and Dimension.height equals to the number of rows of the spanning cell.

Specified by:
getSpan in interface TableLens
Parameters:
r - row number.
c - column number.
Returns:
span cell dimension.

getAlignment

public int getAlignment(int r,
                        int c)
Return the per cell alignment.

Specified by:
getAlignment in interface TableLens
Parameters:
r - row number.
c - column number.
Returns:
cell alignment.

getFont

public Font getFont(int r,
                    int c)
Return the per cell font. Return null to use default font.

Specified by:
getFont in interface TableLens
Parameters:
r - row number.
c - column number.
Returns:
font for the specified cell.

isLineWrap

public boolean isLineWrap(int r,
                          int c)
Return the per cell line wrap mode. If the line wrap mode is true, lines are wrapped when the text can not fit on one line. Otherwise the wrapping is never done and any overflow text will be truncated.

Specified by:
isLineWrap in interface TableLens
Parameters:
r - row number.
c - column number.
Returns:
true if line wrapping should be done.

getForeground

public Color getForeground(int r,
                           int c)
Return the per cell foreground color. Return null to use default color.

Specified by:
getForeground in interface TableLens
Parameters:
r - row number.
c - column number.
Returns:
foreground color for the specified cell.

getBackground

public Color getBackground(int r,
                           int c)
Return the per cell background color. Return null to use default color.

Specified by:
getBackground in interface TableLens
Parameters:
r - row number.
c - column number.
Returns:
background color for the specified cell.

getVisitor

protected abstract inetsoft.report.internal.table.MergedTable.Visitor getVisitor()
Get the merged table visitor.

Returns:
the merged table visitor.

finalize

protected void finalize()
                 throws Throwable
Finalize the set table lens.

Overrides:
finalize in class Object
Throws:
Throwable

dispose

public void dispose()
Dispose the set table lens.

Specified by:
dispose in interface XTable

getColumnIdentifier

public String getColumnIdentifier(int col)
Get the column identifier of a column.

Specified by:
getColumnIdentifier in interface XTable
Parameters:
col - the specified column index.
Returns:
the column indentifier of the column. The identifier might be different from the column name, for it may contain more locating information than the column name.

setColumnIdentifier

public void setColumnIdentifier(int col,
                                String identifier)
Set the column identifier of a column.

Specified by:
setColumnIdentifier in interface XTable
Parameters:
col - the specified column index.
identifier - the column indentifier of the column. The identifier might be different from the column name, for it may contain more locating information than the column name.

getRow

protected SetTableLens.Row getRow(int row)
Get the associated row object of a row index.

Parameters:
row - the specified row index.
Returns:
the associated row object.

isSetRowsInitialized

protected boolean isSetRowsInitialized()

addSetRow

protected void addSetRow(SetTableLens.Row row)

getSetRowCount

protected int getSetRowCount()

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