public class LineSparklinesWrapper
extends org.pentaho.reporting.libraries.resourceloader.factory.drawable.DrawableWrapper
implements org.pentaho.reporting.engine.classic.core.util.ReportDrawable
Constructor and Description |
---|
LineSparklinesWrapper(org.pentaho.reporting.libraries.libsparklines.LineGraphDrawable sparkline) |
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics2D g2,
Rectangle2D bounds) |
org.pentaho.reporting.engine.classic.core.imagemap.ImageMap |
getImageMap(Rectangle2D bounds)
Returns an optional image-map for the entry.
|
Dimension |
getPreferredSize() |
boolean |
isPreserveAspectRatio() |
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.
|
public LineSparklinesWrapper(org.pentaho.reporting.libraries.libsparklines.LineGraphDrawable sparkline)
public void setConfiguration(org.pentaho.reporting.libraries.base.config.Configuration config)
setConfiguration
in interface org.pentaho.reporting.engine.classic.core.util.ReportDrawable
config
- the report configuration.public void setStyleSheet(org.pentaho.reporting.engine.classic.core.style.StyleSheet style)
setStyleSheet
in interface org.pentaho.reporting.engine.classic.core.util.ReportDrawable
style
- the stylesheet.public void setResourceBundleFactory(org.pentaho.reporting.engine.classic.core.ResourceBundleFactory bundleFactory)
setResourceBundleFactory
in interface org.pentaho.reporting.engine.classic.core.util.ReportDrawable
bundleFactory
- the resource-bundle factory.public org.pentaho.reporting.engine.classic.core.imagemap.ImageMap getImageMap(Rectangle2D bounds)
getImageMap
in interface org.pentaho.reporting.engine.classic.core.util.ReportDrawable
bounds
- the bounds for which the image map is computed.public boolean isPreserveAspectRatio()
isPreserveAspectRatio
in class org.pentaho.reporting.libraries.resourceloader.factory.drawable.DrawableWrapper
public Dimension getPreferredSize()
getPreferredSize
in class org.pentaho.reporting.libraries.resourceloader.factory.drawable.DrawableWrapper
public void draw(Graphics2D g2, Rectangle2D bounds)
draw
in interface org.pentaho.reporting.engine.classic.core.util.ReportDrawable
draw
in class org.pentaho.reporting.libraries.resourceloader.factory.drawable.DrawableWrapper
Copyright © 2017 Hitachi Vantara. All rights reserved.