Class CrosstabCell
java.lang.Object
net.sf.jasperreports.crosstabs.fill.calculation.CrosstabCell
Crosstab cell produced by the crosstab bucketing engine.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Constructor Summary
ConstructorsConstructorDescriptionCrosstabCell
(BucketDefinition.Bucket[] rowBucketValues, BucketDefinition.Bucket[] columnBucketValues, MeasureDefinition.MeasureValue[] mesureValues, MeasureDefinition.MeasureValue[][][] totals) Create a crosstab cell. -
Method Summary
Modifier and TypeMethodDescriptionReturns the column bucket values corresponding to this cell.int
Returns the index of the column total bucket this cell corresponds to.Returns the measure values for this cell.Returns the row bucket values corresponding to this cell.int
Returns the index of the row total bucket this cell corresponds to.Returns measure totals corresponding to the cell.
-
Constructor Details
-
CrosstabCell
public CrosstabCell(BucketDefinition.Bucket[] rowBucketValues, BucketDefinition.Bucket[] columnBucketValues, MeasureDefinition.MeasureValue[] mesureValues, MeasureDefinition.MeasureValue[][][] totals) Create a crosstab cell.- Parameters:
rowBucketValues
- the row bucket values corresponding to the cellcolumnBucketValues
- the column bucket values corresponding to the cellmesureValues
- the measure valuestotals
- totals corresponding to the cell
-
-
Method Details
-
getMesureValues
Returns the measure values for this cell.- Returns:
- the measure values for this cell
-
getColumnBucketValues
Returns the column bucket values corresponding to this cell.- Returns:
- the column bucket values corresponding to this cell
-
getRowBucketValues
Returns the row bucket values corresponding to this cell.- Returns:
- the row bucket values corresponding to this cell
-
getColumnTotalGroupIndex
public int getColumnTotalGroupIndex()Returns the index of the column total bucket this cell corresponds to.If this cell corresponds to a column total bucket, this method returns the index of the bucket. Otherwise it returns the number of column buckets.
- Returns:
- the index of the column total bucket this cell corresponds to
-
getRowTotalGroupIndex
public int getRowTotalGroupIndex()Returns the index of the row total bucket this cell corresponds to.If this cell corresponds to a row total bucket, this method returns the index of the bucket. Otherwise it returns the number of row buckets.
- Returns:
- the index of the row total bucket this cell corresponds to
-
getTotals
Returns measure totals corresponding to the cell.- Returns:
- measure totals corresponding to the cell
-