org.pentaho.reporting.engine.classic.core.filter.templates
Class RectangleTemplate
java.lang.Object
org.pentaho.reporting.engine.classic.core.filter.templates.AbstractTemplate
org.pentaho.reporting.engine.classic.core.filter.templates.RectangleTemplate
- All Implemented Interfaces:
- Serializable, Cloneable, DataSource, Template
public class RectangleTemplate
- 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
RectangleTemplate
public RectangleTemplate()
- Default Constructor.
getValue
public Object getValue(ExpressionRuntime runtime,
Element element)
- Returns the template value, a Rectangle2D.
- 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.