Package net.sf.jasperreports.engine.fill
Class JRTemplatePrintRectangle
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JRTemplatePrintElement
-
- net.sf.jasperreports.engine.fill.JRTemplatePrintGraphicElement
-
- net.sf.jasperreports.engine.fill.JRTemplatePrintRectangle
-
- All Implemented Interfaces:
Serializable
,JRCommonElement
,JRCommonGraphicElement
,JRCommonRectangle
,JRIdentifiable
,JRPenContainer
,JRPrintElement
,JRPrintGraphicElement
,JRPrintRectangle
,JRPropertiesHolder
,JRStyleContainer
,VirtualizationSerializable
public class JRTemplatePrintRectangle extends JRTemplatePrintGraphicElement implements JRPrintRectangle
Implementation ofJRPrintRectangle
that uses aJRTemplateRectangle
instance to store common attributes.- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class net.sf.jasperreports.engine.fill.JRTemplatePrintElement
EXCEPTION_MESSAGE_KEY_TEMPLATE_NOT_FOUND, template
-
Fields inherited from interface net.sf.jasperreports.engine.JRPrintElement
UNSET_PRINT_ELEMENT_ID, UNSET_SOURCE_ELEMENT_ID
-
-
Constructor Summary
Constructors Constructor Description JRTemplatePrintRectangle()
JRTemplatePrintRectangle(JRTemplateRectangle rectangle, PrintElementOriginator originator)
Creates a print rectangle element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(Integer radius)
Sets the corner radius for rectangles with round corners.-
Methods inherited from class net.sf.jasperreports.engine.fill.JRTemplatePrintGraphicElement
getDefaultLineColor, getDefaultLineWidth, getFill, getLinePen, getOwnFill, setFill
-
Methods inherited from class net.sf.jasperreports.engine.fill.JRTemplatePrintElement
getBackcolor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getMode, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnMode, 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, writeVirtualized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement
getBackcolor, getForecolor, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode, setBackcolor, setForecolor, setMode
-
Methods inherited from interface net.sf.jasperreports.engine.JRCommonGraphicElement
getFill, getLinePen, getOwnFill
-
Methods inherited from interface net.sf.jasperreports.engine.JRIdentifiable
getUUID
-
Methods inherited from interface net.sf.jasperreports.engine.JRPenContainer
getDefaultLineColor, getDefaultLineWidth
-
Methods inherited from interface net.sf.jasperreports.engine.JRPrintElement
getHeight, getKey, getOrigin, getPrintElementId, getSourceElementId, getWidth, getX, getY, setHeight, setStyle, setUUID, setWidth, setX, setY
-
Methods inherited from interface net.sf.jasperreports.engine.JRPrintGraphicElement
setFill
-
Methods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder
getParentProperties, getPropertiesMap, hasProperties
-
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleName, getStyleNameReference
-
-
-
-
Constructor Detail
-
JRTemplatePrintRectangle
public JRTemplatePrintRectangle()
-
JRTemplatePrintRectangle
public JRTemplatePrintRectangle(JRTemplateRectangle rectangle, PrintElementOriginator originator)
Creates a print rectangle element.- Parameters:
rectangle
- the template rectangle that the element will useoriginator
-
-
-
Method Detail
-
getRadius
public int getRadius()
Description copied from interface:JRCommonRectangle
Indicates the corner radius for rectangles with round corners. The default is 0.- Specified by:
getRadius
in interfaceJRCommonRectangle
-
getOwnRadius
public Integer getOwnRadius()
- Specified by:
getOwnRadius
in interfaceJRCommonRectangle
-
setRadius
public void setRadius(Integer radius)
Description copied from interface:JRCommonRectangle
Sets the corner radius for rectangles with round corners.- Specified by:
setRadius
in interfaceJRCommonRectangle
- Specified by:
setRadius
in interfaceJRPrintRectangle
-
accept
public <T> void accept(PrintElementVisitor<T> visitor, T arg)
Description copied from interface:JRPrintElement
Accepts a print element visitor.The element calls the method that corresponds to the element type on the visitor.
- Specified by:
accept
in interfaceJRPrintElement
- Overrides:
accept
in classJRTemplatePrintElement
- Type Parameters:
T
- the type of the argument passed to the visit operation- Parameters:
visitor
- the visitor objectsarg
- the argument passed to the visit operation
-
-