org.jfree.report.demo.helper
Class ImageRenderFunction
java.lang.Object
org.jfree.report.function.AbstractFunction
org.jfree.report.demo.helper.ImageRenderFunction
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.EventListener, Expression, Function, PageEventListener, ReportListener, java.io.Serializable
- public class ImageRenderFunction
- extends AbstractFunction
- implements java.io.Serializable, 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
Methods inherited from class org.jfree.report.function.AbstractFunction |
clone, getDataRow, getDependencyLevel, getInstance, getName, getProperties, getProperty, getProperty, groupFinished, groupStarted, initialize, isActive, itemsAdvanced, itemsFinished, itemsStarted, reportDone, reportFinished, reportInitialized, reportStarted, setDataRow, setDependencyLevel, setName, setProperties, setProperty |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageRenderFunction
public ImageRenderFunction()
pageStarted
public void pageStarted(ReportEvent event)
- Create a image according to the current state, simple and silly ...
- Specified by:
pageStarted
in interface PageEventListener
- Parameters:
event
- the report event.
pageFinished
public void pageFinished(ReportEvent event)
- Receives notification that a page is completed.
- Specified by:
pageFinished
in interface PageEventListener
- Parameters:
event
- The event.
getValue
public java.lang.Object getValue()
- Return the last generated Image.
- Specified by:
getValue
in interface Expression
- Returns:
- the function value.
pageCanceled
public void pageCanceled(ReportEvent event)
- Receives notification that a page was canceled by the ReportProcessor.
This method is called, when a page was removed from the report after
it was generated.
- Specified by:
pageCanceled
in interface PageEventListener
- Parameters:
event
- The event.