org.pentaho.plugin.jfreereport.reportcharts
Class JFreeChartReportDrawable

java.lang.Object
  extended by org.pentaho.plugin.jfreereport.reportcharts.JFreeChartReportDrawable
All Implemented Interfaces:
org.pentaho.reporting.engine.classic.core.util.ReportDrawable

public class JFreeChartReportDrawable
extends Object
implements org.pentaho.reporting.engine.classic.core.util.ReportDrawable

Todo: Document me!

Date: 26.02.2010 Time: 16:08:41

Author:
Thomas Morgner.

Constructor Summary
JFreeChartReportDrawable(org.jfree.chart.JFreeChart chart, boolean collectRenderingInfo)
           
 
Method Summary
 void draw(Graphics2D graphics2D, Rectangle2D bounds)
           
 org.pentaho.reporting.engine.classic.core.imagemap.ImageMap getImageMap(Rectangle2D bounds)
          Returns an optional image-map for the entry.
 void setConfiguration(org.pentaho.reporting.libraries.base.config.Configuration config)
          Provides the current report configuration of the current report process to the drawable.
 void setResourceBundleFactory(org.pentaho.reporting.engine.classic.core.ResourceBundleFactory bundleFactory)
          Defines the resource-bundle factory that can be used to localize the drawing process.
 void setStyleSheet(org.pentaho.reporting.engine.classic.core.style.StyleSheet style)
          Provides the computed stylesheet of the report element that contained this drawable.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JFreeChartReportDrawable

public JFreeChartReportDrawable(org.jfree.chart.JFreeChart chart,
                                boolean collectRenderingInfo)
Method Detail

draw

public void draw(Graphics2D graphics2D,
                 Rectangle2D bounds)
Specified by:
draw in interface org.pentaho.reporting.engine.classic.core.util.ReportDrawable

setConfiguration

public void setConfiguration(org.pentaho.reporting.libraries.base.config.Configuration config)
Provides the current report configuration of the current report process to the drawable. The report configuration can be used to configure the drawing process through the report.

Specified by:
setConfiguration in interface org.pentaho.reporting.engine.classic.core.util.ReportDrawable
Parameters:
config - the report configuration.

setStyleSheet

public void setStyleSheet(org.pentaho.reporting.engine.classic.core.style.StyleSheet style)
Provides the computed stylesheet of the report element that contained this drawable. The stylesheet is immutable.

Specified by:
setStyleSheet in interface org.pentaho.reporting.engine.classic.core.util.ReportDrawable
Parameters:
style - the stylesheet.

setResourceBundleFactory

public void setResourceBundleFactory(org.pentaho.reporting.engine.classic.core.ResourceBundleFactory bundleFactory)
Defines the resource-bundle factory that can be used to localize the drawing process.

Specified by:
setResourceBundleFactory in interface org.pentaho.reporting.engine.classic.core.util.ReportDrawable
Parameters:
bundleFactory - the resource-bundle factory.

getImageMap

public org.pentaho.reporting.engine.classic.core.imagemap.ImageMap getImageMap(Rectangle2D bounds)
Returns an optional image-map for the entry.

Specified by:
getImageMap in interface org.pentaho.reporting.engine.classic.core.util.ReportDrawable
Parameters:
bounds - the bounds for which the image map is computed.
Returns:
the computed image-map or null if there is no image-map available.