org.jfree.report.util
public class ScalingExtendedDrawable extends Object implements ExtendedDrawable
Constructor Summary | |
---|---|
ScalingExtendedDrawable() |
Method Summary | |
---|---|
void | draw(Graphics2D g2, Rectangle2D area)
Draws the object.
|
ExtendedDrawable | getDrawable() |
Dimension | getPreferredSize()
Returns the preferred size of the drawable. |
float | getScaleX() |
float | getScaleY() |
boolean | isPreserveAspectRatio()
Returns true, if this drawable will preserve an aspect ratio during the
drawing.
|
void | setDrawable(ExtendedDrawable drawable) |
void | setScaleX(float scaleX) |
void | setScaleY(float scaleY) |
Parameters: g2 the graphics device. area the area inside which the object should be drawn.
Returns: the preferred size.
Returns: true, if an aspect ratio is preserved, false otherwise.