Package net.sf.jasperreports.engine.fill
Class JRTemplateRectangle
java.lang.Object
net.sf.jasperreports.engine.fill.JRTemplateElement
net.sf.jasperreports.engine.fill.JRTemplateGraphicElement
net.sf.jasperreports.engine.fill.JRTemplateRectangle
- All Implemented Interfaces:
Serializable,Deduplicable,JRCommonElement,JRCommonGraphicElement,JRCommonRectangle,JRPenContainer,JRPropertiesHolder,JRStyleContainer
Rectangle information shared by multiple print rectangle objects.
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
-
Field Summary
Fields inherited from class net.sf.jasperreports.engine.fill.JRTemplateGraphicElement
linePenFields inherited from class net.sf.jasperreports.engine.fill.JRTemplateElement
defaultStyleProvider, origin, parentStyle -
Constructor Summary
ConstructorsModifierConstructorDescriptionJRTemplateRectangle(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider) Creates a template rectangle.protectedJRTemplateRectangle(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider, JRRectangle rectangle) protectedJRTemplateRectangle(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider, JRSubreport subreport) -
Method Summary
Modifier and TypeMethodDescriptionintReturns a hash code to be used for the deduplicate map.intIndicates the corner radius for rectangles with round corners.booleanisIdentical(Object object) Determines if this instance is identical to another object.voidvoidSets the corner radius for rectangles with round corners.protected voidsetRectangle(JRRectangle rectangle) protected voidsetSubreport(JRSubreport subreport) Methods inherited from class net.sf.jasperreports.engine.fill.JRTemplateGraphicElement
addGraphicHash, copyLinePen, getDefaultLineColor, getDefaultLineWidth, getFill, getLinePen, getOwnFill, graphicIdentical, setFill, setGraphicElementMethods 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.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
-
Constructor Details
-
JRTemplateRectangle
protected JRTemplateRectangle(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider, JRRectangle rectangle) -
JRTemplateRectangle
protected JRTemplateRectangle(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider, JRSubreport subreport) -
JRTemplateRectangle
Creates a template rectangle.- Parameters:
origin- the origin of the elements that will use this templatedefaultStyleProvider- the default style provider to use for this template
-
-
Method Details
-
setRectangle
-
setSubreport
-
getRadius
public int getRadius()Description copied from interface:JRCommonRectangleIndicates the corner radius for rectangles with round corners. The default is 0.- Specified by:
getRadiusin interfaceJRCommonRectangle
-
getOwnRadius
- Specified by:
getOwnRadiusin interfaceJRCommonRectangle
-
setRadius
Description copied from interface:JRCommonRectangleSets the corner radius for rectangles with round corners.- Specified by:
setRadiusin interfaceJRCommonRectangle
-
getHashCode
public int getHashCode()Description copied from interface:DeduplicableReturns a hash code to be used for the deduplicate map. The returned hash code should be consitent wiwhDeduplicable.isIdentical(Object), i.e. if two objects are identical they should have the same hash code.- Specified by:
getHashCodein interfaceDeduplicable- Returns:
- deduplication hash code
-
isIdentical
Description copied from interface:DeduplicableDetermines if this instance is identical to another object.- Specified by:
isIdenticalin interfaceDeduplicable- Parameters:
object- the object to compare with this instance- Returns:
trueif the two objects are identical and can be deduplicated
-
populateStyle
public void populateStyle()- Overrides:
populateStylein classJRTemplateGraphicElement
-