public abstract class JRTemplateElement extends Object implements JRCommonElement, Serializable, JRPropertiesHolder, Deduplicable
| 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(String id) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addTemplateHash(ObjectUtils.HashCode hash) |
Color |
getBackcolor() |
protected JRStyle |
getBaseStyle() |
JRDefaultStyleProvider |
getDefaultStyleProvider() |
Color |
getForecolor() |
int |
getHeight() |
String |
getId() |
String |
getKey()
Returns the string value that uniquely identifies the element.
|
ModeEnum |
getModeValue()
Returns the element transparency mode.
|
JROrigin |
getOrigin() |
Color |
getOwnBackcolor() |
Color |
getOwnForecolor() |
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.
|
String |
getStyleNameReference()
Returns null as external style references are not allowed for print objects.
|
protected StyleResolver |
getStyleResolver() |
int |
getWidth() |
boolean |
hasProperties()
Checks whether the object has any properties.
|
void |
setBackcolor(Color backcolor) |
void |
setElement(JRElement element)
Copies basic element attributes: the element style, key,
mode, forecolor and backcolor.
|
void |
setForecolor(Color forecolor) |
void |
setKey(String key) |
void |
setMode(ModeEnum modeValue)
Sets the element transparency mode.
|
void |
setStyle(JRStyle style)
Sets the template element style.
|
protected boolean |
templateIdentical(JRTemplateElement template) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHashCode, isIdenticalprotected JROrigin origin
protected JRDefaultStyleProvider defaultStyleProvider
protected JRStyle parentStyle
protected JRTemplateElement(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider)
protected JRTemplateElement(String id)
public void setElement(JRElement element)
element - the element to copy attributes frompublic JROrigin getOrigin()
public JRDefaultStyleProvider getDefaultStyleProvider()
getDefaultStyleProvider in interface JRStyleContainerprotected StyleResolver getStyleResolver()
public JRStyle getStyle()
JRStyleContainergetStyle in interface JRStyleContainerprotected JRStyle getBaseStyle()
public int getWidth()
getWidth in interface JRCommonElementpublic int getHeight()
getHeight in interface JRCommonElementpublic ModeEnum getModeValue()
JRCommonElementgetModeValue in interface JRCommonElementpublic ModeEnum getOwnModeValue()
getOwnModeValue in interface JRCommonElementpublic void setMode(ModeEnum modeValue)
JRCommonElementsetMode in interface JRCommonElementpublic Color getForecolor()
getForecolor in interface JRCommonElementpublic Color getOwnForecolor()
getOwnForecolor in interface JRCommonElementpublic void setForecolor(Color forecolor)
setForecolor in interface JRCommonElementpublic Color getBackcolor()
getBackcolor in interface JRCommonElementpublic Color getOwnBackcolor()
getOwnBackcolor in interface JRCommonElementpublic void setBackcolor(Color backcolor)
setBackcolor in interface JRCommonElementpublic String getId()
public String getKey()
JRCommonElementgetKey in interface JRCommonElementpublic void setKey(String key)
public String getStyleNameReference()
getStyleNameReference in interface JRStyleContainerpublic boolean hasProperties()
JRPropertiesHolderhasProperties in interface JRPropertiesHolderpublic JRPropertiesMap getPropertiesMap()
JRPropertiesHoldergetPropertiesMap in interface JRPropertiesHolderpublic JRPropertiesHolder getParentProperties()
JRPropertiesHoldergetParentProperties in interface JRPropertiesHoldernull if no parentpublic void setStyle(JRStyle style)
style - the styleprotected void addTemplateHash(ObjectUtils.HashCode hash)
protected boolean templateIdentical(JRTemplateElement template)
Copyright © 2017. All rights reserved.