public class JRTemplateRectangle extends JRTemplateGraphicElement implements JRCommonRectangle
JRTemplatePrintRectangle
,
Serialized FormlinePen
defaultStyleProvider, 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)
Deprecated.
Replaced by
setRadius(Integer) . |
void |
setRadius(Integer radius)
Sets the corner radius for rectangles with round corners.
|
protected void |
setRectangle(JRRectangle rectangle) |
protected void |
setSubreport(JRSubreport subreport) |
addGraphicHash, copyLinePen, getDefaultLineColor, getDefaultLineWidth, getFillValue, getLinePen, getOwnFillValue, graphicIdentical, setFill, setGraphicElement
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultStyleProvider, getStyle, getStyleNameReference
getBackcolor, getForecolor, getHeight, getKey, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setMode
protected 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()
JRCommonRectangle
getRadius
in interface JRCommonRectangle
public Integer getOwnRadius()
getOwnRadius
in interface JRCommonRectangle
public void setRadius(int radius)
setRadius(Integer)
.setRadius
in interface JRCommonRectangle
public void setRadius(Integer radius)
JRCommonRectangle
setRadius
in interface JRCommonRectangle
public int getHashCode()
Deduplicable
Deduplicable.isIdentical(Object)
,
i.e. if two objects are identical they should have the same hash code.getHashCode
in interface Deduplicable
public boolean isIdentical(Object object)
Deduplicable
isIdentical
in interface Deduplicable
object
- the object to compare with this instancetrue
if the two objects are identical and can be deduplicatedCopyright © 2019 TIBCO Software Inc.. All rights reserved.