org.jfree.layouting.input
public class AWTImageData extends Object implements ImageData
| Constructor Summary | |
|---|---|
| AWTImageData(Resource source, Image image) | |
| Method Summary | |
|---|---|
| void | draw(Graphics2D g2, Rectangle2D area)
Draws the object.
|
| long | getHeight() |
| Dimension | getPreferredSize()
Returns the preferred size of the drawable. |
| Resource | getSource()
Returns the resource definition that was used to load the image. |
| long | getWidth() |
| boolean | isPreserveAspectRatio()
Returns true, if this drawable will preserve an aspect ratio during the
drawing.
|
Parameters: g2 the graphics device. area the area inside which the object should be drawn.
Returns: the preferred size.
Returns:
Returns: true, if an aspect ratio is preserved, false otherwise.