|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.fill.JRTemplatePrintElement
public class JRTemplatePrintElement
Base implementation of JRPrintElement that uses
a JRTemplateElement instance to
store common attributes.
| Field Summary | |
|---|---|
protected JRTemplateElement |
template
|
| Constructor Summary | |
|---|---|
protected |
JRTemplatePrintElement(JRTemplateElement element)
|
| Method Summary | ||
|---|---|---|
|
accept(PrintElementVisitor<T> visitor,
T arg)
Accepts a print element visitor. |
|
java.awt.Color |
getBackcolor()
|
|
java.awt.Color |
getDefaultLineColor()
|
|
JRDefaultStyleProvider |
getDefaultStyleProvider()
|
|
java.awt.Color |
getForecolor()
|
|
int |
getHeight()
|
|
java.lang.String |
getKey()
Returns a string key that can be used to identify 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. |
|
JRTemplateElement |
getTemplate()
|
|
int |
getWidth()
|
|
int |
getX()
|
|
int |
getY()
|
|
boolean |
hasProperties()
Checks whether the object has any properties. |
|
void |
setBackcolor(java.awt.Color color)
|
|
void |
setForecolor(java.awt.Color color)
|
|
void |
setHeight(int height)
|
|
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)
|
|
void |
setTemplate(JRTemplateElement template)
|
|
void |
setWidth(int width)
|
|
void |
setX(int x)
|
|
void |
setY(int y)
|
|
protected void |
updateElementTemplate(JRTemplateElement elementTemplate)
Updates the template used by this element. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JRTemplateElement template
| Constructor Detail |
|---|
protected JRTemplatePrintElement(JRTemplateElement element)
| Method Detail |
|---|
protected void updateElementTemplate(JRTemplateElement elementTemplate)
elementTemplate - the new element templatepublic JRDefaultStyleProvider getDefaultStyleProvider()
getDefaultStyleProvider in interface JRStyleContainerpublic JROrigin getOrigin()
getOrigin in interface JRPrintElementpublic JRStyle getStyle()
JRStyleContainer
getStyle in interface JRStyleContainerpublic void setStyle(JRStyle style)
setStyle in interface JRPrintElementpublic 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 int getX()
getX in interface JRPrintElementpublic void setX(int x)
setX in interface JRPrintElementpublic int getY()
getY in interface JRPrintElementpublic void setY(int y)
setY in interface JRPrintElementpublic int getWidth()
getWidth in interface JRCommonElementgetWidth in interface JRPrintElementpublic void setWidth(int width)
setWidth in interface JRPrintElementpublic int getHeight()
getHeight in interface JRCommonElementgetHeight in interface JRPrintElementpublic void setHeight(int height)
setHeight in interface JRPrintElementpublic java.awt.Color getForecolor()
getForecolor in interface JRCommonElementpublic java.awt.Color getOwnForecolor()
getOwnForecolor in interface JRCommonElementpublic void setForecolor(java.awt.Color color)
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 color)
setBackcolor in interface JRCommonElementpublic JRTemplateElement getTemplate()
public void setTemplate(JRTemplateElement template)
public java.lang.String getKey()
JRPrintElement
When filling a report, the report element key
is copied to all print elements generated by a report element.
Note that this means that multiple elements having the same key can
appear on the same page/filled report.
getKey in interface JRCommonElementgetKey in interface JRPrintElementpublic java.lang.String getStyleNameReference()
getStyleNameReference in interface JRStyleContainerpublic java.awt.Color getDefaultLineColor()
public boolean hasProperties()
JRPropertiesHolder
hasProperties in interface JRPropertiesHolderpublic JRPropertiesMap getPropertiesMap()
JRPropertiesHolder
getPropertiesMap in interface JRPropertiesHolderpublic JRPropertiesHolder getParentProperties()
JRPropertiesHolder
getParentProperties in interface JRPropertiesHoldernull if no parent
public <T> void accept(PrintElementVisitor<T> visitor,
T arg)
JRPrintElementThe element calls the method that corresponds to the element type on the visitor.
accept in interface JRPrintElementT - the type of the argument passed to the visit operationvisitor - the visitor objectsarg - the argument passed to the visit operation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||