Class ImageRenderFunction
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.function.AbstractExpression
-
- org.pentaho.reporting.engine.classic.core.function.AbstractFunction
-
- org.pentaho.reporting.engine.classic.demo.ancient.demo.functions.ImageRenderFunction
-
- All Implemented Interfaces:
Serializable
,Cloneable
,EventListener
,org.pentaho.reporting.engine.classic.core.event.PageEventListener
,org.pentaho.reporting.engine.classic.core.event.ReportListener
,org.pentaho.reporting.engine.classic.core.function.Expression
,org.pentaho.reporting.engine.classic.core.function.Function
public class ImageRenderFunction extends org.pentaho.reporting.engine.classic.core.function.AbstractFunction implements Serializable, org.pentaho.reporting.engine.classic.core.event.PageEventListener
The ImageRenderFunction creates a simple Image using a BufferedImage within a function to show the use of the ImageFunctionElement. The image is created whenever a new page is started.- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImageRenderFunction()
Creates an unnamed function.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getValue()
Return the last generated Image.void
pageFinished(org.pentaho.reporting.engine.classic.core.event.ReportEvent event)
Receives notification that a page is completed.void
pageStarted(org.pentaho.reporting.engine.classic.core.event.ReportEvent event)
Create a image according to the current state, simple and silly ...-
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractFunction
groupFinished, groupStarted, itemsAdvanced, itemsFinished, itemsStarted, reportDone, reportFinished, reportInitialized, reportStarted, summaryRowSelection
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractExpression
clone, getDataRow, getDependencyLevel, getInstance, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime
-
-
-
-
Method Detail
-
pageStarted
public void pageStarted(org.pentaho.reporting.engine.classic.core.event.ReportEvent event)
Create a image according to the current state, simple and silly ...- Specified by:
pageStarted
in interfaceorg.pentaho.reporting.engine.classic.core.event.PageEventListener
- Parameters:
event
- the report event.
-
pageFinished
public void pageFinished(org.pentaho.reporting.engine.classic.core.event.ReportEvent event)
Receives notification that a page is completed.- Specified by:
pageFinished
in interfaceorg.pentaho.reporting.engine.classic.core.event.PageEventListener
- Parameters:
event
- The event.
-
getValue
public Object getValue()
Return the last generated Image.- Specified by:
getValue
in interfaceorg.pentaho.reporting.engine.classic.core.function.Expression
- Returns:
- the function value.
-
-