|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.report.lens.AbstractTableLens
inetsoft.report.lens.AttributeTableLens
inetsoft.report.SummaryTableLens
public abstract class SummaryTableLens
This table lens allows a summary row to be added to each table segment. The getSummary() method must be implemented to calculate the summary for each column. The method is called at the end of each page to calculate the summary for the table segment on that page. This table lens must be the top-level table lens. It can not be wrapped around by a table style or any other table lens. If a table style is to be applied to a table, it must be applied to the base table of the SummaryTableLens, and NOT applied to the SummaryTableLens object.
| Field Summary |
|---|
| Fields inherited from class inetsoft.report.lens.AttributeTableLens |
|---|
alignmap, attritable, backgroundmap, cache, check, colborderCmap, colbordermap, fontmap, foregroundmap, insetsmap, linkmap, presentermap, rowborderCmap, rowbordermap, table, wrapmap |
| Fields inherited from class inetsoft.report.lens.AbstractTableLens |
|---|
descriptor, isLeftAlign |
| Fields inherited from interface inetsoft.report.TableLens |
|---|
BREAK_BORDER, NULL |
| Fields inherited from interface inetsoft.uql.XTable |
|---|
EOT |
| Constructor Summary | |
|---|---|
SummaryTableLens()
The setTable() method must be called before this can be used. |
|
SummaryTableLens(TableLens table)
Create a SummaryTableLens that add summarization information (rows) to the original table. |
|
| Method Summary | |
|---|---|
abstract Object |
getSummary(int col,
int row,
int nrows)
Calculate the summary value for the specified column and rows. |
int |
getSummaryAlignment(int c)
Return the per cell alignment. |
Color |
getSummaryBackground(int c)
Return the per cell background color. |
int |
getSummaryColBorder(int col)
Get the summary column border style. |
Color |
getSummaryColBorderColor(int col)
Get the summary column border color. |
Font |
getSummaryFont(int c)
Return the per cell font. |
Color |
getSummaryForeground(int c)
Return the per cell foreground color. |
int |
getSummaryHeight()
Return the summary row height. |
Insets |
getSummaryInsets(int c)
Return the cell gap space. |
int |
getSummaryRowBorder(int col)
Get the summary row border style. |
Color |
getSummaryRowBorderColor(int col)
Get the summary row border color. |
Dimension |
getSummarySpan(int c)
Return the spanning setting for the cell. |
boolean |
isSummaryLineWrap(int c)
Return the per cell line wrap mode. |
Object |
render(Object obj,
int c)
Apply appropriate format and presenter if any is register for this column. |
| Methods inherited from class inetsoft.report.lens.AbstractTableLens |
|---|
addChangeListener, containsDrill, containsFormat, findColumnByIdentifier, fireChangeEvent, getBoolean, getByte, getDefaultFormat, getDouble, getFloat, getInt, getLong, getShort, getXDrillInfo, isNull, isPrimitive, removeChangeListener, setColumnIdentifier, setLeftAlign, setLocal |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface inetsoft.report.TableLens |
|---|
addChangeListener, containsDrill, containsFormat, getDefaultFormat, getXDrillInfo, removeChangeListener |
| Methods inherited from interface inetsoft.uql.XTable |
|---|
getBoolean, getByte, getDouble, getFloat, getInt, getLong, getShort, isNull, isPrimitive, setColumnIdentifier |
| Constructor Detail |
|---|
public SummaryTableLens()
public SummaryTableLens(TableLens table)
table - table to summarize.| Method Detail |
|---|
public abstract Object getSummary(int col,
int row,
int nrows)
col - column to summarize.row - starting row number.nrows - number of rows to summarize.
public Object render(Object obj,
int c)
obj - object value to render.c - column number.public int getSummaryHeight()
public Color getSummaryRowBorderColor(int col)
col - column number.
public Color getSummaryColBorderColor(int col)
col - column number.
public int getSummaryRowBorder(int col)
col - column number.
public int getSummaryColBorder(int col)
col - column number.
public Insets getSummaryInsets(int c)
c - column number.
public Dimension getSummarySpan(int c)
c - column number.
public int getSummaryAlignment(int c)
c - column number.
public Font getSummaryFont(int c)
c - column number.
public boolean isSummaryLineWrap(int c)
c - column number.
public Color getSummaryForeground(int c)
c - column number.
public Color getSummaryBackground(int c)
c - column number.
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||