|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.report.elementfactory.ElementFactory
org.jfree.report.elementfactory.ImageElementFactory
org.jfree.report.elementfactory.StaticImageURLElementFactory
A factory to create an image element that loads its image from an static URL. The content string may contain a relative URL if an valid base URL is given.
| Constructor Summary | |
StaticImageURLElementFactory()
Default-Constructor. |
|
| Method Summary | |
Element |
createElement()
Creates the image URL element. |
static ImageElement |
createImageElement(java.lang.String name,
java.awt.geom.Rectangle2D bounds,
java.net.URL source)
Creates a new ImageElement. |
static ImageElement |
createImageElement(java.lang.String name,
java.awt.geom.Rectangle2D bounds,
java.net.URL source,
boolean scale)
Creates a new ImageElement. |
static ImageElement |
createImageElement(java.lang.String name,
java.awt.geom.Rectangle2D bounds,
java.net.URL source,
boolean scale,
boolean keepAspectRatio)
Creates a new ImageElement. |
java.net.URL |
getBaseURL()
Returns the BaseURL. |
java.lang.String |
getContent()
Returns the content part of the URL. |
void |
setBaseURL(java.net.URL baseURL)
Defines the base URL. |
void |
setContent(java.lang.String content)
Defines the content part of the URL. |
| Methods inherited from class org.jfree.report.elementfactory.ImageElementFactory |
applyStyle, getKeepAspectRatio, getScale, setKeepAspectRatio, setScale |
| Methods inherited from class org.jfree.report.elementfactory.ElementFactory |
applyElementName, getAbsolutePosition, getDynamicHeight, getMaximumSize, getMinimumSize, getName, getPreferredSize, setAbsolutePosition, setDynamicHeight, setMaximumSize, setMinimumSize, setName, setPreferredSize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StaticImageURLElementFactory()
| Method Detail |
public Element createElement()
createElement in class ElementFactoryjava.lang.IllegalStateException - if the content is not defined.ElementFactory.createElement()public java.lang.String getContent()
public void setContent(java.lang.String content)
content - the content part of the URL.public java.net.URL getBaseURL()
public void setBaseURL(java.net.URL baseURL)
baseURL - the base URL.
public static ImageElement createImageElement(java.lang.String name,
java.awt.geom.Rectangle2D bounds,
java.net.URL source)
name - the name of the new elementbounds - the bounds of the new elementsource - the source url from where to load the image
java.lang.NullPointerException - if bounds, name or source are null
java.lang.IllegalArgumentException - if the given alignment is invalid
public static ImageElement createImageElement(java.lang.String name,
java.awt.geom.Rectangle2D bounds,
java.net.URL source,
boolean scale)
name - the name of the new element.bounds - the bounds of the new element.source - the source url from where to load the image.scale - scale the image?
java.lang.NullPointerException - if bounds, name or source are null
java.lang.IllegalArgumentException - if the given alignment is invalid
public static ImageElement createImageElement(java.lang.String name,
java.awt.geom.Rectangle2D bounds,
java.net.URL source,
boolean scale,
boolean keepAspectRatio)
name - the name of the new element.bounds - the bounds of the new element.source - the source url from where to load the image.scale - scale the image?keepAspectRatio - preserve the aspect ratio?
java.lang.NullPointerException - if bounds, name or source are null
java.lang.IllegalArgumentException - if the given alignment is invalid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||