public class BarcodeWrapper extends Object implements org.pentaho.reporting.engine.classic.core.util.ReportDrawable
draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D)
which is requested by the reporting
engine for automatic support using drawable-fields.Constructor and Description |
---|
BarcodeWrapper(net.sourceforge.barbecue.Barcode barcode) |
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics2D g2,
Rectangle2D bounds) |
net.sourceforge.barbecue.Barcode |
getBarcode() |
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 net.sourceforge.barbecue.Barcode getBarcode()
public boolean isPreserveAspectRatio()
public Dimension getPreferredSize()
public void draw(Graphics2D g2, Rectangle2D bounds)
draw
in interface org.pentaho.reporting.engine.classic.core.util.ReportDrawable
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.Copyright © 2017 Hitachi Vantara. All rights reserved.