public class JRTemplateRectangle extends JRTemplateGraphicElement implements JRCommonRectangle
JRTemplatePrintRectangle,
Serialized FormlinePendefaultStyleProvider, origin, parentStyle| Modifier | Constructor and Description |
|---|---|
|
JRTemplateRectangle(JROrigin origin,
JRDefaultStyleProvider defaultStyleProvider)
Creates a template rectangle.
|
protected |
JRTemplateRectangle(JROrigin origin,
JRDefaultStyleProvider defaultStyleProvider,
JRRectangle rectangle) |
protected |
JRTemplateRectangle(JROrigin origin,
JRDefaultStyleProvider defaultStyleProvider,
JRSubreport subreport) |
| Modifier and Type | Method and Description |
|---|---|
int |
getHashCode()
Returns a hash code to be used for the deduplicate map.
|
Integer |
getOwnRadius() |
int |
getRadius()
Indicates the corner radius for rectangles with round corners.
|
boolean |
isIdentical(Object object)
Determines if this instance is identical to another object.
|
void |
setRadius(int radius)
Sets the corner radius for rectangles with round corners.
|
void |
setRadius(Integer radius) |
protected void |
setRectangle(JRRectangle rectangle) |
protected void |
setSubreport(JRSubreport subreport) |
addGraphicHash, copyLinePen, getDefaultLineColor, getDefaultLineWidth, getFillValue, getLinePen, getOwnFillValue, graphicIdentical, setFill, setGraphicElementaddTemplateHash, 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, templateIdenticalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultStyleProvider, getStyle, getStyleNameReferencegetBackcolor, getForecolor, getHeight, getKey, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setModeprotected JRTemplateRectangle(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider, JRRectangle rectangle)
protected JRTemplateRectangle(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider, JRSubreport subreport)
public JRTemplateRectangle(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider)
origin - the origin of the elements that will use this templatedefaultStyleProvider - the default style provider to use for
this templateprotected void setRectangle(JRRectangle rectangle)
protected void setSubreport(JRSubreport subreport)
public int getRadius()
JRCommonRectanglegetRadius in interface JRCommonRectanglepublic Integer getOwnRadius()
getOwnRadius in interface JRCommonRectanglepublic void setRadius(int radius)
JRCommonRectanglesetRadius in interface JRCommonRectanglepublic void setRadius(Integer radius)
setRadius in interface JRCommonRectanglepublic int getHashCode()
DeduplicableDeduplicable.isIdentical(Object),
i.e. if two objects are identical they should have the same hash code.getHashCode in interface Deduplicablepublic boolean isIdentical(Object object)
DeduplicableisIdentical in interface Deduplicableobject - the object to compare with this instancetrue if the two objects are identical and can be deduplicatedCopyright © 2017. All rights reserved.