Package net.sf.jasperreports.crosstabs
Interface JRCellContents
-
- All Superinterfaces:
java.lang.Cloneable,JRBoxContainer,JRChild,JRCloneable,JRElementGroup,JRPropertiesHolder,JRStyleContainer,JRVisitable
- All Known Implementing Classes:
JRBaseCellContents,JRDesignCellContents,JRFillCellContents
public interface JRCellContents extends JRElementGroup, JRBoxContainer, JRPropertiesHolder
Crosstab cell contents interface.This interface is used for both crosstab row/column headers and data cells.
There are some restrictions/rules regarding crosstab cells:
- subreports, crosstabs and charts are not allowed
- delayed evaluation for text fields and images is not allowed
- cells cannot split on multiple pages
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static intNOT_CALCULATEDWidth or height value indicating that the value has not been computed.static java.lang.StringPROPERTIES_PREFIXA prefix used for properties that are set on frames generated by crosstab cells.static java.lang.StringPROPERTY_COLUMN_SPANA property that provides the crosstab column span of a print frame.static java.lang.StringPROPERTY_ROW_SPANA property that provides the crosstab row span of a print frame.static java.lang.StringPROPERTY_TYPEA property that provides the type of the cell that generated a print frame.static java.lang.StringTYPE_COLUMN_HEADERType used by the column header cells.static java.lang.StringTYPE_CROSSTAB_HEADERType used by thecrosstab header cell.static java.lang.StringTYPE_CROSSTAB_TITLEType used by thecrosstab title cell.static java.lang.StringTYPE_DATAType used by thecrosstab data cells.static java.lang.StringTYPE_NO_DATA_CELLType used by thecrosstab "no data" cell.static java.lang.StringTYPE_ROW_HEADERType used by the row header cells.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.awt.ColorgetBackcolor()Returns the cell background color.intgetHeight()Returns the computed cell height.ModeEnumgetModeValue()Returns the cell transparency mode.intgetWidth()Returns the computed cell width.-
Methods inherited from interface net.sf.jasperreports.engine.JRBoxContainer
getDefaultLineColor, getLineBox
-
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable
clone
-
Methods inherited from interface net.sf.jasperreports.engine.JRElementGroup
getChildren, getElementByKey, getElementGroup, getElements
-
Methods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder
getParentProperties, getPropertiesMap, hasProperties
-
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleNameReference
-
Methods inherited from interface net.sf.jasperreports.engine.JRVisitable
visit
-
-
-
-
Field Detail
-
NOT_CALCULATED
static final int NOT_CALCULATED
Width or height value indicating that the value has not been computed.- See Also:
- Constant Field Values
-
PROPERTIES_PREFIX
static final java.lang.String PROPERTIES_PREFIX
A prefix used for properties that are set on frames generated by crosstab cells.- See Also:
JRPrintFrame, Constant Field Values
-
PROPERTY_TYPE
static final java.lang.String PROPERTY_TYPE
A property that provides the type of the cell that generated a print frame.The property value is one of
- See Also:
- Constant Field Values
-
PROPERTY_ROW_SPAN
static final java.lang.String PROPERTY_ROW_SPAN
A property that provides the crosstab row span of a print frame.- See Also:
- Constant Field Values
-
PROPERTY_COLUMN_SPAN
static final java.lang.String PROPERTY_COLUMN_SPAN
A property that provides the crosstab column span of a print frame.- See Also:
- Constant Field Values
-
TYPE_CROSSTAB_TITLE
static final java.lang.String TYPE_CROSSTAB_TITLE
Type used by thecrosstab title cell.- See Also:
PROPERTY_TYPE, Constant Field Values
-
TYPE_CROSSTAB_HEADER
static final java.lang.String TYPE_CROSSTAB_HEADER
Type used by thecrosstab header cell.- See Also:
PROPERTY_TYPE, Constant Field Values
-
TYPE_ROW_HEADER
static final java.lang.String TYPE_ROW_HEADER
Type used by the row header cells.
-
TYPE_COLUMN_HEADER
static final java.lang.String TYPE_COLUMN_HEADER
Type used by the column header cells.
-
TYPE_DATA
static final java.lang.String TYPE_DATA
Type used by thecrosstab data cells.- See Also:
PROPERTY_TYPE, Constant Field Values
-
TYPE_NO_DATA_CELL
static final java.lang.String TYPE_NO_DATA_CELL
Type used by thecrosstab "no data" cell.- See Also:
PROPERTY_TYPE, Constant Field Values
-
-
Method Detail
-
getBackcolor
java.awt.Color getBackcolor()
Returns the cell background color.The cell is filled with the background color only if the cell has opaque mode.
- Returns:
- the cell backcolor
-
getWidth
int getWidth()
Returns the computed cell width.- Returns:
- the computed cell width
- See Also:
NOT_CALCULATED
-
getHeight
int getHeight()
Returns the computed cell height.- Returns:
- the computed cell height
- See Also:
NOT_CALCULATED
-
getModeValue
ModeEnum getModeValue()
Returns the cell transparency mode.- Returns:
ModeEnum.OPAQUEorModeEnum.TRANSPARENT
-
-