|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.reporting.libraries.resourceloader.factory.drawable.DrawableWrapper org.pentaho.reporting.engine.classic.core.util.ScalingDrawable
public class ScalingDrawable
A drawable implementation that applies scaling to the wrapped up drawable object.
Constructor Summary | |
---|---|
ScalingDrawable(Object drawable)
Default constructor. |
Method Summary | |
---|---|
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. |
LayoutSupport |
getLayoutSupport()
Returns the layout-support used if the drawable is a ReportDrawable . |
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 |
setLayoutSupport(LayoutSupport layoutSupport)
Defines the layout-support 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. |
Methods inherited from class org.pentaho.reporting.libraries.resourceloader.factory.drawable.DrawableWrapper |
---|
getBackend, getPreferredSize, isDrawable, isPreserveAspectRatio |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScalingDrawable(Object drawable)
drawable
- the drawable objectMethod Detail |
---|
public 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 LayoutSupport getLayoutSupport()
ReportDrawable
.
public void setLayoutSupport(LayoutSupport layoutSupport)
ReportDrawable
.
layoutSupport
- the layout support.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |