Class HeaderCell


  • public class HeaderCell
    extends Object
    Crosstab header cell produced by the crosstab bucketing engine.
    Author:
    Lucian Chirita (lucianc@users.sourceforge.net)
    • 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 cell
        levelSpan - 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
      • createLevelSpanCopy

        public static HeaderCell createLevelSpanCopy​(HeaderCell cell,
                                                     int newLevelSpan)