Class BarSparklinesWrapper
- java.lang.Object
-
- org.pentaho.reporting.libraries.resourceloader.factory.drawable.DrawableWrapper
-
- org.pentaho.reporting.engine.classic.extensions.modules.sparklines.BarSparklinesWrapper
-
- All Implemented Interfaces:
org.pentaho.reporting.engine.classic.core.util.ReportDrawable
public class BarSparklinesWrapper extends org.pentaho.reporting.libraries.resourceloader.factory.drawable.DrawableWrapper implements org.pentaho.reporting.engine.classic.core.util.ReportDrawable
-
-
Constructor Summary
Constructors Constructor Description BarSparklinesWrapper(org.pentaho.reporting.libraries.libsparklines.BarGraphDrawable sparkline)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(Graphics2D g2, Rectangle2D bounds)org.pentaho.reporting.engine.classic.core.imagemap.ImageMapgetImageMap(Rectangle2D bounds)Returns an optional image-map for the entry.DimensiongetPreferredSize()booleanisPreserveAspectRatio()voidsetConfiguration(org.pentaho.reporting.libraries.base.config.Configuration config)Provides the current report configuration of the current report process to the drawable.voidsetResourceBundleFactory(org.pentaho.reporting.engine.classic.core.ResourceBundleFactory bundleFactory)Defines the resource-bundle factory that can be used to localize the drawing process.voidsetStyleSheet(org.pentaho.reporting.engine.classic.core.style.StyleSheet style)Provides the computed stylesheet of the report element that contained this drawable.
-
-
-
Method Detail
-
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:
setConfigurationin interfaceorg.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:
setStyleSheetin interfaceorg.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:
setResourceBundleFactoryin interfaceorg.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:
getImageMapin interfaceorg.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.
-
isPreserveAspectRatio
public boolean isPreserveAspectRatio()
- Overrides:
isPreserveAspectRatioin classorg.pentaho.reporting.libraries.resourceloader.factory.drawable.DrawableWrapper
-
getPreferredSize
public Dimension getPreferredSize()
- Overrides:
getPreferredSizein classorg.pentaho.reporting.libraries.resourceloader.factory.drawable.DrawableWrapper
-
draw
public void draw(Graphics2D g2, Rectangle2D bounds)
- Specified by:
drawin interfaceorg.pentaho.reporting.engine.classic.core.util.ReportDrawable- Overrides:
drawin classorg.pentaho.reporting.libraries.resourceloader.factory.drawable.DrawableWrapper
-
-