public class ShapeDrawable extends Object implements ReportDrawable
Constructor and Description |
---|
ShapeDrawable(Shape shape,
boolean isPreserveAspectRatio) |
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics2D g2,
Rectangle2D bounds) |
ImageMap |
getImageMap(Rectangle2D bounds)
Returns an optional image-map for the entry.
|
Dimension |
getPreferredSize() |
Shape |
getShape() |
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.
|
public ShapeDrawable(Shape shape, boolean isPreserveAspectRatio)
public Shape getShape()
public void draw(Graphics2D g2, Rectangle2D bounds)
draw
in interface ReportDrawable
public void setConfiguration(org.pentaho.reporting.libraries.base.config.Configuration config)
setConfiguration
in interface ReportDrawable
config
- the report configuration.public void setStyleSheet(StyleSheet style)
setStyleSheet
in interface ReportDrawable
style
- the stylesheet.public void setResourceBundleFactory(ResourceBundleFactory bundleFactory)
setResourceBundleFactory
in interface ReportDrawable
bundleFactory
- the resource-bundle factory.public ImageMap getImageMap(Rectangle2D bounds)
getImageMap
in interface ReportDrawable
bounds
- the bounds for which the image map is computed.public boolean isKeepAspectRatio()
public Dimension getPreferredSize()