Class HeaderCell
java.lang.Object
net.sf.jasperreports.crosstabs.fill.calculation.HeaderCell
Crosstab header cell produced by the crosstab bucketing engine.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- 
Constructor SummaryConstructorsConstructorDescriptionHeaderCell(BucketDefinition.Bucket[] bucketValues, int levelSpan, int depthSpan, MeasureDefinition.MeasureValue[][] totals) Creates a crosstab header cell.
- 
Method SummaryModifier and TypeMethodDescriptionstatic HeaderCellcreateLevelSpanCopy(HeaderCell cell, int newLevelSpan) Returns the bucket values for this cell.intReturns the span across cells on subsequent levels (buckets).intReturns the span across cells on the same level (bucket).booleanisTotal()Returns whether this header is a total header.
- 
Constructor Details- 
HeaderCellpublic HeaderCell(BucketDefinition.Bucket[] bucketValues, int levelSpan, int depthSpan, MeasureDefinition.MeasureValue[][] totals) Creates a crosstab header cell.- Parameters:
- bucketValues- the bucket values for the cell
- levelSpan- the span across cells on the same level (bucket)
- depthSpan- the span across cells on subsequent levels (buckets)
 
 
- 
- 
Method Details- 
getBucketValuesReturns the bucket values for this cell.- Returns:
- the bucket values for this cell
 
- 
getLevelSpanpublic 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)
 
- 
getDepthSpanpublic 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)
 
- 
isTotalpublic boolean isTotal()Returns whether this header is a total header.- Returns:
- whether this header is a total header
 
- 
getTotals
- 
createLevelSpanCopy
 
-