public class JRTemplatePrintRectangle extends JRTemplatePrintGraphicElement implements JRPrintRectangle
JRPrintRectangle
that uses
a JRTemplateRectangle
instance to
store common attributes.template
UNSET_SOURCE_ELEMENT_ID
Constructor and Description |
---|
JRTemplatePrintRectangle(JRTemplateRectangle rectangle)
Deprecated.
provide a source Id via
JRTemplatePrintRectangle(JRTemplateRectangle, int) |
JRTemplatePrintRectangle(JRTemplateRectangle rectangle,
int sourceElementId)
Creates a print rectangle element.
|
Modifier and Type | Method and Description |
---|---|
<T> void |
accept(PrintElementVisitor<T> visitor,
T arg)
Accepts a print element visitor.
|
java.lang.Integer |
getOwnRadius() |
int |
getRadius()
Indicates the corner radius for rectangles with round corners.
|
void |
setRadius(int radius)
Sets the corner radius for rectangles with round corners.
|
void |
setRadius(java.lang.Integer radius) |
getDefaultLineColor, getDefaultLineWidth, getFillValue, getLinePen, getOwnFillValue, setFill
getBackcolor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getModeValue, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPropertiesMap, getSourceElementId, getStyle, getStyleNameReference, getTemplate, getWidth, getX, getY, hasProperties, setBackcolor, setForecolor, setHeight, setMode, setSourceElementId, setStyle, setTemplate, setWidth, setX, setY, updateElementTemplate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setFill
getHeight, getKey, getOrigin, getSourceElementId, getWidth, getX, getY, setHeight, setStyle, setWidth, setX, setY
getParentProperties, getPropertiesMap, hasProperties
getFillValue, getLinePen, getOwnFillValue
getBackcolor, getForecolor, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, setBackcolor, setForecolor, setMode
getDefaultLineColor, getDefaultLineWidth
getDefaultStyleProvider, getStyle, getStyleNameReference
public JRTemplatePrintRectangle(JRTemplateRectangle rectangle)
JRTemplatePrintRectangle(JRTemplateRectangle, int)
rectangle
- the template rectangle that the element will usepublic JRTemplatePrintRectangle(JRTemplateRectangle rectangle, int sourceElementId)
rectangle
- the template rectangle that the element will usesourceElementId
- the Id of the source elementpublic 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
setRadius
in interface JRPrintRectangle
public void setRadius(java.lang.Integer radius)
setRadius
in interface JRCommonRectangle
setRadius
in interface JRPrintRectangle
public <T> void accept(PrintElementVisitor<T> visitor, T arg)
JRPrintElement
The element calls the method that corresponds to the element type on the visitor.
accept
in interface JRPrintElement
accept
in class JRTemplatePrintElement
T
- the type of the argument passed to the visit operationvisitor
- the visitor objectsarg
- the argument passed to the visit operation© 2001-2010 Jaspersoft Corporation www.jaspersoft.com