Package ca.spatial.table
Interface PivotTablePrinter.PivotPrinter
- All Known Implementing Classes:
PivotTablePrinter.HtmlPivotPrinter
,PivotTablePrinter.PdfPivotPrinter
- Enclosing class:
- PivotTablePrinter
public static interface PivotTablePrinter.PivotPrinter
An interface to render Pivot Table data
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic int
A flag to indicate that the cell is a column totalstatic int
A flag to indicate that the cell is a grand totalstatic int
A flag to indicate a header cellstatic int
A flag to indicate that the cell contains a row labelstatic int
A flag to indicate that the cell should be right alignedstatic int
A flag to indicate that the cell is a row totalstatic int
A flag to indicate that the cell is a row suffix -
Method Summary
Modifier and TypeMethodDescriptionvoid
Method to call when adding a cellvoid
Method that is called when a row has been completedvoid
Method that is called after all table all row and cell data has been added to the tablevoid
Method that is called after the pivot data values are outputvoid
Method that is called after the column grand total values are outputvoid
Method that is called after column headings are outputvoid
startRow()
Method that is called at the start of a new rowvoid
startTable(int columnCount)
Method that is called when starting the table.void
Method that is called before the pivot data values are outputvoid
Method that is called before the column grand total values are outputvoid
Method that is called before column headings are output
-
Field Details
-
HEADER
static final int HEADERA flag to indicate a header cell- See Also:
- Constant Field Values
-
PREFIX
static final int PREFIXA flag to indicate that the cell contains a row label- See Also:
- Constant Field Values
-
SUFFIX
static final int SUFFIXA flag to indicate that the cell is a row suffix- See Also:
- Constant Field Values
-
ROWTOTAL
static final int ROWTOTALA flag to indicate that the cell is a row total- See Also:
- Constant Field Values
-
COLUMNTOTAL
static final int COLUMNTOTALA flag to indicate that the cell is a column total- See Also:
- Constant Field Values
-
GRANDTOTAL
static final int GRANDTOTALA flag to indicate that the cell is a grand total- See Also:
- Constant Field Values
-
RIGHT_ALIGN
static final int RIGHT_ALIGNA flag to indicate that the cell should be right aligned- See Also:
- Constant Field Values
-
-
Method Details
-
startTable
void startTable(int columnCount)Method that is called when starting the table.- Parameters:
columnCount
- the total number of columns in the table including row labels, subtotal columns and grandtotal columns.
-
completeTable
void completeTable()Method that is called after all table all row and cell data has been added to the table -
startThead
void startThead()Method that is called before column headings are output -
completeThead
void completeThead()Method that is called after column headings are output -
startTbody
void startTbody()Method that is called before the pivot data values are output -
completeTbody
void completeTbody()Method that is called after the pivot data values are output -
startTfoot
void startTfoot()Method that is called before the column grand total values are output -
completeTfoot
void completeTfoot()Method that is called after the column grand total values are output -
startRow
void startRow()Method that is called at the start of a new row -
completeRow
void completeRow()Method that is called when a row has been completed -
addCell
Method to call when adding a cell- Parameters:
text
- the contents of the cellstartCol
- the table column that is the start of this cell spancolSpan
- the width of the span for the merged cellsrowSpan
- the height of the span for the merged cellsflags
- an int value containing flag values that describe characteristics of the cell
-