Class JRBaseCellContents
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseElementGroup
-
- net.sf.jasperreports.crosstabs.base.JRBaseCellContents
-
- All Implemented Interfaces:
Serializable
,Cloneable
,JRCellContents
,JRBoxContainer
,JRChild
,JRCloneable
,JRElementGroup
,JRPropertiesHolder
,JRStyleContainer
,JRVisitable
public class JRBaseCellContents extends JRBaseElementGroup implements JRCellContents
Base read-only implementation ofJRCellContents
.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Color
backcolor
protected JRDefaultStyleProvider
defaultStyleProvider
protected int
height
protected JRLineBox
lineBox
protected ModeEnum
mode
protected JRStyle
style
protected String
styleNameReference
protected int
width
-
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseElementGroup
children, elementGroup
-
Fields inherited from interface net.sf.jasperreports.crosstabs.JRCellContents
NOT_CALCULATED, PROPERTIES_PREFIX, PROPERTY_COLUMN_SPAN, PROPERTY_ROW_SPAN, PROPERTY_TYPE, TYPE_COLUMN_HEADER, TYPE_CROSSTAB_HEADER, TYPE_CROSSTAB_TITLE, TYPE_DATA, TYPE_NO_DATA_CELL, TYPE_ROW_HEADER
-
-
Constructor Summary
Constructors Constructor Description JRBaseCellContents(JRCellContents cell, JRBaseObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
Color
getBackcolor()
Returns the cell background color.Color
getDefaultLineColor()
JRDefaultStyleProvider
getDefaultStyleProvider()
int
getHeight()
Returns the computed cell height.JRLineBox
getLineBox()
ModeEnum
getMode()
Returns the cell transparency mode.JRPropertiesHolder
getParentProperties()
Returns the parent properties holder, whose properties are used as defaults for this object.JRPropertiesMap
getPropertiesMap()
Returns this object's properties map.JRStyle
getStyle()
Returns this object's style.String
getStyleNameReference()
Returns the name of an external style which is to be used by this object.int
getWidth()
Returns the computed cell width.boolean
hasProperties()
Checks whether the object has any properties.-
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseElementGroup
clone, getChildren, getElementByKey, getElementByKey, getElementGroup, getElements, getElements, visit
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.engine.JRElementGroup
getChildren, getElementByKey, getElementGroup, getElements
-
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getStyleName
-
Methods inherited from interface net.sf.jasperreports.engine.JRVisitable
visit
-
-
-
-
Field Detail
-
defaultStyleProvider
protected JRDefaultStyleProvider defaultStyleProvider
-
style
protected JRStyle style
-
styleNameReference
protected String styleNameReference
-
mode
protected ModeEnum mode
-
backcolor
protected Color backcolor
-
lineBox
protected JRLineBox lineBox
-
width
protected int width
-
height
protected int height
-
-
Constructor Detail
-
JRBaseCellContents
public JRBaseCellContents(JRCellContents cell, JRBaseObjectFactory factory)
-
-
Method Detail
-
getBackcolor
public Color getBackcolor()
Description copied from interface:JRCellContents
Returns the cell background color.The cell is filled with the background color only if the cell has opaque mode.
- Specified by:
getBackcolor
in interfaceJRCellContents
- Returns:
- the cell backcolor
-
getLineBox
public JRLineBox getLineBox()
- Specified by:
getLineBox
in interfaceJRBoxContainer
-
getWidth
public int getWidth()
Description copied from interface:JRCellContents
Returns the computed cell width.- Specified by:
getWidth
in interfaceJRCellContents
- Returns:
- the computed cell width
- See Also:
JRCellContents.NOT_CALCULATED
-
getHeight
public int getHeight()
Description copied from interface:JRCellContents
Returns the computed cell height.- Specified by:
getHeight
in interfaceJRCellContents
- Returns:
- the computed cell height
- See Also:
JRCellContents.NOT_CALCULATED
-
getDefaultStyleProvider
public JRDefaultStyleProvider getDefaultStyleProvider()
- Specified by:
getDefaultStyleProvider
in interfaceJRStyleContainer
-
getStyle
public JRStyle getStyle()
Description copied from interface:JRStyleContainer
Returns this object's style.- Specified by:
getStyle
in interfaceJRStyleContainer
- Returns:
- this object's style
-
getMode
public ModeEnum getMode()
Description copied from interface:JRCellContents
Returns the cell transparency mode.- Specified by:
getMode
in interfaceJRCellContents
- Returns:
ModeEnum.OPAQUE
orModeEnum.TRANSPARENT
-
getStyleNameReference
public String getStyleNameReference()
Description copied from interface:JRStyleContainer
Returns the name of an external style which is to be used by this object. External styles are defined intemplates
and are resolved at fill time. This attribute is only effective if no direct style (as returned bygetStyle()
is specified for this object.- Specified by:
getStyleNameReference
in interfaceJRStyleContainer
- Returns:
- the name of an external style
-
getDefaultLineColor
public Color getDefaultLineColor()
- Specified by:
getDefaultLineColor
in interfaceJRBoxContainer
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classJRBaseElementGroup
-
hasProperties
public boolean hasProperties()
Description copied from interface:JRPropertiesHolder
Checks whether the object has any properties.- Specified by:
hasProperties
in interfaceJRPropertiesHolder
- Returns:
- whether the object has any properties
-
getPropertiesMap
public JRPropertiesMap getPropertiesMap()
Description copied from interface:JRPropertiesHolder
Returns this object's properties map.- Specified by:
getPropertiesMap
in interfaceJRPropertiesHolder
- Returns:
- this object's properties map
-
getParentProperties
public JRPropertiesHolder getParentProperties()
Description copied from interface:JRPropertiesHolder
Returns the parent properties holder, whose properties are used as defaults for this object.- Specified by:
getParentProperties
in interfaceJRPropertiesHolder
- Returns:
- the parent properties holder, or
null
if no parent
-
-