net.sf.jasperreports.engine.fill
Class JRFillRectangle

java.lang.Object
  extended by net.sf.jasperreports.engine.fill.JRFillElement
      extended by net.sf.jasperreports.engine.fill.JRFillGraphicElement
          extended by net.sf.jasperreports.engine.fill.JRFillRectangle
All Implemented Interfaces:
JRCloneable, JRChild, JRElement, JRGraphicElement, JRRectangle, JRStyleContainer

public class JRFillRectangle
extends JRFillGraphicElement
implements JRRectangle

Version:
$Id: JRFillRectangle.java 1357 2006-08-10 12:36:24 +0300 (Thu, 10 Aug 2006) lucianc $
Author:
Teodor Danciu (teodord@users.sourceforge.net)

Field Summary
 
Fields inherited from class net.sf.jasperreports.engine.fill.JRFillElement
band, conditionalStylesContainer, currentEvaluation, delayedEvaluationsMap, elementGroup, expressionEvaluator, filler, initStyle, parent, printWhenGroupChanges, templates
 
Fields inherited from interface net.sf.jasperreports.engine.JRGraphicElement
FILL_SOLID, PEN_1_POINT, PEN_2_POINT, PEN_4_POINT, PEN_DOTTED, PEN_NONE, PEN_THIN
 
Fields inherited from interface net.sf.jasperreports.engine.JRElement
MODE_OPAQUE, MODE_TRANSPARENT, POSITION_TYPE_FIX_RELATIVE_TO_BOTTOM, POSITION_TYPE_FIX_RELATIVE_TO_TOP, POSITION_TYPE_FLOAT, STRETCH_TYPE_NO_STRETCH, STRETCH_TYPE_RELATIVE_TO_BAND_HEIGHT, STRETCH_TYPE_RELATIVE_TO_TALLEST_OBJECT
 
Constructor Summary
protected JRFillRectangle(JRBaseFiller filler, JRRectangle rectangle, JRFillObjectFactory factory)
           
protected JRFillRectangle(JRFillRectangle rectangle, JRFillCloneFactory factory)
           
 
Method Summary
 void collectExpressions(JRExpressionCollector collector)
           
 JRCloneable createClone(JRFillCloneFactory factory)
          Creates a working clone of itself.
protected  void evaluate(byte evaluation)
           
protected  JRPrintElement fill()
           
 JRChild getCopy(JRAbstractObjectFactory factory)
           
protected  JRTemplateRectangle getJRTemplateRectangle()
           
 java.lang.Integer getOwnRadius()
           
 int getRadius()
          Indicates the corner radius for rectangles with round corners.
protected  void resolveElement(JRPrintElement element, byte evaluation)
          Resolves an element.
 void setRadius(int radius)
          Sets the corner radius for rectangles with round corners.
 void setRadius(java.lang.Integer radius)
           
 void writeXml(JRXmlWriter xmlWrite)
           
 
Methods inherited from class net.sf.jasperreports.engine.fill.JRFillGraphicElement
getFill, getOwnFill, getOwnPen, getPen, prepare, rewind, setFill, setFill, setPen, setPen
 
Methods inherited from class net.sf.jasperreports.engine.fill.JRFillElement
addDependantElement, collectDelayedEvaluations, collectDelayedEvaluations, delayedEvaluate, evaluateExpression, evaluatePrintWhenExpression, getBackcolor, getBand, getBandBottomY, getDefaultStyleProvider, getDependantElements, getElementGroup, getEvaluationTime, getField, getForecolor, getGroupElements, getHeight, getKey, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getRelativeY, getStretchHeight, getStretchType, getStyle, getTemplate, getVariable, getWidth, getX, getY, initDelayedEvaluationPrint, initDelayedEvaluations, isAlreadyPrinted, isAutoEvaluateNow, isEvaluateAuto, isEvaluateNow, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isPrintWhenExpressionNull, isPrintWhenTrue, isRemoveLineWhenBlank, isReprinted, isToPrint, isValueRepeating, moveDependantElements, registerTemplate, reset, resolveElement, setAlreadyPrinted, setBackcolor, setBand, setBandBottomY, setConditionalStylesContainer, setCurrentEvaluation, setForecolor, setHeight, setMode, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setPrintWhenExpressionNull, setPrintWhenTrue, setRelativeY, setRemoveLineWhenBlank, setReprinted, setShrinkable, setStretchHeight, setStretchType, setToPrint, setValueRepeating, setWidth, setX, setY, stretchElement, stretchHeightFinal
 
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.JRGraphicElement
getFill, getOwnFill, getOwnPen, getPen, setFill, setFill, setPen, setPen
 
Methods inherited from interface net.sf.jasperreports.engine.JRElement
getBackcolor, getElementGroup, getForecolor, getHeight, getKey, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getStretchType, getWidth, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX
 
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle
 

Constructor Detail

JRFillRectangle

protected JRFillRectangle(JRBaseFiller filler,
                          JRRectangle rectangle,
                          JRFillObjectFactory factory)

JRFillRectangle

protected JRFillRectangle(JRFillRectangle rectangle,
                          JRFillCloneFactory factory)
Method Detail

getRadius

public int getRadius()
Description copied from interface: JRRectangle
Indicates the corner radius for rectangles with round corners. The default is 0.

Specified by:
getRadius in interface JRRectangle

getOwnRadius

public java.lang.Integer getOwnRadius()
Specified by:
getOwnRadius in interface JRRectangle

setRadius

public void setRadius(int radius)
Description copied from interface: JRRectangle
Sets the corner radius for rectangles with round corners.

Specified by:
setRadius in interface JRRectangle

setRadius

public void setRadius(java.lang.Integer radius)
Specified by:
setRadius in interface JRRectangle

getJRTemplateRectangle

protected JRTemplateRectangle getJRTemplateRectangle()

evaluate

protected void evaluate(byte evaluation)
                 throws JRException
Specified by:
evaluate in class JRFillElement
Throws:
JRException

fill

protected JRPrintElement fill()
Specified by:
fill in class JRFillElement

getCopy

public JRChild getCopy(JRAbstractObjectFactory factory)
Specified by:
getCopy in interface JRChild

collectExpressions

public void collectExpressions(JRExpressionCollector collector)
Specified by:
collectExpressions in interface JRElement

writeXml

public void writeXml(JRXmlWriter xmlWrite)
              throws java.io.IOException
Specified by:
writeXml in interface JRChild
Throws:
java.io.IOException

resolveElement

protected void resolveElement(JRPrintElement element,
                              byte evaluation)
Description copied from class: JRFillElement
Resolves an element.

Specified by:
resolveElement in class JRFillElement
Parameters:
element - the element
evaluation - the evaluation type

createClone

public JRCloneable createClone(JRFillCloneFactory factory)
Description copied from interface: JRCloneable
Creates a working clone of itself.

Specified by:
createClone in interface JRCloneable
Parameters:
factory - the clone factory to use while creating the clone
Returns:
a working clone of itself


© 2001-2006 JasperSoft Corporation www.jaspersoft.com