| |
|
| java.lang.Object org.jfree.report.Element org.jfree.report.ImageElement
ImageElement | public class ImageElement extends Element (Code) | | Used to draw images. References to the Images must be given as ImageContainer. If you
use the ImageElementFactory implementations, the necessary wrapping is
done for you, if needed.
author: Thomas Morgner |
Constructor Summary | |
public | ImageElement() Constructs a image element. |
Method Summary | |
public String | getContentType() Returns the content type, in this case 'image/generic'. | public boolean | isKeepAspectRatio() Returns true if the image's aspect ratio should be preserved, and false otherwise. | public boolean | isScale() Returns true if the image should be scaled, and false otherwise. | public void | setKeepAspectRatio(boolean kar) Sets a flag that controls whether the shape's aspect ratio should be preserved. | public void | setScale(boolean scale) Sets a flag that controls whether the image should be scaled to fit the element
bounds. |
CONTENT_TYPE | final public static String CONTENT_TYPE(Code) | | A string for the content type.
|
ImageElement | public ImageElement()(Code) | | Constructs a image element.
|
getContentType | public String getContentType()(Code) | | Returns the content type, in this case 'image/generic'.
the content type. |
isKeepAspectRatio | public boolean isKeepAspectRatio()(Code) | | Returns true if the image's aspect ratio should be preserved, and false otherwise.
true or false. |
isScale | public boolean isScale()(Code) | | Returns true if the image should be scaled, and false otherwise.
true or false. |
setKeepAspectRatio | public void setKeepAspectRatio(boolean kar)(Code) | | Sets a flag that controls whether the shape's aspect ratio should be preserved.
Parameters: kar - the flag. |
setScale | public void setScale(boolean scale)(Code) | | Sets a flag that controls whether the image should be scaled to fit the element
bounds.
Parameters: scale - the flag. |
Fields inherited from org.jfree.report.Element | final public static String ANONYMOUS_ELEMENT_PREFIX(Code)(Java Doc)
|
|
|
|