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

    Fields
    Modifier and Type
    Field
    Description
    static int
    A flag to indicate that the cell is a column total
    static int
    A flag to indicate that the cell is a grand total
    static int
    A flag to indicate a header cell
    static int
    A flag to indicate that the cell contains a row label
    static int
    A flag to indicate that the cell should be right aligned
    static int
    A flag to indicate that the cell is a row total
    static int
    A flag to indicate that the cell is a row suffix
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addCell​(String text, int startCol, int colSpan, int rowSpan, int flags)
    Method to call when adding a cell
    void
    Method that is called when a row has been completed
    void
    Method that is called after all table all row and cell data has been added to the table
    void
    Method that is called after the pivot data values are output
    void
    Method that is called after the column grand total values are output
    void
    Method that is called after column headings are output
    void
    Method that is called at the start of a new row
    void
    startTable​(int columnCount)
    Method that is called when starting the table.
    void
    Method that is called before the pivot data values are output
    void
    Method that is called before the column grand total values are output
    void
    Method that is called before column headings are output
  • Field Details

    • PREFIX

      static final int PREFIX
      A flag to indicate that the cell contains a row label
      See Also:
      Constant Field Values
    • SUFFIX

      static final int SUFFIX
      A flag to indicate that the cell is a row suffix
      See Also:
      Constant Field Values
    • ROWTOTAL

      static final int ROWTOTAL
      A flag to indicate that the cell is a row total
      See Also:
      Constant Field Values
    • COLUMNTOTAL

      static final int COLUMNTOTAL
      A flag to indicate that the cell is a column total
      See Also:
      Constant Field Values
    • GRANDTOTAL

      static final int GRANDTOTAL
      A flag to indicate that the cell is a grand total
      See Also:
      Constant Field Values
    • RIGHT_ALIGN

      static final int RIGHT_ALIGN
      A 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

      void addCell(String text, int startCol, int colSpan, int rowSpan, int flags)
      Method to call when adding a cell
      Parameters:
      text - the contents of the cell
      startCol - the table column that is the start of this cell span
      colSpan - the width of the span for the merged cells
      rowSpan - the height of the span for the merged cells
      flags - an int value containing flag values that describe characteristics of the cell