org.jfree.report.filter.templates
public class: RoundRectangleTemplate [javadoc |
source]
java.lang.Object
org.jfree.report.filter.templates.AbstractTemplate
org.jfree.report.filter.templates.RoundRectangleTemplate
All Implemented Interfaces:
Template
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.
| Method from org.jfree.report.filter.templates.RoundRectangleTemplate Detail: |
public float getArcHeight() {
return arcHeight;
}
Returns the height of the arc that is used to round off the corners of rectangle. |
public float getArcWidth() {
return arcWidth;
}
Returns the width of the arc that is used to round off the corners of rectangle. |
public Object getValue(ExpressionRuntime runtime,
Element element) {
return new RoundRectangle2D.Float(0, 0, 100, 100, arcWidth, arcHeight);
}
Returns the template value, a RoundRectangle2D. |
public void setArcHeight(float arcHeight) {
this.arcHeight = arcHeight;
}
Defines the height of the arc that is used to round off the corners of rectangle. |
public void setArcWidth(float arcWidth) {
this.arcWidth = arcWidth;
}
Defines the width of the arc that is used to round off the corners of rectangle. |