public class SimplePivotRenderer extends Object implements PivotRendererExt
| Constructor and Description |
|---|
SimplePivotRenderer() |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnSize(Pivottable table,
PivotHeaderContext colc,
PivotField field)
Returns the column size in pixel.
|
int |
getRowSize(Pivottable table,
PivotHeaderContext rowc,
PivotField field)
Returns the row size in pixel.
|
String |
renderCell(Number data,
Pivottable table,
PivotHeaderContext rowContext,
PivotHeaderContext columnContext,
PivotField dataField)
Renders the content of each cell.
|
String |
renderCellSClass(Number data,
Pivottable table,
PivotHeaderContext rowContext,
PivotHeaderContext columnContext,
PivotField dataField)
Specify a CSS class on the cell.
|
String |
renderCellStyle(Number data,
Pivottable table,
PivotHeaderContext rowContext,
PivotHeaderContext columnContext,
PivotField dataField)
Specify the CSS style on the cell.
|
String |
renderDataField(PivotField field)
Renders the label of a data field, shown when there are multiple data fields.
|
String |
renderField(Object data,
Pivottable table,
PivotField field)
Renders the label of a header field in columns and rows.
|
String |
renderGrandTotalField(Pivottable table,
PivotField field)
Renders the title of a grand total field.
|
String |
renderSubtotalField(Object data,
Pivottable table,
PivotField field,
Calculator calculator)
Renders the label of a subtotal field.
|
public String renderCell(Number data, Pivottable table, PivotHeaderContext rowContext, PivotHeaderContext columnContext, PivotField dataField)
PivotRendererrenderCell in interface PivotRendererdata - data objectrowContext - row header context objectcolumnContext - column header context objectPivotHeaderContextpublic int getColumnSize(Pivottable table, PivotHeaderContext colc, PivotField field)
PivotRendererNote that the cell field always from 0 to m, and the returned value is never negative.
getColumnSize in interface PivotRenderertable - the Pivottablecolc - information of the corresponding columnfield - the field corresponds to the leaf column cell. Can be row,
column, data field, or null (only in the case of grand total)public int getRowSize(Pivottable table, PivotHeaderContext rowc, PivotField field)
PivotRendererNote that the cell field always from 0 to m, and the returned value is never negative.
getRowSize in interface PivotRenderertable - the Pivottablerowc - information of the corresponding rowfield - the field corresponds to the leaf row cell. Can be row,
column, data field, or null (only in the case of grand total)public String renderField(Object data, Pivottable table, PivotField field)
PivotRendererrenderField in interface PivotRendererdata - data objectfield - PivotFieldPivotFieldpublic String renderGrandTotalField(Pivottable table, PivotField field)
PivotRendererrenderGrandTotalField in interface PivotRendererfield - a data PivotFieldpublic String renderSubtotalField(Object data, Pivottable table, PivotField field, Calculator calculator)
PivotRendererrenderSubtotalField in interface PivotRendererdata - data objectfield - PivotFieldcalculator - the subtotal calculatorPivotField,
Calculatorpublic String renderDataField(PivotField field)
PivotRendererrenderDataField in interface PivotRendererpublic String renderCellSClass(Number data, Pivottable table, PivotHeaderContext rowContext, PivotHeaderContext columnContext, PivotField dataField)
PivotRendererExtrenderCellSClass in interface PivotRendererExtdata - data objectrowContext - row header context objectcolumnContext - column header context objectPivotHeaderContextpublic String renderCellStyle(Number data, Pivottable table, PivotHeaderContext rowContext, PivotHeaderContext columnContext, PivotField dataField)
PivotRendererExtrenderCellStyle in interface PivotRendererExtdata - data objectrowContext - row header context objectcolumnContext - column header context objectPivotHeaderContextCopyright © 2023. All rights reserved.