net.sf.jasperreports.engine.base
Class JRBasePrintRectangle

java.lang.Object
  extended by net.sf.jasperreports.engine.base.JRBasePrintElement
      extended by net.sf.jasperreports.engine.base.JRBasePrintGraphicElement
          extended by net.sf.jasperreports.engine.base.JRBasePrintRectangle
All Implemented Interfaces:
java.io.Serializable, JRCommonElement, JRCommonGraphicElement, JRCommonRectangle, JRPenContainer, JRPrintElement, JRPrintGraphicElement, JRPrintRectangle, JRPropertiesHolder, JRStyleContainer

public class JRBasePrintRectangle
extends JRBasePrintGraphicElement
implements JRPrintRectangle

Version:
$Id: JRBasePrintRectangle.java 3991 2010-10-12 20:10:55Z lucianc $
Author:
Teodor Danciu ([email protected])
See Also:
Serialized Form

Field Summary
protected  java.lang.Integer radius
           
 
Fields inherited from class net.sf.jasperreports.engine.base.JRBasePrintGraphicElement
fillValue, linePen
 
Fields inherited from class net.sf.jasperreports.engine.base.JRBasePrintElement
backcolor, defaultStyleProvider, forecolor, height, key, modeValue, origin, style, width, x, y
 
Constructor Summary
JRBasePrintRectangle(JRDefaultStyleProvider defaultStyleProvider)
           
 
Method Summary
<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)
           
 
Methods inherited from class net.sf.jasperreports.engine.base.JRBasePrintGraphicElement
copyPen, getDefaultLineColor, getDefaultLineWidth, getFill, getFillValue, getLinePen, getOwnFill, getOwnFillValue, getOwnPen, getPen, setFill, setFill, setFill, setPen, setPen
 
Methods inherited from class net.sf.jasperreports.engine.base.JRBasePrintElement
getBackcolor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getMode, getModeValue, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnMode, getOwnModeValue, getParentProperties, getPropertiesMap, getStyle, getStyleNameReference, getWidth, getX, getY, hasProperties, setBackcolor, setForecolor, setHeight, setKey, setMode, setMode, setMode, setOrigin, setStyle, setWidth, setX, setY
 
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.JRPrintGraphicElement
getOwnPen, getPen, setFill, setFill, setFill, setPen, setPen
 
Methods inherited from interface net.sf.jasperreports.engine.JRPrintElement
getHeight, getKey, getOrigin, getWidth, getX, getY, setHeight, setStyle, setWidth, setX, setY
 
Methods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder
getParentProperties, getPropertiesMap, hasProperties
 
Methods inherited from interface net.sf.jasperreports.engine.JRCommonGraphicElement
getFill, getFillValue, getLinePen, getOwnFill, getOwnFillValue
 
Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement
getBackcolor, getForecolor, getMode, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnMode, getOwnModeValue, setBackcolor, setForecolor, setMode, setMode, setMode
 
Methods inherited from interface net.sf.jasperreports.engine.JRPenContainer
getDefaultLineColor, getDefaultLineWidth
 
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleNameReference
 

Field Detail

radius

protected java.lang.Integer radius
Constructor Detail

JRBasePrintRectangle

public JRBasePrintRectangle(JRDefaultStyleProvider defaultStyleProvider)
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 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 JRBasePrintElement
Type Parameters:
T - the type of the argument passed to the visit operation
Parameters:
visitor - the visitor objects
arg - the argument passed to the visit operation


Copyright © 2011. All Rights Reserved.