|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.report.Element
org.jfree.report.ImageElement
Used to draw images (Gif, JPEG, PNG or wmf) on a report band. PNG Support needs JDK 1.3 or higher. This class encapsulates an ImageReference into an element.
Field Summary | |
static java.lang.String |
CONTENT_TYPE
A string for the content type. |
Fields inherited from class org.jfree.report.Element |
ANONYMOUS_ELEMENT_PREFIX |
Constructor Summary | |
ImageElement()
Constructs a image element. |
Method Summary | |
java.lang.String |
getContentType()
Returns the content type, in this case 'image/generic'. |
boolean |
isKeepAspectRatio()
Returns true if the image's aspect ratio should be preserved, and false otherwise. |
boolean |
isScale()
Returns true if the image should be scaled, and false otherwise. |
void |
setKeepAspectRatio(boolean kar)
Sets a flag that controls whether the shape's aspect ratio should be preserved. |
void |
setScale(boolean scale)
Sets a flag that controls whether the image should be scaled to fit the element bounds. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String CONTENT_TYPE
Constructor Detail |
public ImageElement()
Method Detail |
public java.lang.String getContentType()
getContentType
in class Element
public boolean isScale()
public void setScale(boolean scale)
scale
- the flag.public boolean isKeepAspectRatio()
public void setKeepAspectRatio(boolean kar)
kar
- the flag.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |