net.sf.jasperreports.engine.design
Class JRDesignGraphicElement

java.lang.Object
  extended bynet.sf.jasperreports.engine.base.JRBaseElement
      extended bynet.sf.jasperreports.engine.design.JRDesignElement
          extended bynet.sf.jasperreports.engine.design.JRDesignGraphicElement
All Implemented Interfaces:
JRChild, JRElement, JRGraphicElement, java.io.Serializable
Direct Known Subclasses:
JRDesignEllipse, JRDesignImage, JRDesignLine, JRDesignRectangle

public abstract class JRDesignGraphicElement
extends JRDesignElement
implements JRGraphicElement

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

Version:
$Id: JRDesignGraphicElement.java,v 1.24 2005/09/07 13:58:25 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 JRDesignGraphicElement()
           
 
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.design.JRDesignElement
setElementGroup, setHeight, setKey, setPrintWhenExpression, setPrintWhenGroupChanges, setY
 
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

JRDesignGraphicElement

protected JRDesignGraphicElement()
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

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

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

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