net.sf.jasperreports.engine.base
Class JRBaseGraphicElement

java.lang.Object
  extended by net.sf.jasperreports.engine.base.JRBaseElement
      extended by net.sf.jasperreports.engine.base.JRBaseGraphicElement
All Implemented Interfaces:
java.io.Serializable, JRChild, JRElement, JRGraphicElement, JRStyleContainer
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 1229 2006-04-19 13:27:35 +0300 (Wed, 19 Apr 2006) teodord $
Author:
Teodor Danciu (teodord@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
protected  java.lang.Byte fill
           
protected  java.lang.Byte pen
           
 
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseElement
backcolor, defaultStyleProvider, elementGroup, forecolor, height, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, key, mode, parentStyle, 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(JRGraphicElement graphicElement, JRBaseObjectFactory factory)
          Constructs an empty graphic element.
 
Method Summary
 byte getFill()
          Indicates the fill type used for this element.
 java.lang.Byte getOwnFill()
           
 java.lang.Byte getOwnPen()
           
 byte getPen()
          Indicates the pen type used for this element.
 void setFill(byte fill)
          Sets the fill type used for this element.
 void setFill(java.lang.Byte fill)
           
 void setPen(byte pen)
          Sets the pen type that will used for this element.
 void setPen(java.lang.Byte pen)
           
 
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseElement
getBackcolor, getBaseStyle, getDefaultStyleProvider, getElementGroup, getForecolor, getHeight, getKey, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getStretchType, getStyle, getWidth, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, 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, getOwnBackcolor, getOwnForecolor, getOwnMode, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getStretchType, getWidth, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX
 
Methods inherited from interface net.sf.jasperreports.engine.JRChild
getCopy, writeXml
 
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle
 

Field Detail

pen

protected java.lang.Byte pen

fill

protected java.lang.Byte fill
Constructor Detail

JRBaseGraphicElement

protected JRBaseGraphicElement(JRGraphicElement graphicElement,
                               JRBaseObjectFactory factory)
Constructs an empty graphic element. By default graphic elements are opaque. protected JRBaseGraphicElement() { super(); } /** 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

getOwnPen

public java.lang.Byte getOwnPen()
Specified by:
getOwnPen in interface JRGraphicElement

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

setPen

public void setPen(java.lang.Byte pen)
Specified by:
setPen in interface JRGraphicElement

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

getOwnFill

public java.lang.Byte getOwnFill()
Specified by:
getOwnFill in interface JRGraphicElement

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

setFill

public void setFill(java.lang.Byte fill)
Specified by:
setFill in interface JRGraphicElement


© 2001-2006 JasperSoft Corporation www.jaspersoft.com