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 JRPen
linePen
-
Fields inherited from class net.sf.jasperreports.engine.fill.JRTemplateElement
defaultStyleProvider, origin, parentStyle
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JRTemplateGraphicElement(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider)
protected
JRTemplateGraphicElement(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider, JRGraphicElement graphicElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addGraphicHash(ObjectUtils.HashCode hash)
void
copyLinePen(JRPen pen)
Copiespen
attributes.Color
getDefaultLineColor()
Float
getDefaultLineWidth()
FillEnum
getFill()
Indicates the fill type used for this element.JRPen
getLinePen()
FillEnum
getOwnFill()
Indicates the own fill type used for this element.protected boolean
graphicIdentical(JRTemplateGraphicElement template)
void
populateStyle()
void
setFill(FillEnum fill)
Sets the fill type used for this element.protected void
setGraphicElement(JRGraphicElement graphicElement)
-
Methods inherited from class net.sf.jasperreports.engine.fill.JRTemplateElement
addTemplateHash, getBackcolor, getBaseStyle, getDefaultStyleProvider, getForecolor, getHeight, getId, getKey, getMode, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnMode, 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, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode, getWidth, setBackcolor, setForecolor, setMode
-
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleName, 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)
Copiespen
attributes.- Parameters:
pen
- the object to copy the attributes from
-
getLinePen
public JRPen getLinePen()
- Specified by:
getLinePen
in interfaceJRCommonGraphicElement
-
getFill
public FillEnum getFill()
Description copied from interface:JRCommonGraphicElement
Indicates the fill type used for this element.- Specified by:
getFill
in interfaceJRCommonGraphicElement
- Returns:
- a value representing one of the fill type constants in
FillEnum
-
getOwnFill
public FillEnum getOwnFill()
Description copied from interface:JRCommonGraphicElement
Indicates the own fill type used for this element.- Specified by:
getOwnFill
in interfaceJRCommonGraphicElement
- Returns:
- a value representing one of the fill type constants in
FillEnum
-
setFill
public void setFill(FillEnum fill)
Description copied from interface:JRCommonGraphicElement
Sets the fill type used for this element.- Specified by:
setFill
in interfaceJRCommonGraphicElement
- Parameters:
fill
- a value representing one of the line direction constants inFillEnum
-
getDefaultLineWidth
public Float getDefaultLineWidth()
- Specified by:
getDefaultLineWidth
in interfaceJRPenContainer
-
getDefaultLineColor
public Color getDefaultLineColor()
- Specified by:
getDefaultLineColor
in interfaceJRPenContainer
-
addGraphicHash
protected void addGraphicHash(ObjectUtils.HashCode hash)
-
graphicIdentical
protected boolean graphicIdentical(JRTemplateGraphicElement template)
-
populateStyle
public void populateStyle()
- Overrides:
populateStyle
in classJRTemplateElement
-
-