Class JRBaseCrosstabCell

java.lang.Object
net.sf.jasperreports.crosstabs.base.JRBaseCrosstabCell
All Implemented Interfaces:
Serializable, Cloneable, JRCrosstabCell, JRCloneable
Direct Known Subclasses:
JRDesignCrosstabCell

public class JRBaseCrosstabCell extends Object implements JRCrosstabCell, Serializable
Base read-only implementation of JRCrosstabCell.
Author:
Lucian Chirita (lucianc@users.sourceforge.net)
See Also:
  • Field Details

    • width

      protected Integer width
    • height

      protected Integer height
    • rowTotalGroup

      protected String rowTotalGroup
    • columnTotalGroup

      protected String columnTotalGroup
    • contents

      protected JRCellContents contents
  • Constructor Details

  • Method Details

    • getRowTotalGroup

      public String getRowTotalGroup()
      Description copied from interface: JRCrosstabCell
      Returns the name of the row group if the crosstab cell corresponds to a total row and null otherwise.
      Specified by:
      getRowTotalGroup in interface JRCrosstabCell
      Returns:
      the name of the total row group this cell corresponds to
    • getColumnTotalGroup

      public String getColumnTotalGroup()
      Description copied from interface: JRCrosstabCell
      Returns the name of the column group if the crosstab cell corresponds to a total column and null otherwise.
      Specified by:
      getColumnTotalGroup in interface JRCrosstabCell
      Returns:
      the name of the total column group this cell corresponds to
    • getContents

      public JRCellContents getContents()
      Description copied from interface: JRCrosstabCell
      Returns the cell contents.

      Should never return null, but empty cell contents instead.

      Specified by:
      getContents in interface JRCrosstabCell
      Returns:
      the cell contents
    • getHeight

      public Integer getHeight()
      Description copied from interface: JRCrosstabCell
      Returns the height of the cell.

      The height of the cell can be unspecified. The height used for the cell is computed base on the rules described here.

      Specified by:
      getHeight in interface JRCrosstabCell
      Returns:
      the width of the cell
    • getWidth

      public Integer getWidth()
      Description copied from interface: JRCrosstabCell
      Returns the width of the cell.

      The width of the cell can be unspecified. The width used for the cell is computed base on the rules described here.

      Specified by:
      getWidth in interface JRCrosstabCell
      Returns:
      the width of the cell
    • clone

      public Object clone()
      Specified by:
      clone in interface JRCloneable
      Overrides:
      clone in class Object