|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.base.JRBasePrintElement
public class JRBasePrintElement
| Field Summary | |
|---|---|
protected Color |
backcolor
|
protected JRDefaultStyleProvider |
defaultStyleProvider
|
protected Color |
forecolor
|
protected int |
height
|
protected String |
key
|
protected ModeEnum |
modeValue
|
protected JROrigin |
origin
|
protected JRStyle |
style
|
protected UUID |
uuid
|
protected int |
width
|
protected int |
x
|
protected int |
y
|
| Fields inherited from interface net.sf.jasperreports.engine.JRPrintElement |
|---|
UNSET_SOURCE_ELEMENT_ID |
| Constructor Summary | |
|---|---|
JRBasePrintElement(JRDefaultStyleProvider defaultStyleProvider)
|
|
| Method Summary | ||
|---|---|---|
|
accept(PrintElementVisitor<T> visitor,
T arg)
Accepts a print element visitor. |
|
Color |
getBackcolor()
|
|
JRDefaultStyleProvider |
getDefaultStyleProvider()
|
|
Color |
getForecolor()
|
|
int |
getHeight()
|
|
String |
getKey()
Returns a string key that can be used to identify 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. |
|
int |
getSourceElementId()
Returns a numerical Id associated to the fill element that generated this print element. |
|
JRStyle |
getStyle()
Returns this object's style. |
|
String |
getStyleNameReference()
Returns null as external style references are not allowed for print objects. |
|
UUID |
getUUID()
|
|
int |
getWidth()
|
|
int |
getX()
|
|
int |
getY()
|
|
boolean |
hasProperties()
Checks whether the object has any properties. |
|
void |
setBackcolor(Color backcolor)
|
|
void |
setForecolor(Color forecolor)
|
|
void |
setHeight(int height)
|
|
void |
setKey(String key)
Sets the print element key. |
|
void |
setMode(ModeEnum modeValue)
Sets the element transparency mode. |
|
void |
setOrigin(JROrigin origin)
|
|
void |
setSourceElementId(int sourceElementId)
Sets the source/fill element Id for the print element. |
|
void |
setStyle(JRStyle style)
|
|
void |
setWidth(int width)
|
|
void |
setX(int x)
|
|
void |
setY(int y)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected UUID uuid
protected JROrigin origin
protected String key
protected ModeEnum modeValue
protected int x
protected int y
protected int width
protected int height
protected Color forecolor
protected Color backcolor
protected JRDefaultStyleProvider defaultStyleProvider
protected JRStyle style
| Constructor Detail |
|---|
public JRBasePrintElement(JRDefaultStyleProvider defaultStyleProvider)
| Method Detail |
|---|
public JRDefaultStyleProvider getDefaultStyleProvider()
getDefaultStyleProvider in interface JRStyleContainerpublic UUID getUUID()
getUUID in interface JRIdentifiablepublic JROrigin getOrigin()
getOrigin in interface JRPrintElementpublic void setOrigin(JROrigin origin)
public JRStyle getStyle()
JRStyleContainer
getStyle in interface JRStyleContainerpublic void setStyle(JRStyle style)
setStyle in interface JRPrintElementpublic ModeEnum getModeValue()
JRCommonElement
getModeValue in interface JRCommonElementpublic ModeEnum getOwnModeValue()
getOwnModeValue 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 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 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 void setKey(String key)
key - the element keygetKey()public 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 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 operationpublic int getSourceElementId()
JRPrintElement
getSourceElementId in interface JRPrintElementpublic void setSourceElementId(int sourceElementId)
sourceElementId - getSourceElementId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||