org.jfree.report.demo.helper
Class ImageRenderFunction

java.lang.Object
  extended byorg.jfree.report.function.AbstractFunction
      extended byorg.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

Field Summary
 
Fields inherited from interface org.jfree.report.function.Expression
AUTOACTIVATE_PROPERTY
 
Constructor Summary
ImageRenderFunction()
           
 
Method Summary
 java.lang.Object getValue()
          Return the last generated Image.
 void pageCanceled(ReportEvent event)
          Receives notification that a page was canceled by the ReportProcessor.
 void pageFinished(ReportEvent event)
          Receives notification that a page is completed.
 void pageStarted(ReportEvent event)
          Create a image according to the current state, simple and silly ...
 
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
 

Constructor Detail

ImageRenderFunction

public ImageRenderFunction()
Method Detail

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.