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.
|
java.lang.Integer |
getOwnRadius() |
int |
getRadius()
Indicates the corner radius for rectangles with round corners.
|
boolean |
isIdentical(java.lang.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(java.lang.Integer radius) |
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, 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 java.lang.Integer getOwnRadius()
getOwnRadius
in interface JRCommonRectangle
public void setRadius(int radius)
JRCommonRectangle
setRadius
in interface JRCommonRectangle
public void setRadius(java.lang.Integer radius)
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(java.lang.Object object)
Deduplicable
isIdentical
in interface Deduplicable
object
- the object to compare with this instancetrue
if the two objects are identical and can be deduplicated© 2001-2014 TIBCO Software Inc. www.jaspersoft.com