org.jfree.report.demo.fonts
Class FontChangeFunction

java.lang.Object
  |
  +--org.jfree.report.function.AbstractExpression
        |
        +--org.jfree.report.function.AbstractFunction
              |
              +--org.jfree.report.function.AbstractElementFormatFunction
                    |
                    +--org.jfree.report.demo.fonts.FontChangeFunction

public class FontChangeFunction
extends AbstractElementFormatFunction

This is a function used in report4-demo. The function demonstrates how to alter an elements property during the report generation. The elements font is changed base on the data provided in the reports datasource.

For every new item row in the report, the font for that row is changed to the fontname specified in the second column of the report data source.

Parameters:
The function expects the name of a field in the item band in the parameter "element". This functions value will always be null.

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
FontChangeFunction()
          DefaultConstructor.
 
Method Summary
 java.lang.Object getValue()
          Returns the value calculated by this function.
protected  void processRootBand(Band b)
           
 
Methods inherited from class org.jfree.report.function.AbstractElementFormatFunction
getElement, groupFinished, groupStarted, itemsAdvanced, pageCanceled, pageFinished, pageRolledBack, pageStarted, reportFinished, reportStarted, setElement
 
Methods inherited from class org.jfree.report.function.AbstractFunction
clone, itemsFinished, itemsStarted, reportDone, reportInitialized
 
Methods inherited from class org.jfree.report.function.AbstractExpression
getDataRow, getDependencyLevel, getInstance, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, setActive, setDependencyLevel, setName, setRuntime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontChangeFunction

public FontChangeFunction()
DefaultConstructor.
Method Detail

processRootBand

protected void processRootBand(Band b)
Overrides:
processRootBand in class AbstractElementFormatFunction

getValue

public java.lang.Object getValue()
Returns the value calculated by this function. As this function does not calculate values, this method does always return null.
Returns:
always null, as this function does not calculate something.