Class ReportDrawableImage
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.util.ReportDrawableImage
-
- All Implemented Interfaces:
ReportDrawable
public class ReportDrawableImage extends Object implements ReportDrawable
-
-
Constructor Summary
Constructors Constructor Description ReportDrawableImage(Image aImage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw(Graphics2D graphics2D, Rectangle2D bounds)
ImageMap
getImageMap(Rectangle2D bounds)
Returns an optional image-map for the entry.Dimension
getPreferredSize()
boolean
isKeepAspectRatio()
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.
-
-
-
Constructor Detail
-
ReportDrawableImage
public ReportDrawableImage(Image aImage)
-
-
Method Detail
-
draw
public void draw(Graphics2D graphics2D, Rectangle2D bounds)
- Specified by:
draw
in interfaceReportDrawable
-
isKeepAspectRatio
public boolean isKeepAspectRatio()
-
getPreferredSize
public Dimension getPreferredSize()
-
getImageMap
public ImageMap getImageMap(Rectangle2D bounds)
Description copied from interface:ReportDrawable
Returns an optional image-map for the entry.- Specified by:
getImageMap
in interfaceReportDrawable
- 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.
-
setConfiguration
public void setConfiguration(org.pentaho.reporting.libraries.base.config.Configuration config)
Description copied from interface:ReportDrawable
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 interfaceReportDrawable
- Parameters:
config
- the report configuration.
-
setResourceBundleFactory
public void setResourceBundleFactory(ResourceBundleFactory bundleFactory)
Description copied from interface:ReportDrawable
Defines the resource-bundle factory that can be used to localize the drawing process.- Specified by:
setResourceBundleFactory
in interfaceReportDrawable
- Parameters:
bundleFactory
- the resource-bundle factory.
-
setStyleSheet
public void setStyleSheet(StyleSheet style)
Description copied from interface:ReportDrawable
Provides the computed stylesheet of the report element that contained this drawable. The stylesheet is immutable.- Specified by:
setStyleSheet
in interfaceReportDrawable
- Parameters:
style
- the stylesheet.
-
-