Package net.sf.jasperreports.engine.fill
Class JRTemplateGraphicElement
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JRTemplateElement
-
- net.sf.jasperreports.engine.fill.JRTemplateGraphicElement
-
- All Implemented Interfaces:
Serializable,Deduplicable,JRCommonElement,JRCommonGraphicElement,JRPenContainer,JRPropertiesHolder,JRStyleContainer
- Direct Known Subclasses:
JRTemplateEllipse,JRTemplateImage,JRTemplateLine,JRTemplateRectangle
public abstract class JRTemplateGraphicElement extends JRTemplateElement implements JRCommonGraphicElement
Base class consisting of graphic print element information shared by multiple print element instances.- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected JRPenlinePen-
Fields inherited from class net.sf.jasperreports.engine.fill.JRTemplateElement
defaultStyleProvider, origin, parentStyle
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJRTemplateGraphicElement(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider)protectedJRTemplateGraphicElement(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider, JRGraphicElement graphicElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddGraphicHash(ObjectUtils.HashCode hash)voidcopyLinePen(JRPen pen)Copiespenattributes.ColorgetDefaultLineColor()FloatgetDefaultLineWidth()FillEnumgetFillValue()Indicates the fill type used for this element.JRPengetLinePen()FillEnumgetOwnFillValue()Indicates the own fill type used for this element.protected booleangraphicIdentical(JRTemplateGraphicElement template)voidpopulateStyle()voidsetFill(FillEnum fillValue)Sets the fill type used for this element.protected voidsetGraphicElement(JRGraphicElement graphicElement)-
Methods inherited from class net.sf.jasperreports.engine.fill.JRTemplateElement
addTemplateHash, getBackcolor, getBaseStyle, getDefaultStyleProvider, getForecolor, getHeight, getId, getKey, getModeValue, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPropertiesMap, getStyle, getStyleNameReference, getStyleResolver, getWidth, hasProperties, setBackcolor, setElement, setForecolor, setKey, setMode, setStyle, templateIdentical
-
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.Deduplicable
getHashCode, isIdentical
-
Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement
getBackcolor, getForecolor, getHeight, getKey, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setMode
-
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleNameReference
-
-
-
-
Field Detail
-
linePen
protected JRPen linePen
-
-
Constructor Detail
-
JRTemplateGraphicElement
protected JRTemplateGraphicElement(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider)
-
JRTemplateGraphicElement
protected JRTemplateGraphicElement(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider, JRGraphicElement graphicElement)
-
-
Method Detail
-
setGraphicElement
protected void setGraphicElement(JRGraphicElement graphicElement)
-
copyLinePen
public void copyLinePen(JRPen pen)
Copiespenattributes.- Parameters:
pen- the object to copy the attributes from
-
getLinePen
public JRPen getLinePen()
- Specified by:
getLinePenin interfaceJRCommonGraphicElement
-
getFillValue
public FillEnum getFillValue()
Description copied from interface:JRCommonGraphicElementIndicates the fill type used for this element.- Specified by:
getFillValuein interfaceJRCommonGraphicElement- Returns:
- a value representing one of the fill type constants in
FillEnum
-
getOwnFillValue
public FillEnum getOwnFillValue()
Description copied from interface:JRCommonGraphicElementIndicates the own fill type used for this element.- Specified by:
getOwnFillValuein interfaceJRCommonGraphicElement- Returns:
- a value representing one of the fill type constants in
FillEnum
-
setFill
public void setFill(FillEnum fillValue)
Description copied from interface:JRCommonGraphicElementSets the fill type used for this element.- Specified by:
setFillin interfaceJRCommonGraphicElement- Parameters:
fillValue- a value representing one of the line direction constants inFillEnum
-
getDefaultLineWidth
public Float getDefaultLineWidth()
- Specified by:
getDefaultLineWidthin interfaceJRPenContainer
-
getDefaultLineColor
public Color getDefaultLineColor()
- Specified by:
getDefaultLineColorin interfaceJRPenContainer
-
addGraphicHash
protected void addGraphicHash(ObjectUtils.HashCode hash)
-
graphicIdentical
protected boolean graphicIdentical(JRTemplateGraphicElement template)
-
populateStyle
public void populateStyle()
- Overrides:
populateStylein classJRTemplateElement
-
-