Package net.sf.jasperreports.crosstabs
Interface JRCellContents
- All Superinterfaces:
Cloneable
,JRBoxContainer
,JRChild
,JRCloneable
,JRElementGroup
,JRPropertiesHolder
,JRStyleContainer
,JRVisitable
- All Known Implementing Classes:
JRBaseCellContents
,JRDesignCellContents
,JRFillCellContents
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
FieldsModifier and TypeFieldDescriptionstatic final int
Width or height value indicating that the value has not been computed.static final String
A prefix used for properties that are set on frames generated by crosstab cells.static final String
A property that provides the crosstab column span of a print frame.static final String
A property that provides the crosstab row span of a print frame.static final String
A property that provides the type of the cell that generated a print frame.static final String
Type used by the column header cells.static final String
Type used by thecrosstab header cell
.static final String
Type used by thecrosstab title cell
.static final String
Type used by thecrosstab data cells
.static final String
Type used by thecrosstab "no data" cell
.static final String
Type used by the row header cells. -
Method Summary
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, getStyleName, getStyleNameReference
Methods inherited from interface net.sf.jasperreports.engine.JRVisitable
visit
-
Field Details
-
NOT_CALCULATED
static final int NOT_CALCULATEDWidth or height value indicating that the value has not been computed.- See Also:
-
PROPERTIES_PREFIX
A prefix used for properties that are set on frames generated by crosstab cells.- See Also:
-
PROPERTY_TYPE
A property that provides the type of the cell that generated a print frame.The property value is one of
- See Also:
-
PROPERTY_ROW_SPAN
A property that provides the crosstab row span of a print frame.- See Also:
-
PROPERTY_COLUMN_SPAN
A property that provides the crosstab column span of a print frame.- See Also:
-
TYPE_CROSSTAB_TITLE
Type used by thecrosstab title cell
.- See Also:
-
TYPE_CROSSTAB_HEADER
Type used by thecrosstab header cell
.- See Also:
-
TYPE_ROW_HEADER
Type used by the row header cells.- See Also:
-
TYPE_COLUMN_HEADER
Type used by the column header cells.- See Also:
-
TYPE_DATA
Type used by thecrosstab data cells
.- See Also:
-
TYPE_NO_DATA_CELL
Type used by thecrosstab "no data" cell
.- See Also:
-
-
Method Details
-
getBackcolor
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:
-
getHeight
int getHeight()Returns the computed cell height.- Returns:
- the computed cell height
- See Also:
-
getMode
ModeEnum getMode()Returns the cell transparency mode.- Returns:
ModeEnum.OPAQUE
orModeEnum.TRANSPARENT
-