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:
- java.io.Serializable, JRCommonElement, JRCommonGraphicElement, JRCommonRectangle, JRIdentifiable, JRPenContainer, JRPrintElement, JRPrintGraphicElement, JRPrintRectangle, JRPropertiesHolder, JRStyleContainer
public class JRTemplatePrintRectangle
- extends JRTemplatePrintGraphicElement
- implements JRPrintRectangle
Implementation of JRPrintRectangle
that uses
a JRTemplateRectangle
instance to
store common attributes.
- Version:
- $Id: JRTemplatePrintRectangle.java 5180 2012-03-29 13:23:12Z teodord $
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
Method Summary |
|
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)
|
Methods inherited from class net.sf.jasperreports.engine.fill.JRTemplatePrintElement |
getBackcolor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getModeValue, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPropertiesMap, getSourceElementId, getStyle, getStyleNameReference, getTemplate, getUUID, getWidth, getX, getY, hasProperties, setBackcolor, setForecolor, setHeight, setMode, setSourceElementId, setStyle, setTemplate, setWidth, setX, setY, updateElementTemplate |
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.JRPrintElement |
getHeight, getKey, getOrigin, getSourceElementId, getWidth, getX, getY, setHeight, setStyle, setWidth, setX, setY |
JRTemplatePrintRectangle
public JRTemplatePrintRectangle(JRTemplateRectangle rectangle)
- Deprecated. provide a source Id via
JRTemplatePrintRectangle(JRTemplateRectangle, int)
- Creates a print rectangle element.
- Parameters:
rectangle
- the template rectangle that the element will use
JRTemplatePrintRectangle
public JRTemplatePrintRectangle(JRTemplateRectangle rectangle,
int sourceElementId)
- Creates a print rectangle element.
- Parameters:
rectangle
- the template rectangle that the element will usesourceElementId
- the Id of the source element
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 interface JRCommonRectangle
getOwnRadius
public java.lang.Integer getOwnRadius()
- Specified by:
getOwnRadius
in interface JRCommonRectangle
setRadius
public void setRadius(int radius)
- Description copied from interface:
JRCommonRectangle
- Sets the corner radius for rectangles with round corners.
- Specified by:
setRadius
in interface JRCommonRectangle
- Specified by:
setRadius
in interface JRPrintRectangle
setRadius
public void setRadius(java.lang.Integer radius)
- Specified by:
setRadius
in interface JRCommonRectangle
- Specified by:
setRadius
in interface JRPrintRectangle
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 interface JRPrintElement
- Overrides:
accept
in class JRTemplatePrintElement
- 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
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com