org.pentaho.reporting.engine.classic.core.util
Interface ReportDrawable

All Known Implementing Classes:
ReportDrawableImage, ScalingDrawable, ShapeDrawable, SurveyScale

public interface ReportDrawable

A report drawable receives context-information from the report processor that may allow the implementation to return better results. Implement this interface to get some extra hints for your drawing task.

Author:
Thomas Morgner

Method Summary
 void draw(Graphics2D graphics2D, Rectangle2D bounds)
           
 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(ResourceBundleFactory bundleFactory)
          Defines the resource-bundle factory that can be used to localize the drawing process.
 void setStyleSheet(StyleSheet style)
          Provides the computed stylesheet of the report element that contained this drawable.
 

Method Detail

draw

void draw(Graphics2D graphics2D,
          Rectangle2D bounds)

setConfiguration

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.

Parameters:
config - the report configuration.

setStyleSheet

void setStyleSheet(StyleSheet style)
Provides the computed stylesheet of the report element that contained this drawable. The stylesheet is immutable.

Parameters:
style - the stylesheet.

setResourceBundleFactory

void setResourceBundleFactory(ResourceBundleFactory bundleFactory)
Defines the resource-bundle factory that can be used to localize the drawing process.

Parameters:
bundleFactory - the resource-bundle factory.

getImageMap

ImageMap getImageMap(Rectangle2D bounds)
Returns an optional image-map for the entry.

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.