public class ScalingDrawable extends org.pentaho.reporting.libraries.resourceloader.factory.drawable.DrawableWrapper implements ReportDrawable
Constructor and Description |
---|
ScalingDrawable(Object drawable)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics2D g2,
Rectangle2D area)
Draws the object.
|
org.pentaho.reporting.libraries.base.config.Configuration |
getConfiguration()
Returns the report configuration used if the drawable is a
ReportDrawable . |
ImageMap |
getImageMap(Rectangle2D bounds)
Returns an optional image-map for the entry.
|
ResourceBundleFactory |
getResourceBundleFactory()
Returns the resource-bundle factory used if the drawable is a
ReportDrawable . |
float |
getScaleX()
Returns the horizontal scale factor.
|
float |
getScaleY()
Returns the vertical scale factor.
|
StyleSheet |
getStyleSheet()
Returns the stylesheet of the element containing this drawable.
|
void |
setConfiguration(org.pentaho.reporting.libraries.base.config.Configuration configuration)
Defines the report configuration used if the drawable is a
ReportDrawable . |
void |
setResourceBundleFactory(ResourceBundleFactory resourceBundleFactory)
Defines the resource-bundle factory used if the drawable is a
ReportDrawable . |
void |
setScaleX(float scaleX)
Defines the horizontal scale factor.
|
void |
setScaleY(float scaleY)
Defines the vertical scale factor.
|
void |
setStyleSheet(StyleSheet styleSheet)
Defines the stylesheet of the element containing this drawable.
|
public ScalingDrawable(Object drawable)
drawable
- the drawable objectpublic float getScaleY()
public void setScaleY(float scaleY)
scaleY
- the scale factor.public float getScaleX()
public void setScaleX(float scaleX)
scaleX
- the scale factor.public void draw(Graphics2D g2, Rectangle2D area)
draw
in interface ReportDrawable
draw
in class org.pentaho.reporting.libraries.resourceloader.factory.drawable.DrawableWrapper
g2
- the graphics device.area
- the area inside which the object should be drawn.public ImageMap getImageMap(Rectangle2D bounds)
ReportDrawable
getImageMap
in interface ReportDrawable
bounds
- the bounds for which the image map is computed.public StyleSheet getStyleSheet()
public void setStyleSheet(StyleSheet styleSheet)
setStyleSheet
in interface ReportDrawable
styleSheet
- the element's stylesheet.public ResourceBundleFactory getResourceBundleFactory()
ReportDrawable
.public void setResourceBundleFactory(ResourceBundleFactory resourceBundleFactory)
ReportDrawable
.setResourceBundleFactory
in interface ReportDrawable
resourceBundleFactory
- the resource-bundle factory.public org.pentaho.reporting.libraries.base.config.Configuration getConfiguration()
ReportDrawable
.public void setConfiguration(org.pentaho.reporting.libraries.base.config.Configuration configuration)
ReportDrawable
.setConfiguration
in interface ReportDrawable
configuration
- the report's configuration.