org.jfree.report.filter.templates
Class RoundRectangleTemplate

java.lang.Object
  |
  +--org.jfree.report.filter.templates.AbstractTemplate
        |
        +--org.jfree.report.filter.templates.RoundRectangleTemplate

public class RoundRectangleTemplate
extends AbstractTemplate

A template to create rectangle elements. The rectangle always has the width and the height of 100 points.

This implementation is used to cover the common use of the rectangle shape element. Use the scaling feature of the shape element to adjust the size of the rectangle.

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
RoundRectangleTemplate()
          Default Constructor.
 
Method Summary
 float getArcHeight()
           
 float getArcWidth()
           
 java.lang.Object getValue()
          Returns the template value, a Rectangle2D.
 void setArcHeight(float arcHeight)
           
 void setArcWidth(float arcWidth)
           
 
Methods inherited from class org.jfree.report.filter.templates.AbstractTemplate
clone, getInstance, getName, setName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoundRectangleTemplate

public RoundRectangleTemplate()
Default Constructor.
Method Detail

getArcWidth

public float getArcWidth()

setArcWidth

public void setArcWidth(float arcWidth)

getArcHeight

public float getArcHeight()

setArcHeight

public void setArcHeight(float arcHeight)

getValue

public java.lang.Object getValue()
Returns the template value, a Rectangle2D.
Returns:
a rectangle with a width and height of 100.