net.sf.jasperreports.engine.base
public class JRBasePrintElement extends java.lang.Object implements JRPrintElement, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.awt.Color |
backcolor |
protected JRDefaultStyleProvider |
defaultStyleProvider |
protected java.awt.Color |
forecolor |
protected int |
height |
protected java.lang.String |
key |
protected ModeEnum |
modeValue |
protected JROrigin |
origin |
protected JRStyle |
style |
protected int |
width |
protected int |
x |
protected int |
y |
Constructor and Description |
---|
JRBasePrintElement(JRDefaultStyleProvider defaultStyleProvider) |
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getBackcolor() |
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.
|
int |
getWidth() |
int |
getX() |
int |
getY() |
boolean |
hasProperties()
Checks whether the object has any properties.
|
void |
setBackcolor(java.awt.Color backcolor) |
void |
setForecolor(java.awt.Color forecolor) |
void |
setHeight(int height) |
void |
setKey(java.lang.String key)
Sets the print element 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 |
setOrigin(JROrigin origin) |
void |
setStyle(JRStyle style) |
void |
setWidth(int width) |
void |
setX(int x) |
void |
setY(int y) |
protected JROrigin origin
protected java.lang.String key
protected ModeEnum modeValue
protected int x
protected int y
protected int width
protected int height
protected java.awt.Color forecolor
protected java.awt.Color backcolor
protected JRDefaultStyleProvider defaultStyleProvider
protected JRStyle style
public JRBasePrintElement(JRDefaultStyleProvider defaultStyleProvider)
public JRDefaultStyleProvider getDefaultStyleProvider()
getDefaultStyleProvider
in interface JRStyleContainer
public JROrigin getOrigin()
getOrigin
in interface JRPrintElement
public void setOrigin(JROrigin origin)
public JRStyle getStyle()
JRStyleContainer
getStyle
in interface JRStyleContainer
public void setStyle(JRStyle style)
setStyle
in interface JRPrintElement
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 int getX()
getX
in interface JRPrintElement
public void setX(int x)
setX
in interface JRPrintElement
public int getY()
getY
in interface JRPrintElement
public void setY(int y)
setY
in interface JRPrintElement
public int getWidth()
getWidth
in interface JRCommonElement
getWidth
in interface JRPrintElement
public void setWidth(int width)
setWidth
in interface JRPrintElement
public int getHeight()
getHeight
in interface JRCommonElement
getHeight
in interface JRPrintElement
public void setHeight(int height)
setHeight
in interface JRPrintElement
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 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 JRCommonElement
getKey
in interface JRPrintElement
public void setKey(java.lang.String key)
key
- the element keygetKey()
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 parent© 2001-2010 Jaspersoft Corporation www.jaspersoft.com