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:
-
Field Summary
FieldsFields inherited from class net.sf.jasperreports.engine.fill.JRTemplateElement
defaultStyleProvider, origin, parentStyle -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJRTemplateGraphicElement(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider) protectedJRTemplateGraphicElement(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider, JRGraphicElement graphicElement) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidcopyLinePen(JRPen pen) Copiespenattributes.getFill()Indicates the fill type used for this element.Indicates the own fill type used for this element.protected booleangraphicIdentical(JRTemplateGraphicElement template) voidvoidSets 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, getMode, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnMode, getParentProperties, getPropertiesMap, getStyle, getStyleNameReference, getStyleResolver, getWidth, hasProperties, setBackcolor, setElement, setForecolor, setKey, setMode, setStyle, templateIdenticalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.jasperreports.engine.Deduplicable
getHashCode, isIdenticalMethods inherited from interface net.sf.jasperreports.engine.JRCommonElement
getBackcolor, getForecolor, getHeight, getKey, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode, getWidth, setBackcolor, setForecolor, setModeMethods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleName, getStyleNameReference
-
Field Details
-
linePen
-
-
Constructor Details
-
JRTemplateGraphicElement
-
JRTemplateGraphicElement
protected JRTemplateGraphicElement(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider, JRGraphicElement graphicElement)
-
-
Method Details
-
setGraphicElement
-
copyLinePen
Copiespenattributes.- Parameters:
pen- the object to copy the attributes from
-
getLinePen
- Specified by:
getLinePenin interfaceJRCommonGraphicElement
-
getFill
Description copied from interface:JRCommonGraphicElementIndicates the fill type used for this element.- Specified by:
getFillin interfaceJRCommonGraphicElement- Returns:
- a value representing one of the fill type constants in
FillEnum
-
getOwnFill
Description copied from interface:JRCommonGraphicElementIndicates the own fill type used for this element.- Specified by:
getOwnFillin interfaceJRCommonGraphicElement- Returns:
- a value representing one of the fill type constants in
FillEnum
-
setFill
Description copied from interface:JRCommonGraphicElementSets the fill type used for this element.- Specified by:
setFillin interfaceJRCommonGraphicElement- Parameters:
fill- a value representing one of the line direction constants inFillEnum
-
getDefaultLineWidth
- Specified by:
getDefaultLineWidthin interfaceJRPenContainer
-
getDefaultLineColor
- Specified by:
getDefaultLineColorin interfaceJRPenContainer
-
addGraphicHash
-
graphicIdentical
-
populateStyle
public void populateStyle()- Overrides:
populateStylein classJRTemplateElement
-