Class 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
      • Methods inherited from interface org.pentaho.reporting.engine.classic.core.function.Expression

        clone, getDataRow, getDependencyLevel, getInstance, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setDependencyLevel, setName, setRuntime
    • Constructor Detail

      • ImageRenderFunction

        public ImageRenderFunction()
        Creates an unnamed function. Make sure the name of the function is set using AbstractExpression.setName(java.lang.String) before the function is added to the report's function collection.
    • 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 interface org.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 interface org.pentaho.reporting.engine.classic.core.event.PageEventListener
        Parameters:
        event - The event.
      • getValue

        public Object getValue()
        Return the last generated Image.
        Specified by:
        getValue in interface org.pentaho.reporting.engine.classic.core.function.Expression
        Returns:
        the function value.