Package ca.spatial.table
Class PivotTablePrinter.PdfPivotPrinter
java.lang.Object
ca.spatial.table.PivotTablePrinter.PdfPivotPrinter
- All Implemented Interfaces:
PivotTablePrinter.PivotPrinter
- Enclosing class:
- PivotTablePrinter
public static class PivotTablePrinter.PdfPivotPrinter
extends Object
implements PivotTablePrinter.PivotPrinter
An implementation of the PivotPrinter interface for PDF files
-
Field Summary
Fields inherited from interface ca.spatial.table.PivotTablePrinter.PivotPrinter
COLUMNTOTAL, GRANDTOTAL, HEADER, PREFIX, RIGHT_ALIGN, ROWTOTAL, SUFFIX
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
PdfPivotPrinter
-
-
Method Details
-
startTable
public void startTable(int columnCount)Description copied from interface:PivotTablePrinter.PivotPrinter
Method that is called when starting the table.- Specified by:
startTable
in interfacePivotTablePrinter.PivotPrinter
- Parameters:
columnCount
- the total number of columns in the table including row labels, subtotal columns and grandtotal columns.
-
completeTable
public void completeTable()Description copied from interface:PivotTablePrinter.PivotPrinter
Method that is called after all table all row and cell data has been added to the table- Specified by:
completeTable
in interfacePivotTablePrinter.PivotPrinter
-
startThead
public void startThead()Description copied from interface:PivotTablePrinter.PivotPrinter
Method that is called before column headings are output- Specified by:
startThead
in interfacePivotTablePrinter.PivotPrinter
-
completeThead
public void completeThead()Description copied from interface:PivotTablePrinter.PivotPrinter
Method that is called after column headings are output- Specified by:
completeThead
in interfacePivotTablePrinter.PivotPrinter
-
startTbody
public void startTbody()Description copied from interface:PivotTablePrinter.PivotPrinter
Method that is called before the pivot data values are output- Specified by:
startTbody
in interfacePivotTablePrinter.PivotPrinter
-
completeTbody
public void completeTbody()Description copied from interface:PivotTablePrinter.PivotPrinter
Method that is called after the pivot data values are output- Specified by:
completeTbody
in interfacePivotTablePrinter.PivotPrinter
-
startTfoot
public void startTfoot()Description copied from interface:PivotTablePrinter.PivotPrinter
Method that is called before the column grand total values are output- Specified by:
startTfoot
in interfacePivotTablePrinter.PivotPrinter
-
completeTfoot
public void completeTfoot()Description copied from interface:PivotTablePrinter.PivotPrinter
Method that is called after the column grand total values are output- Specified by:
completeTfoot
in interfacePivotTablePrinter.PivotPrinter
-
startRow
public void startRow()Description copied from interface:PivotTablePrinter.PivotPrinter
Method that is called at the start of a new row- Specified by:
startRow
in interfacePivotTablePrinter.PivotPrinter
-
completeRow
public void completeRow()Description copied from interface:PivotTablePrinter.PivotPrinter
Method that is called when a row has been completed- Specified by:
completeRow
in interfacePivotTablePrinter.PivotPrinter
-
addCell
Description copied from interface:PivotTablePrinter.PivotPrinter
Method to call when adding a cell- Specified by:
addCell
in interfacePivotTablePrinter.PivotPrinter
- 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
-