net.sf.jasperreports.engine.base
Class JRBaseGraphicElement

java.lang.Object
  extended bynet.sf.jasperreports.engine.base.JRBaseElement
      extended bynet.sf.jasperreports.engine.base.JRBaseGraphicElement
All Implemented Interfaces:
JRChild, JRElement, JRGraphicElement, java.io.Serializable
Direct Known Subclasses:
JRBaseEllipse, JRBaseImage, JRBaseLine, JRBaseRectangle

public abstract class JRBaseGraphicElement
extends JRBaseElement
implements JRGraphicElement

This class provides functionality common to graphic elements. It provides implementation for the methods described in JRTextElement.

Version:
$Id: JRBaseGraphicElement.java,v 1.27 2005/10/09 21:34:26 teodord Exp $
Author:
Teodor Danciu (teodord@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
protected  byte fill
           
protected  byte pen
           
 
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseElement
backcolor, elementGroup, forecolor, height, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, key, mode, positionType, printWhenExpression, printWhenGroupChanges, stretchType, width, x, y
 
Fields inherited from interface net.sf.jasperreports.engine.JRGraphicElement
FILL_SOLID, PEN_1_POINT, PEN_2_POINT, PEN_4_POINT, PEN_DOTTED, PEN_NONE, PEN_THIN
 
Fields inherited from interface net.sf.jasperreports.engine.JRElement
MODE_OPAQUE, MODE_TRANSPARENT, POSITION_TYPE_FIX_RELATIVE_TO_BOTTOM, POSITION_TYPE_FIX_RELATIVE_TO_TOP, POSITION_TYPE_FLOAT, STRETCH_TYPE_NO_STRETCH, STRETCH_TYPE_RELATIVE_TO_BAND_HEIGHT, STRETCH_TYPE_RELATIVE_TO_TALLEST_OBJECT
 
Constructor Summary
protected JRBaseGraphicElement()
          Constructs an empty graphic element.
protected JRBaseGraphicElement(JRGraphicElement graphicElement, JRBaseObjectFactory factory)
          Initializes properties that are specific to graphic elements.
 
Method Summary
 byte getFill()
          Indicates the fill type used for this element.
 byte getPen()
          Indicates the pen type used for this element.
 void setFill(byte fill)
          Sets the fill type used for this element.
 void setPen(byte pen)
          Sets the pen type that will used for this element.
 
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseElement
getBackcolor, getElementGroup, getForecolor, getHeight, getKey, getMode, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getStretchType, getWidth, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jasperreports.engine.JRElement
collectExpressions, getBackcolor, getElementGroup, getForecolor, getHeight, getKey, getMode, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getStretchType, getWidth, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX
 
Methods inherited from interface net.sf.jasperreports.engine.JRChild
getCopy, writeXml
 

Field Detail

pen

protected byte pen

fill

protected byte fill
Constructor Detail

JRBaseGraphicElement

protected JRBaseGraphicElement()
Constructs an empty graphic element. By default graphic elements are opaque.


JRBaseGraphicElement

protected JRBaseGraphicElement(JRGraphicElement graphicElement,
                               JRBaseObjectFactory factory)
Initializes properties that are specific to graphic elements. Common properties are initialized by its parent constructor.

Parameters:
graphicElement - an element whose properties are copied to this element. Usually it is a JRDesignGraphicElement that must be transformed into an JRBaseGraphicElement at compile time.
factory - a factory used in the compile process
Method Detail

getPen

public byte getPen()
Description copied from interface: JRGraphicElement
Indicates the pen type used for this element.

Specified by:
getPen in interface JRGraphicElement
Returns:
one of the pen constants in this class

setPen

public void setPen(byte pen)
Description copied from interface: JRGraphicElement
Sets the pen type that will used for this element.

Specified by:
setPen in interface JRGraphicElement
Parameters:
pen - one of the pen constants in this class

getFill

public byte getFill()
Description copied from interface: JRGraphicElement
Indicates the fill type used for this element.

Specified by:
getFill in interface JRGraphicElement
Returns:
one of the pen constants in this class

setFill

public void setFill(byte fill)
Description copied from interface: JRGraphicElement
Sets the fill type used for this element.

Specified by:
setFill in interface JRGraphicElement
Parameters:
fill - one of the pen constants in this class


© 2001-2005 JasperSoft Corporation www.jaspersoft.com