Package net.sf.jasperreports.engine.fill
Class JRFillCrosstab.CrosstabFiller
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JRFillCrosstab.CrosstabFiller
-
- Enclosing class:
- JRFillCrosstab
protected class JRFillCrosstab.CrosstabFiller extends Object
Crosstab filler class.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CrosstabFiller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addFilledRows()
protected void
addPrintRow(List<JRPrintElement> printRow)
protected boolean[]
computeBreakableHeaders(HeaderCell[][] headersData, JRFillCrosstabGroup[] groups, int[] offsets, boolean width, boolean startHeaders)
protected int[]
computeOffsets(HeaderCell[][] headersData, JRFillCrosstabGroup[] groups, boolean width)
protected JRDesignComponentElement
createIconLabelElement(SortOrderEnum order, JRFillTextElement textElement, BuiltinExpressionEvaluatorFactory builtinExpressions)
protected boolean
ended()
protected void
fill(int availableHeight)
protected List<List<JRPrintElement>>
fillColumnHeaders(int rowHeadersXOffset, int availableHeight)
protected void
fillNoDataCell(int availableHeight)
protected int
fillRows(int xOffset, int availableHeight)
protected void
fillVerticalCrosstab(int availableHeight)
protected List<HeaderCell[]>
getGroupHeaders(int available, int[] offsets, boolean[] breakable, int firstIndex, HeaderCell[][] headersData, JRFillCrosstabGroup[] groups)
protected List<JRPrintElement>
getLastPrintRow()
protected int
getSpanIndex(int i, int j, HeaderCell[][] headersData)
protected void
initCrosstab()
protected Object
measureValue(MeasureDefinition.MeasureValue[] values, int measureIdx)
protected JRFillCellContents
prepareColumnCrosstabHeader(int availableHeight)
protected void
resetVariables()
protected void
setGroupMeasureVariables(HeaderCell cell, boolean rowGroup)
protected void
setGroupVariables(JRFillCrosstabGroup[] groups, BucketDefinition.Bucket[] bucketValues)
protected void
setMeasureVariables(CrosstabCell cell)
protected void
setRowHeadersXOffsets()
protected boolean
toCloseRowHeader(int rowGroup)
protected boolean
willOverflow()
-
-
-
Method Detail
-
initCrosstab
protected void initCrosstab()
-
setRowHeadersXOffsets
protected void setRowHeadersXOffsets()
-
computeOffsets
protected int[] computeOffsets(HeaderCell[][] headersData, JRFillCrosstabGroup[] groups, boolean width)
-
computeBreakableHeaders
protected boolean[] computeBreakableHeaders(HeaderCell[][] headersData, JRFillCrosstabGroup[] groups, int[] offsets, boolean width, boolean startHeaders)
-
fill
protected void fill(int availableHeight) throws JRException
- Throws:
JRException
-
willOverflow
protected boolean willOverflow()
-
ended
protected boolean ended()
-
fillVerticalCrosstab
protected void fillVerticalCrosstab(int availableHeight) throws JRException
- Throws:
JRException
-
addFilledRows
protected void addFilledRows()
-
getGroupHeaders
protected List<HeaderCell[]> getGroupHeaders(int available, int[] offsets, boolean[] breakable, int firstIndex, HeaderCell[][] headersData, JRFillCrosstabGroup[] groups)
-
getSpanIndex
protected int getSpanIndex(int i, int j, HeaderCell[][] headersData)
-
fillNoDataCell
protected void fillNoDataCell(int availableHeight) throws JRException
- Throws:
JRException
-
fillColumnHeaders
protected List<List<JRPrintElement>> fillColumnHeaders(int rowHeadersXOffset, int availableHeight) throws JRException
- Throws:
JRException
-
createIconLabelElement
protected JRDesignComponentElement createIconLabelElement(SortOrderEnum order, JRFillTextElement textElement, BuiltinExpressionEvaluatorFactory builtinExpressions)
-
prepareColumnCrosstabHeader
protected JRFillCellContents prepareColumnCrosstabHeader(int availableHeight) throws JRException
- Throws:
JRException
-
fillRows
protected int fillRows(int xOffset, int availableHeight) throws JRException
- Throws:
JRException
-
toCloseRowHeader
protected boolean toCloseRowHeader(int rowGroup)
-
addPrintRow
protected void addPrintRow(List<JRPrintElement> printRow)
-
getLastPrintRow
protected List<JRPrintElement> getLastPrintRow()
-
setGroupVariables
protected void setGroupVariables(JRFillCrosstabGroup[] groups, BucketDefinition.Bucket[] bucketValues)
-
setGroupMeasureVariables
protected void setGroupMeasureVariables(HeaderCell cell, boolean rowGroup)
-
setMeasureVariables
protected void setMeasureVariables(CrosstabCell cell)
-
measureValue
protected Object measureValue(MeasureDefinition.MeasureValue[] values, int measureIdx)
-
resetVariables
protected void resetVariables()
-
-