org.jfree.report.util

Class ScalingDrawable

public class ScalingDrawable extends DrawableWrapper

Creation-Date: 20.01.2006, 19:46:10

Author: Thomas Morgner

Constructor Summary
ScalingDrawable(Object drawable)
Default constructor.
Method Summary
voiddraw(Graphics2D g2, Rectangle2D area)
Draws the object.
floatgetScaleX()
Returns the horizontal scale factor.
floatgetScaleY()
Returns the vertical scale factor.
voidsetScaleX(float scaleX)
Defines the horizontal scale factor.
voidsetScaleY(float scaleY)
Defines the vertical scale factor.

Constructor Detail

ScalingDrawable

public ScalingDrawable(Object drawable)
Default constructor. Initializes the scaling to 1.

Parameters: drawable the drawable object

Method Detail

draw

public void draw(Graphics2D g2, Rectangle2D area)
Draws the object.

Parameters: g2 the graphics device. area the area inside which the object should be drawn.

getScaleX

public float getScaleX()
Returns the horizontal scale factor.

Returns: the scale factor.

getScaleY

public float getScaleY()
Returns the vertical scale factor.

Returns: the scale factor.

setScaleX

public void setScaleX(float scaleX)
Defines the horizontal scale factor.

Parameters: scaleX the scale factor.

setScaleY

public void setScaleY(float scaleY)
Defines the vertical scale factor.

Parameters: scaleY the scale factor.