Class HeaderCell
- java.lang.Object
-
- net.sf.jasperreports.crosstabs.fill.calculation.HeaderCell
-
public class HeaderCell extends Object
Crosstab header cell produced by the crosstab bucketing engine.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description HeaderCell(BucketDefinition.Bucket[] bucketValues, int levelSpan, int depthSpan, MeasureDefinition.MeasureValue[][] totals)
Creates a crosstab header cell.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HeaderCell
createLevelSpanCopy(HeaderCell cell, int newLevelSpan)
BucketDefinition.Bucket[]
getBucketValues()
Returns the bucket values for this cell.int
getDepthSpan()
Returns the span across cells on subsequent levels (buckets).int
getLevelSpan()
Returns the span across cells on the same level (bucket).MeasureDefinition.MeasureValue[][]
getTotals()
boolean
isTotal()
Returns whether this header is a total header.
-
-
-
Constructor Detail
-
HeaderCell
public HeaderCell(BucketDefinition.Bucket[] bucketValues, int levelSpan, int depthSpan, MeasureDefinition.MeasureValue[][] totals)
Creates a crosstab header cell.- Parameters:
bucketValues
- the bucket values for the celllevelSpan
- the span across cells on the same level (bucket)depthSpan
- the span across cells on subsequent levels (buckets)
-
-
Method Detail
-
getBucketValues
public BucketDefinition.Bucket[] getBucketValues()
Returns the bucket values for this cell.- Returns:
- the bucket values for this cell
-
getLevelSpan
public int getLevelSpan()
Returns the span across cells on the same level (bucket).This is used for headers of buckets having sub-buckets.
- Returns:
- the span across cells on the same level (bucket)
-
getDepthSpan
public int getDepthSpan()
Returns the span across cells on subsequent levels (buckets).This is used for total headers.
- Returns:
- the span across cells on subsequent levels (buckets)
-
isTotal
public boolean isTotal()
Returns whether this header is a total header.- Returns:
- whether this header is a total header
-
getTotals
public MeasureDefinition.MeasureValue[][] getTotals()
-
createLevelSpanCopy
public static HeaderCell createLevelSpanCopy(HeaderCell cell, int newLevelSpan)
-
-