net.sf.jasperreports.engine.design
Class JRDesignGraphicElement
java.lang.Object
net.sf.jasperreports.engine.base.JRBaseElement
net.sf.jasperreports.engine.design.JRDesignElement
net.sf.jasperreports.engine.design.JRDesignGraphicElement
- All Implemented Interfaces:
- JRChild, JRElement, JRGraphicElement, JRStyleContainer, 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.28 2005/11/28 09:20:43 teodord Exp $
- 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 |
Method Summary |
byte |
getFill()
Indicates the fill type used for this element. |
byte |
getMode()
Returns the element transparency mode. |
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, 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, 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 |
pen
protected java.lang.Byte pen
fill
protected java.lang.Byte fill
JRDesignGraphicElement
protected JRDesignGraphicElement(JRDefaultStyleProvider defaultStyleProvider)
getMode
public byte getMode()
- Description copied from interface:
JRElement
- 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 JRElement
- Overrides:
getMode
in class JRBaseElement
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-2005 JasperSoft Corporation www.jaspersoft.com