Class CrosstabCell
- java.lang.Object
-
- net.sf.jasperreports.crosstabs.fill.calculation.CrosstabCell
-
public class CrosstabCell extends Object
Crosstab cell produced by the crosstab bucketing engine.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description CrosstabCell(BucketDefinition.Bucket[] rowBucketValues, BucketDefinition.Bucket[] columnBucketValues, MeasureDefinition.MeasureValue[] mesureValues, MeasureDefinition.MeasureValue[][][] totals)
Create a crosstab cell.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BucketDefinition.Bucket[]
getColumnBucketValues()
Returns the column bucket values corresponding to this cell.int
getColumnTotalGroupIndex()
Returns the index of the column total bucket this cell corresponds to.MeasureDefinition.MeasureValue[]
getMesureValues()
Returns the measure values for this cell.BucketDefinition.Bucket[]
getRowBucketValues()
Returns the row bucket values corresponding to this cell.int
getRowTotalGroupIndex()
Returns the index of the row total bucket this cell corresponds to.MeasureDefinition.MeasureValue[][][]
getTotals()
Returns measure totals corresponding to the cell.
-
-
-
Constructor Detail
-
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 Detail
-
getMesureValues
public MeasureDefinition.MeasureValue[] getMesureValues()
Returns the measure values for this cell.- Returns:
- the measure values for this cell
-
getColumnBucketValues
public BucketDefinition.Bucket[] getColumnBucketValues()
Returns the column bucket values corresponding to this cell.- Returns:
- the column bucket values corresponding to this cell
-
getRowBucketValues
public BucketDefinition.Bucket[] 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
public MeasureDefinition.MeasureValue[][][] getTotals()
Returns measure totals corresponding to the cell.- Returns:
- measure totals corresponding to the cell
-
-