Class RoundRectangleTemplate
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.filter.templates.AbstractTemplate
-
- org.pentaho.reporting.engine.classic.core.filter.templates.RoundRectangleTemplate
-
- All Implemented Interfaces:
Serializable
,Cloneable
,DataSource
,Template
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
Constructors Constructor Description RoundRectangleTemplate()
Default Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getArcHeight()
Returns the height of the arc that is used to round off the corners of rectangle.float
getArcWidth()
Returns the width of the arc that is used to round off the corners of rectangle.Object
getValue(ExpressionRuntime runtime, ReportElement element)
Returns the template value, a RoundRectangle2D.void
setArcHeight(float arcHeight)
Defines the height of the arc that is used to round off the corners of rectangle.void
setArcWidth(float arcWidth)
Defines the width of the arc that is used to round off the corners of rectangle.-
Methods inherited from class org.pentaho.reporting.engine.classic.core.filter.templates.AbstractTemplate
clone, getInstance, getName, setName
-
-
-
-
Method Detail
-
getArcWidth
public float getArcWidth()
Returns the width of the arc that is used to round off the corners of rectangle.- Returns:
- the width of the corner arcs.
-
setArcWidth
public void setArcWidth(float arcWidth)
Defines the width of the arc that is used to round off the corners of rectangle.- Parameters:
arcWidth
- the width of the corner arcs.
-
getArcHeight
public float getArcHeight()
Returns the height of the arc that is used to round off the corners of rectangle.- Returns:
- the height of the corner arcs.
-
setArcHeight
public void setArcHeight(float arcHeight)
Defines the height of the arc that is used to round off the corners of rectangle.- Parameters:
arcHeight
- the height of the corner arcs.
-
getValue
public Object getValue(ExpressionRuntime runtime, ReportElement element)
Returns the template value, a RoundRectangle2D.- Parameters:
runtime
- the expression runtime that is used to evaluate formulas and expressions when computing the value of this filter.element
-- Returns:
- a rectangle with a width and height of 100.
-
-