|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.fill.JRTemplateElement
public abstract class JRTemplateElement
Base class consisting of print element information shared by multiple print elements.
| Field Summary | |
|---|---|
protected JRDefaultStyleProvider |
defaultStyleProvider
|
protected JROrigin |
origin
|
protected JRStyle |
parentStyle
|
| Constructor Summary | |
|---|---|
protected |
JRTemplateElement(JROrigin origin,
JRDefaultStyleProvider defaultStyleProvider)
|
protected |
JRTemplateElement(JROrigin origin,
JRElement element)
|
protected |
JRTemplateElement(java.lang.String id)
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JROrigin origin
protected JRDefaultStyleProvider defaultStyleProvider
protected JRStyle parentStyle
| Constructor Detail |
|---|
protected JRTemplateElement(JROrigin origin,
JRDefaultStyleProvider defaultStyleProvider)
protected JRTemplateElement(JROrigin origin,
JRElement element)
protected JRTemplateElement(java.lang.String id)
| Method Detail |
|---|
public void setElement(JRElement element)
element - the element to copy attributes frompublic JROrigin getOrigin()
public JRDefaultStyleProvider getDefaultStyleProvider()
getDefaultStyleProvider in interface JRStyleContainerpublic JRStyle getStyle()
JRStyleContainer
getStyle in interface JRStyleContainerprotected JRStyle getBaseStyle()
public int getWidth()
getWidth in interface JRCommonElementpublic int getHeight()
getHeight in interface JRCommonElementpublic byte getMode()
getModeValue().
getMode in interface JRCommonElementpublic java.lang.Byte getOwnMode()
getOwnModeValue().
getOwnMode in interface JRCommonElementpublic ModeEnum getModeValue()
JRCommonElement
getModeValue in interface JRCommonElementpublic ModeEnum getOwnModeValue()
getOwnModeValue in interface JRCommonElementpublic void setMode(byte mode)
setMode(ModeEnum).
setMode in interface JRCommonElementpublic void setMode(java.lang.Byte mode)
setMode(ModeEnum).
setMode in interface JRCommonElementpublic void setMode(ModeEnum modeValue)
JRCommonElement
setMode in interface JRCommonElementpublic java.awt.Color getForecolor()
getForecolor in interface JRCommonElementpublic java.awt.Color getOwnForecolor()
getOwnForecolor in interface JRCommonElementpublic void setForecolor(java.awt.Color forecolor)
setForecolor in interface JRCommonElementpublic java.awt.Color getBackcolor()
getBackcolor in interface JRCommonElementpublic java.awt.Color getOwnBackcolor()
getOwnBackcolor in interface JRCommonElementpublic void setBackcolor(java.awt.Color backcolor)
setBackcolor in interface JRCommonElementpublic java.lang.String getId()
public java.lang.String getKey()
JRCommonElement
getKey in interface JRCommonElementpublic void setKey(java.lang.String key)
public java.lang.String getStyleNameReference()
getStyleNameReference in interface JRStyleContainerpublic boolean hasProperties()
JRPropertiesHolder
hasProperties in interface JRPropertiesHolderpublic JRPropertiesMap getPropertiesMap()
JRPropertiesHolder
getPropertiesMap in interface JRPropertiesHolderpublic JRPropertiesHolder getParentProperties()
JRPropertiesHolder
getParentProperties in interface JRPropertiesHoldernull if no parentpublic void setStyle(JRStyle style)
style - the style
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||