| org.jfree.report.ImageContainer
ImageContainer | public interface ImageContainer extends Cloneable(Code) | | A image container stores all layout information to process images in a report.
The ImageContainer is the common base interface for the URLImageContainer (which references remote images) and the
LocalImageContainer (which references local AWT-Image instances).
All the layouting engine needs to know about images, are the image dimensions and the possible scale factor for the
contained image. Only the content creators need the knowledge on how to access the contained image and and which
other container types might exist.
author: Thomas Morgner |
Method Summary | |
public int | getImageHeight() Returns the unscaled height of the contained image. | public int | getImageWidth() Returns the unscaled width of the contained image. | public float | getScaleX() Defines the image's horizontal scale. | public float | getScaleY() Defines the image's vertical scale. |
getImageHeight | public int getImageHeight()(Code) | | Returns the unscaled height of the contained image. The height must be known during the layouting process,
returning -1 to indicate an unknown size (as the AWT does) is not valid.
the height of the image. |
getImageWidth | public int getImageWidth()(Code) | | Returns the unscaled width of the contained image. The width must be known during the layouting process, returning
-1 to indicate an unknown size (as the AWT does) is not valid.
the width of the image. |
getScaleX | public float getScaleX()(Code) | | Defines the image's horizontal scale. This is the factor to convert the image from it's original resolution to the
java resolution of 72dpi.
This is not the scale that is computed by the layouter; that one is derived from the ImageContent itself.
the horizontal scale. |
getScaleY | public float getScaleY()(Code) | | Defines the image's vertical scale. This is the factor to convert the image from it's original resolution to the
java resolution of 72dpi.
This is not the scale that is computed by the layouter; that one is derived from the ImageContent.
the vertical scale. |
|
|