net.sf.jasperreports.engine.base
Class JRBasePrintElement

java.lang.Object
  extended by net.sf.jasperreports.engine.base.JRBasePrintElement
All Implemented Interfaces:
java.io.Serializable, JRPrintElement, JRStyleContainer
Direct Known Subclasses:
JRBasePrintFrame, JRBasePrintGraphicElement, JRBasePrintText

public class JRBasePrintElement
extends java.lang.Object
implements JRPrintElement, java.io.Serializable

Version:
$Id: JRBasePrintElement.java 1471 2006-11-09 18:16:34 +0200 (Thu, 09 Nov 2006) lucianc $
Author:
Teodor Danciu (teodord@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
protected  java.awt.Color backcolor
           
protected  JRDefaultStyleProvider defaultStyleProvider
           
protected  java.awt.Color forecolor
           
protected  int height
           
protected  java.lang.String key
           
protected  java.lang.Byte mode
           
protected  JRStyle style
           
protected  int width
           
protected  int x
           
protected  int y
           
 
Constructor Summary
JRBasePrintElement(JRDefaultStyleProvider defaultStyleProvider)
           
 
Method Summary
 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()
           
 java.awt.Color getOwnBackcolor()
           
 java.awt.Color getOwnForecolor()
           
 java.lang.Byte getOwnMode()
           
 JRStyle getStyle()
           
 int getWidth()
           
 int getX()
           
 int getY()
           
 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)
           
 void setMode(java.lang.Byte mode)
           
 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

key

protected java.lang.String key

mode

protected java.lang.Byte mode

x

protected int x

y

protected int y

width

protected int width

height

protected int height

forecolor

protected java.awt.Color forecolor

backcolor

protected java.awt.Color backcolor

defaultStyleProvider

protected JRDefaultStyleProvider defaultStyleProvider

style

protected JRStyle style
Constructor Detail

JRBasePrintElement

public JRBasePrintElement(JRDefaultStyleProvider defaultStyleProvider)
Method Detail

getDefaultStyleProvider

public JRDefaultStyleProvider getDefaultStyleProvider()
Specified by:
getDefaultStyleProvider in interface JRStyleContainer

getStyle

public JRStyle getStyle()
Specified by:
getStyle in interface JRStyleContainer

setStyle

public void setStyle(JRStyle style)
Specified by:
setStyle in interface JRPrintElement

getMode

public byte getMode()
Specified by:
getMode in interface JRPrintElement

getOwnMode

public java.lang.Byte getOwnMode()
Specified by:
getOwnMode in interface JRPrintElement

setMode

public void setMode(byte mode)
Specified by:
setMode in interface JRPrintElement

setMode

public void setMode(java.lang.Byte mode)
Specified by:
setMode in interface JRPrintElement

getX

public int getX()
Specified by:
getX in interface JRPrintElement

setX

public void setX(int x)
Specified by:
setX in interface JRPrintElement

getY

public int getY()
Specified by:
getY in interface JRPrintElement

setY

public void setY(int y)
Specified by:
setY in interface JRPrintElement

getWidth

public int getWidth()
Specified by:
getWidth in interface JRPrintElement

setWidth

public void setWidth(int width)
Specified by:
setWidth in interface JRPrintElement

getHeight

public int getHeight()
Specified by:
getHeight in interface JRPrintElement

setHeight

public void setHeight(int height)
Specified by:
setHeight in interface JRPrintElement

getForecolor

public java.awt.Color getForecolor()
Specified by:
getForecolor in interface JRPrintElement

getOwnForecolor

public java.awt.Color getOwnForecolor()
Specified by:
getOwnForecolor in interface JRPrintElement

setForecolor

public void setForecolor(java.awt.Color forecolor)
Specified by:
setForecolor in interface JRPrintElement

getBackcolor

public java.awt.Color getBackcolor()
Specified by:
getBackcolor in interface JRPrintElement

getOwnBackcolor

public java.awt.Color getOwnBackcolor()
Specified by:
getOwnBackcolor in interface JRPrintElement

setBackcolor

public void setBackcolor(java.awt.Color backcolor)
Specified by:
setBackcolor in interface JRPrintElement

getKey

public java.lang.String getKey()
Description copied from interface: JRPrintElement
Returns a string key that can be used to identify the element.

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.

Specified by:
getKey in interface JRPrintElement

setKey

public void setKey(java.lang.String key)
Sets the print element key.

Parameters:
key - the element key
See Also:
getKey()


© 2001-2006 JasperSoft Corporation www.jaspersoft.com