|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jasperreports.engine.base.JRBaseElementGroup
net.sf.jasperreports.engine.design.JRDesignElementGroup
net.sf.jasperreports.crosstabs.design.JRDesignCellContents
public class JRDesignCellContents
Implementation of JRCellContents
used for
report design.
Field Summary | |
---|---|
protected JRDefaultStyleProvider |
defaultStyleProvider
|
protected ModeEnum |
modeValue
|
static java.lang.String |
PROPERTY_BOX
|
static java.lang.String |
PROPERTY_STYLE
|
static java.lang.String |
PROPERTY_STYLE_NAME_REFERENCE
|
protected JRStyle |
style
|
protected java.lang.String |
styleNameReference
|
Fields inherited from class net.sf.jasperreports.engine.design.JRDesignElementGroup |
---|
PROPERTY_CHILDREN, PROPERTY_ELEMENT_GROUP |
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseElementGroup |
---|
children, elementGroup |
Fields inherited from interface net.sf.jasperreports.crosstabs.JRCellContents |
---|
NOT_CALCULATED, POSITION_X_CENTER, POSITION_X_LEFT, POSITION_X_RIGHT, POSITION_X_STRETCH, POSITION_Y_BOTTOM, POSITION_Y_MIDDLE, POSITION_Y_STRETCH, POSITION_Y_TOP, PROPERTIES_PREFIX, PROPERTY_COLUMN_SPAN, PROPERTY_ROW_SPAN, PROPERTY_TYPE, TYPE_COLUMN_HEADER, TYPE_CROSSTAB_HEADER, TYPE_DATA, TYPE_NO_DATA_CELL, TYPE_ROW_HEADER |
Constructor Summary | |
---|---|
JRDesignCellContents()
Creates an empty cell contents. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
java.awt.Color |
getBackcolor()
Returns the cell background color. |
JRBox |
getBox()
Deprecated. Replaced by getLineBox() |
java.awt.Color |
getDefaultLineColor()
|
JRDefaultStyleProvider |
getDefaultStyleProvider()
|
int |
getHeight()
Returns the computed cell height. |
JRLineBox |
getLineBox()
|
java.lang.Byte |
getMode()
Deprecated. Replaced by getModeValue() . |
ModeEnum |
getModeValue()
Returns the cell transparency mode. |
JRCrosstabOrigin |
getOrigin()
|
JRStyle |
getStyle()
Returns this object's style. |
java.lang.String |
getStyleNameReference()
Returns the name of an external style which is to be used by this object. |
int |
getWidth()
Returns the computed cell width. |
void |
setBackcolor(java.awt.Color color)
Sets the cell background color. |
void |
setBox(JRBox box)
Deprecated. Replaced by getLineBox() |
protected void |
setHeight(int height)
Sets the computed cell height. |
void |
setMode(java.lang.Byte mode)
Deprecated. Replaced by |
void |
setMode(ModeEnum modeValue)
Sets the cell transparency mode. |
void |
setOrigin(JRCrosstabOrigin origin)
|
void |
setStyle(JRStyle style)
Sets the style used by this cell. |
void |
setStyleNameReference(java.lang.String styleName)
Set the name of the external style to be used for this cell. |
protected void |
setWidth(int width)
Sets the computed cell width. |
Methods inherited from class net.sf.jasperreports.engine.design.JRDesignElementGroup |
---|
addElement, addElement, addElementGroup, addElementGroup, getEventSupport, removeElement, removeElementGroup, setElementGroup |
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.JRChild |
---|
clone |
Methods inherited from interface net.sf.jasperreports.engine.JRVisitable |
---|
visit |
Field Detail |
---|
public static final java.lang.String PROPERTY_BOX
public static final java.lang.String PROPERTY_STYLE
public static final java.lang.String PROPERTY_STYLE_NAME_REFERENCE
protected JRDefaultStyleProvider defaultStyleProvider
protected JRStyle style
protected java.lang.String styleNameReference
protected ModeEnum modeValue
Constructor Detail |
---|
public JRDesignCellContents()
Method Detail |
---|
public java.awt.Color getBackcolor()
JRCellContents
The cell is filled with the background color only if the cell has opaque mode.
getBackcolor
in interface JRCellContents
public void setBackcolor(java.awt.Color color)
color
- the background colorJRCellContents.getBackcolor()
public JRBox getBox()
getLineBox()
JRCellContents
getBox
in interface JRCellContents
public JRLineBox getLineBox()
getLineBox
in interface JRBoxContainer
public void setBox(JRBox box)
getLineBox()
public int getHeight()
JRCellContents
getHeight
in interface JRCellContents
JRCellContents.NOT_CALCULATED
protected void setHeight(int height)
height
- the cell heightJRCellContents.getHeight()
public int getWidth()
JRCellContents
getWidth
in interface JRCellContents
JRCellContents.NOT_CALCULATED
protected void setWidth(int width)
width
- the cell widthJRCellContents.getWidth()
public JRDefaultStyleProvider getDefaultStyleProvider()
getDefaultStyleProvider
in interface JRStyleContainer
public JRStyle getStyle()
JRStyleContainer
getStyle
in interface JRStyleContainer
public void setStyle(JRStyle style)
style
- the style to be usedpublic java.lang.Byte getMode()
getModeValue()
.
getMode
in interface JRCellContents
public ModeEnum getModeValue()
JRCellContents
getModeValue
in interface JRCellContents
MODE_OPAQUE
or MODE_TRANSPARENT
public void setMode(java.lang.Byte mode)
public void setMode(ModeEnum modeValue)
modeValue
- the transparency modeJRCellContents.getModeValue()
public java.lang.String getStyleNameReference()
JRStyleContainer
templates
and are resolved
at fill time.
This attribute is only effective if no direct style (as returned by getStyle()
is specified for this object.
getStyleNameReference
in interface JRStyleContainer
public void setStyleNameReference(java.lang.String styleName)
getStyle()
returns null
The external style will be resolved at fill time from the templates used in the report.
styleName
- the name of the external stylegetStyleNameReference()
public JRCrosstabOrigin getOrigin()
public void setOrigin(JRCrosstabOrigin origin)
public java.awt.Color getDefaultLineColor()
getDefaultLineColor
in interface JRBoxContainer
public java.lang.Object clone()
clone
in interface JRCloneable
clone
in class JRBaseElementGroup
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |