net.sf.jasperreports.engine.fill
Class JRTemplateElement
java.lang.Object
net.sf.jasperreports.engine.fill.JRTemplateElement
- All Implemented Interfaces:
- java.io.Serializable, JRCommonElement, JRStyleContainer
- Direct Known Subclasses:
- JRTemplateFrame, JRTemplateGraphicElement, JRTemplateText, JRVirtualPrintPage.JRIdHolderTemplateElement
public abstract class JRTemplateElement
- extends java.lang.Object
- implements JRCommonElement, java.io.Serializable
- Version:
- $Id: JRTemplateElement.java 2006 2007-12-05 14:28:33Z teodord $
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
origin
protected JROrigin origin
defaultStyleProvider
protected JRDefaultStyleProvider defaultStyleProvider
parentStyle
protected JRStyle parentStyle
JRTemplateElement
protected JRTemplateElement(JROrigin origin,
JRDefaultStyleProvider defaultStyleProvider)
JRTemplateElement
protected JRTemplateElement(JROrigin origin,
JRElement element)
JRTemplateElement
protected JRTemplateElement(java.lang.String id)
setElement
protected void setElement(JRElement element)
getOrigin
public JROrigin getOrigin()
getDefaultStyleProvider
public JRDefaultStyleProvider getDefaultStyleProvider()
- Specified by:
getDefaultStyleProvider
in interface JRStyleContainer
getStyle
public JRStyle getStyle()
- Description copied from interface:
JRStyleContainer
- Returns this object's style.
- Specified by:
getStyle
in interface JRStyleContainer
- Returns:
- this object's style
getBaseStyle
protected JRStyle getBaseStyle()
getMode
public byte getMode()
- Description copied from interface:
JRCommonElement
- Returns the element transparency mode.
The default value depends on the type of the report element. Graphic elements like rectangles and lines are
opaque by default, but the images are transparent. Both static texts and text fields are transparent
by default, and so are the subreport elements.
- Specified by:
getMode
in interface JRCommonElement
- Returns:
- MODE_OPAQUE or MODE_TRANSPARENT
getOwnMode
public java.lang.Byte getOwnMode()
- Specified by:
getOwnMode
in interface JRCommonElement
setMode
protected void setMode(byte mode)
setMode
protected void setMode(java.lang.Byte mode)
getForecolor
public java.awt.Color getForecolor()
- Specified by:
getForecolor
in interface JRCommonElement
getOwnForecolor
public java.awt.Color getOwnForecolor()
- Specified by:
getOwnForecolor
in interface JRCommonElement
setForecolor
protected void setForecolor(java.awt.Color forecolor)
getBackcolor
public java.awt.Color getBackcolor()
- Specified by:
getBackcolor
in interface JRCommonElement
getOwnBackcolor
public java.awt.Color getOwnBackcolor()
- Specified by:
getOwnBackcolor
in interface JRCommonElement
setBackcolor
protected void setBackcolor(java.awt.Color backcolor)
getId
public java.lang.String getId()
getKey
public java.lang.String getKey()
- Description copied from interface:
JRCommonElement
- Returns the string value that uniquely identifies the element.
- Specified by:
getKey
in interface JRCommonElement
setKey
public void setKey(java.lang.String key)
getStyleNameReference
public java.lang.String getStyleNameReference()
- Returns null as external style references are not allowed for print objects.
- Specified by:
getStyleNameReference
in interface JRStyleContainer
- Returns:
- the name of an external style
© 2001-2006 JasperSoft Corporation www.jaspersoft.com