| |
|
| java.lang.Object org.jfree.report.elementfactory.ElementFactory org.jfree.report.elementfactory.ImageElementFactory org.jfree.report.elementfactory.StaticImageURLElementFactory
StaticImageURLElementFactory | public class StaticImageURLElementFactory extends ImageElementFactory (Code) | | 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.
author: Thomas Morgner |
StaticImageURLElementFactory | public StaticImageURLElementFactory()(Code) | | Default-Constructor.
|
createImageElement | public static ImageElement createImageElement(String name, Rectangle2D bounds, URL source)(Code) | | Creates a new ImageElement. The source URL is predefined in an StaticDataSource and
will not change during the report processing.
Parameters: name - the name of the new element Parameters: bounds - the bounds of the new element Parameters: source - the source url from where to load the image a report element for displaying an image. throws: NullPointerException - if bounds, name or source are null throws: IllegalArgumentException - if the given alignment is invalid |
createImageElement | public static ImageElement createImageElement(String name, Rectangle2D bounds, URL source, boolean scale)(Code) | | Creates a new ImageElement. The source URL is predefined in an StaticDataSource and
will not change during the report processing.
Parameters: name - the name of the new element. Parameters: bounds - the bounds of the new element. Parameters: source - the source url from where to load the image. Parameters: scale - scale the image? a report element for displaying an image. throws: NullPointerException - if bounds, name or source are null throws: IllegalArgumentException - if the given alignment is invalid |
createImageElement | public static ImageElement createImageElement(String name, Rectangle2D bounds, URL source, boolean scale, boolean keepAspectRatio)(Code) | | Creates a new ImageElement. The source URL is predefined in an StaticDataSource and
will not change during the report processing.
Parameters: name - the name of the new element. Parameters: bounds - the bounds of the new element. Parameters: source - the source url from where to load the image. Parameters: scale - scale the image? Parameters: keepAspectRatio - preserve the aspect ratio? a report element for displaying an image. throws: NullPointerException - if bounds, name or source are null throws: IllegalArgumentException - if the given alignment is invalid |
getBaseURL | public URL getBaseURL()(Code) | | Returns the BaseURL. The base URL is used to build the complete URL if the content
url is relative.
the base URL. |
getContent | public String getContent()(Code) | | Returns the content part of the URL. This string may contain a relative URL, if the
base URL is defined.
the content part of the URL. |
setBaseURL | public void setBaseURL(URL baseURL)(Code) | | Defines the base URL.
Parameters: baseURL - the base URL. |
setContent | public void setContent(String content)(Code) | | Defines the content part of the URL. This string may contain a relative URL, if the
base URL is defined.
Parameters: content - the content part of the URL. |
|
|
|