net.sf.jasperreports.engine.fill
public abstract class JRTemplateElement extends java.lang.Object implements JRCommonElement, java.io.Serializable, JRPropertiesHolder
Modifier and Type | Field and Description |
---|---|
protected JRDefaultStyleProvider |
defaultStyleProvider |
protected JROrigin |
origin |
protected JRStyle |
parentStyle |
Modifier | Constructor and Description |
---|---|
protected |
JRTemplateElement(JROrigin origin,
JRDefaultStyleProvider defaultStyleProvider) |
protected |
JRTemplateElement(JROrigin origin,
JRElement element) |
protected |
JRTemplateElement(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getBackcolor() |
protected JRStyle |
getBaseStyle() |
JRDefaultStyleProvider |
getDefaultStyleProvider() |
java.awt.Color |
getForecolor() |
int |
getHeight() |
java.lang.String |
getId() |
java.lang.String |
getKey()
Returns the string value that uniquely identifies the element.
|
byte |
getMode()
Deprecated.
Replaced by
getModeValue() . |
ModeEnum |
getModeValue()
Returns the element transparency mode.
|
JROrigin |
getOrigin() |
java.awt.Color |
getOwnBackcolor() |
java.awt.Color |
getOwnForecolor() |
java.lang.Byte |
getOwnMode()
Deprecated.
Replaced by
getOwnModeValue() . |
ModeEnum |
getOwnModeValue() |
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.
|
java.lang.String |
getStyleNameReference()
Returns null as external style references are not allowed for print objects.
|
int |
getWidth() |
boolean |
hasProperties()
Checks whether the object has any properties.
|
void |
setBackcolor(java.awt.Color backcolor) |
void |
setElement(JRElement element)
Copies basic element attributes: the element style, key,
mode, forecolor and backcolor.
|
void |
setForecolor(java.awt.Color forecolor) |
void |
setKey(java.lang.String key) |
void |
setMode(byte mode)
Deprecated.
Replaced by
setMode(ModeEnum) . |
void |
setMode(java.lang.Byte mode)
Deprecated.
Replaced by
setMode(ModeEnum) . |
void |
setMode(ModeEnum modeValue)
Sets the element transparency mode.
|
void |
setStyle(JRStyle style)
Sets the template element style.
|
protected JROrigin origin
protected JRDefaultStyleProvider defaultStyleProvider
protected JRStyle parentStyle
protected JRTemplateElement(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider)
protected JRTemplateElement(java.lang.String id)
public void setElement(JRElement element)
element
- the element to copy attributes frompublic JROrigin getOrigin()
public JRDefaultStyleProvider getDefaultStyleProvider()
getDefaultStyleProvider
in interface JRStyleContainer
public JRStyle getStyle()
JRStyleContainer
getStyle
in interface JRStyleContainer
protected JRStyle getBaseStyle()
public int getWidth()
getWidth
in interface JRCommonElement
public int getHeight()
getHeight
in interface JRCommonElement
public byte getMode()
getModeValue()
.getMode
in interface JRCommonElement
public java.lang.Byte getOwnMode()
getOwnModeValue()
.getOwnMode
in interface JRCommonElement
public ModeEnum getModeValue()
JRCommonElement
getModeValue
in interface JRCommonElement
public ModeEnum getOwnModeValue()
getOwnModeValue
in interface JRCommonElement
public void setMode(byte mode)
setMode(ModeEnum)
.setMode
in interface JRCommonElement
public void setMode(java.lang.Byte mode)
setMode(ModeEnum)
.setMode
in interface JRCommonElement
public void setMode(ModeEnum modeValue)
JRCommonElement
setMode
in interface JRCommonElement
public java.awt.Color getForecolor()
getForecolor
in interface JRCommonElement
public java.awt.Color getOwnForecolor()
getOwnForecolor
in interface JRCommonElement
public void setForecolor(java.awt.Color forecolor)
setForecolor
in interface JRCommonElement
public java.awt.Color getBackcolor()
getBackcolor
in interface JRCommonElement
public java.awt.Color getOwnBackcolor()
getOwnBackcolor
in interface JRCommonElement
public void setBackcolor(java.awt.Color backcolor)
setBackcolor
in interface JRCommonElement
public java.lang.String getId()
public java.lang.String getKey()
JRCommonElement
getKey
in interface JRCommonElement
public void setKey(java.lang.String key)
public java.lang.String getStyleNameReference()
getStyleNameReference
in interface JRStyleContainer
public boolean hasProperties()
JRPropertiesHolder
hasProperties
in interface JRPropertiesHolder
public JRPropertiesMap getPropertiesMap()
JRPropertiesHolder
getPropertiesMap
in interface JRPropertiesHolder
public JRPropertiesHolder getParentProperties()
JRPropertiesHolder
getParentProperties
in interface JRPropertiesHolder
null
if no parentpublic void setStyle(JRStyle style)
style
- the style© 2001-2010 Jaspersoft Corporation www.jaspersoft.com