|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.engine.classic.core.filter.ImageRefFilter
public class ImageRefFilter
A filter that converts an Image to an ImageReference. The DataSource is expected to contain an java.awt.Image, the image is then wrapped into an ImageReference and this ImageReference is returned to the caller.
Constructor Summary | |
---|---|
ImageRefFilter()
Default constructor. |
Method Summary | |
---|---|
Object |
clone()
Clones the filter. |
DataSource |
getDataSource()
Returns the data source for the filter. |
Object |
getValue(ExpressionRuntime runtime,
Element element)
Returns the current value for the data source. |
void |
setDataSource(DataSource dataSource)
Sets the data source for the filter. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageRefFilter()
Method Detail |
---|
public DataSource getDataSource()
getDataSource
in interface DataTarget
public void setDataSource(DataSource dataSource)
setDataSource
in interface DataTarget
dataSource
- The data source.public Object getValue(ExpressionRuntime runtime, Element element)
The returned object, unless it is null, will be an instance of ImageReference.
getValue
in interface DataSource
runtime
- the expression runtime that is used to evaluate formulas and expressions when computing the value of
this filter.element
-
public Object clone() throws CloneNotSupportedException
clone
in interface DataSource
clone
in interface DataTarget
clone
in class Object
CloneNotSupportedException
- this should never happen.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |