net.sf.jasperreports.engine.base
Class JRBaseGraphicElement
java.lang.Object
net.sf.jasperreports.engine.base.JRBaseElement
net.sf.jasperreports.engine.base.JRBaseGraphicElement
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, JRChangeEventsSupport, JRChild, JRCloneable, JRCommonElement, JRCommonGraphicElement, JRElement, JRGraphicElement, JRPenContainer, JRPropertiesHolder, JRStyleContainer, JRVisitable
- 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 2006 2007-12-05 14:28:33Z teodord $
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseElement |
backcolor, defaultStyleProvider, elementGroup, forecolor, height, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, key, mode, parentStyle, parentStyleNameReference, positionType, printWhenExpression, printWhenGroupChanges, PROPERTY_POSITION_TYPE, PROPERTY_PRINT_IN_FIRST_WHOLE_BAND, PROPERTY_PRINT_REPEATED_VALUES, PROPERTY_PRINT_WHEN_DETAIL_OVERFLOWS, PROPERTY_REMOVE_LINE_WHEN_BLANK, PROPERTY_STRETCH_TYPE, PROPERTY_WIDTH, PROPERTY_X, stretchType, width, x, y |
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseElement |
clone, clone, getBackcolor, getBaseStyle, getDefaultStyleProvider, getElementGroup, getEventSupport, getForecolor, getHeight, getKey, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode, getParentProperties, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertiesMap, getStretchType, getStyle, getStyleNameReference, getWidth, getX, getY, hasProperties, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jasperreports.engine.JRElement |
collectExpressions, getElementGroup, getHeight, getKey, 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 |
clone |
linePen
protected JRPen linePen
fill
protected java.lang.Byte fill
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
getLinePen
public JRPen getLinePen()
- Specified by:
getLinePen
in interface JRCommonGraphicElement
getPen
public byte getPen()
- Deprecated. Replaced by
getLinePen()
- 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()
- Deprecated. Replaced by
getLinePen()
- Specified by:
getOwnPen
in interface JRGraphicElement
setPen
public void setPen(byte pen)
- Deprecated. Replaced by
getLinePen()
- 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)
- Deprecated. Replaced by
getLinePen()
- Specified by:
setPen
in interface JRGraphicElement
getFill
public byte getFill()
- Description copied from interface:
JRCommonGraphicElement
- Indicates the fill type used for this element.
- Specified by:
getFill
in interface JRCommonGraphicElement
- Returns:
- one of the pen constants in this class
getOwnFill
public java.lang.Byte getOwnFill()
- Specified by:
getOwnFill
in interface JRCommonGraphicElement
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
getDefaultLineWidth
public java.lang.Float getDefaultLineWidth()
- Specified by:
getDefaultLineWidth
in interface JRPenContainer
getDefaultLineColor
public java.awt.Color getDefaultLineColor()
- Specified by:
getDefaultLineColor
in interface JRPenContainer
© 2001-2006 JasperSoft Corporation www.jaspersoft.com