Class ShapeFilter
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.filter.ShapeFilter
-
- All Implemented Interfaces:
Serializable
,Cloneable
,DataFilter
,DataSource
,DataTarget
public class ShapeFilter extends Object implements DataFilter
A shape filter.- Author:
- Thomas Morgner.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ShapeFilter()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShapeFilter
clone()
Clones the filter.DataSource
getDataSource()
Returns the data source for the filter.Object
getValue(ExpressionRuntime runtime, ReportElement element)
Returns the current value for the data source.void
setDataSource(DataSource dataSource)
Sets the data source for the filter.
-
-
-
Method Detail
-
getDataSource
public DataSource getDataSource()
Returns the data source for the filter.- Specified by:
getDataSource
in interfaceDataTarget
- Returns:
- The data source.
-
setDataSource
public void setDataSource(DataSource dataSource)
Sets the data source for the filter.- Specified by:
setDataSource
in interfaceDataTarget
- Parameters:
dataSource
- The data source.
-
getValue
public Object getValue(ExpressionRuntime runtime, ReportElement element)
Returns the current value for the data source.The returned object, unless it is null, will be an instance of ImageReference.
- Specified by:
getValue
in interfaceDataSource
- Parameters:
runtime
- the expression runtime that is used to evaluate formulas and expressions when computing the value of this filter.element
-- Returns:
- The value.
-
clone
public ShapeFilter clone() throws CloneNotSupportedException
Clones the filter.- Specified by:
clone
in interfaceDataSource
- Specified by:
clone
in interfaceDataTarget
- Overrides:
clone
in classObject
- Returns:
- A clone of this filter.
- Throws:
CloneNotSupportedException
- this should never happen.
-
-