public class JRTemplatePrintRectangle extends JRTemplatePrintGraphicElement implements JRPrintRectangle
JRPrintRectangle that uses
a JRTemplateRectangle instance to
store common attributes.EXCEPTION_MESSAGE_KEY_TEMPLATE_NOT_FOUND, templateUNSET_PRINT_ELEMENT_ID, UNSET_SOURCE_ELEMENT_ID| Constructor and Description |
|---|
JRTemplatePrintRectangle() |
JRTemplatePrintRectangle(JRTemplateRectangle rectangle)
Deprecated.
provide a source Id via
JRTemplatePrintRectangle(JRTemplateRectangle, int) |
JRTemplatePrintRectangle(JRTemplateRectangle rectangle,
int sourceElementId)
Deprecated.
|
JRTemplatePrintRectangle(JRTemplateRectangle rectangle,
PrintElementOriginator originator)
Creates a print rectangle element.
|
| Modifier and Type | Method and Description |
|---|---|
<T> void |
accept(PrintElementVisitor<T> visitor,
T arg)
Accepts a print element visitor.
|
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(Integer radius) |
getDefaultLineColor, getDefaultLineWidth, getFillValue, getLinePen, getOwnFillValue, setFillgetBackcolor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getModeValue, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPrintElementId, getPropertiesMap, getSourceElementId, getStyle, getStyleNameReference, getTemplate, getUUID, getWidth, getX, getY, hasProperties, readVirtualized, setBackcolor, setForecolor, setHeight, setMode, setSourceElementId, setStyle, setTemplate, setUUID, setWidth, setX, setY, updateElementTemplate, writeVirtualizedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetFillgetHeight, getKey, getOrigin, getPrintElementId, getSourceElementId, getWidth, getX, getY, setHeight, setStyle, setUUID, setWidth, setX, setYgetParentProperties, getPropertiesMap, hasPropertiesgetUUIDgetFillValue, getLinePen, getOwnFillValuegetBackcolor, getForecolor, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, setBackcolor, setForecolor, setModegetDefaultLineColor, getDefaultLineWidthgetDefaultStyleProvider, getStyle, getStyleNameReferencepublic JRTemplatePrintRectangle()
public JRTemplatePrintRectangle(JRTemplateRectangle rectangle)
JRTemplatePrintRectangle(JRTemplateRectangle, int)rectangle - the template rectangle that the element will usepublic JRTemplatePrintRectangle(JRTemplateRectangle rectangle, int sourceElementId)
JRTemplatePrintRectangle(JRTemplateRectangle, PrintElementOriginator)rectangle - the template rectangle that the element will usesourceElementId - the Id of the source elementpublic JRTemplatePrintRectangle(JRTemplateRectangle rectangle, PrintElementOriginator originator)
rectangle - the template rectangle that the element will useoriginator - public int getRadius()
JRCommonRectanglegetRadius in interface JRCommonRectanglepublic Integer getOwnRadius()
getOwnRadius in interface JRCommonRectanglepublic void setRadius(int radius)
JRCommonRectanglesetRadius in interface JRCommonRectanglesetRadius in interface JRPrintRectanglepublic void setRadius(Integer radius)
setRadius in interface JRCommonRectanglesetRadius in interface JRPrintRectanglepublic <T> void accept(PrintElementVisitor<T> visitor, T arg)
JRPrintElementThe element calls the method that corresponds to the element type on the visitor.
accept in interface JRPrintElementaccept in class JRTemplatePrintElementT - the type of the argument passed to the visit operationvisitor - the visitor objectsarg - the argument passed to the visit operationCopyright © 2017. All rights reserved.