|
||||||||||
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.ImageURLFieldElementFactory
A factory to define ImageURLFieldElements. These elements expect an java.net.URL or an String as content and will display the image content of that URL in the report.
Constructor Summary | |
ImageURLFieldElementFactory()
DefaultConstructor. |
Method Summary | |
Element |
createElement()
Creates the image URL field element based on the defined properties. |
static ImageElement |
createImageURLElement(java.lang.String name,
java.awt.geom.Rectangle2D bounds,
java.lang.String field)
Creates a new ImageElement, which is fed from an URL stored in the datasource. |
static ImageElement |
createImageURLElement(java.lang.String name,
java.awt.geom.Rectangle2D bounds,
java.lang.String field,
boolean scale)
Creates a new ImageElement, which is fed from an URL stored in the datasource. |
static ImageElement |
createImageURLElement(java.lang.String name,
java.awt.geom.Rectangle2D bounds,
java.lang.String field,
boolean scale,
boolean keepAspectRatio)
Creates a new ImageElement, which is fed from an URL stored in the datasource. |
java.lang.String |
getFieldname()
Returns the field name from where to read the content of the element. |
void |
setFieldname(java.lang.String fieldname)
Defines the field name from where to read the content of the element. |
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 ImageURLFieldElementFactory()
Method Detail |
public java.lang.String getFieldname()
public void setFieldname(java.lang.String fieldname)
fieldname
- the field name.public Element createElement()
createElement
in class ElementFactory
ElementFactory.createElement()
public static ImageElement createImageURLElement(java.lang.String name, java.awt.geom.Rectangle2D bounds, java.lang.String field)
name
- the name of the new elementbounds
- the bounds of the new elementfield
- the name of the column/function/expression that returns the URL for the image.
java.lang.NullPointerException
- if bounds, name or source are null
java.lang.IllegalArgumentException
- if the given alignment is invalidpublic static ImageElement createImageURLElement(java.lang.String name, java.awt.geom.Rectangle2D bounds, java.lang.String field, boolean scale)
name
- the name of the new element.bounds
- the bounds of the new element.field
- the name of the column/function/expression that returns the URL for the image.scale
- scale the image?
java.lang.NullPointerException
- if bounds, name or source are null
java.lang.IllegalArgumentException
- if the given alignment is invalidpublic static ImageElement createImageURLElement(java.lang.String name, java.awt.geom.Rectangle2D bounds, java.lang.String field, boolean scale, boolean keepAspectRatio)
name
- the name of the new elementbounds
- the bounds of the new elementfield
- the name of the column/function/expression that returns the URL for the image.scale
- true if the content should be scaled to fit.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 |