net.sf.jasperreports.engine.fill
Class JRFillCrosstab.CrosstabFiller

java.lang.Object
  extended by 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
protected JRFillCrosstab.CrosstabFiller()
           
 
Method Summary
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  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  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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRFillCrosstab.CrosstabFiller

protected JRFillCrosstab.CrosstabFiller()
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

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()


Copyright © 2012. All Rights Reserved.