|
||||||||||
| 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.ImageFieldElementFactory
A factory to define ImageFieldElements. These elements expect an java.awt.Image or an ImageReference instance as content and will display the content in the report.
| Constructor Summary | |
ImageFieldElementFactory()
DefaultConstructor. |
|
| Method Summary | |
Element |
createElement()
Creates the image element based on the defined properties. |
static ImageElement |
createImageDataRowElement(java.lang.String name,
java.awt.geom.Rectangle2D bounds,
java.lang.String field)
Creates a new ImageElement. |
static ImageElement |
createImageDataRowElement(java.lang.String name,
java.awt.geom.Rectangle2D bounds,
java.lang.String field,
boolean scale)
Creates a new ImageElement. |
static ImageElement |
createImageDataRowElement(java.lang.String name,
java.awt.geom.Rectangle2D bounds,
java.lang.String field,
boolean scale,
boolean keepAspectRatio)
Creates a new ImageElement. |
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 ImageFieldElementFactory()
| Method Detail |
public java.lang.String getFieldname()
public void setFieldname(java.lang.String fieldname)
fieldname - the field name.public Element createElement()
createElement in class ElementFactoryjava.lang.IllegalStateException - if the fieldname is not set.ElementFactory.createElement()
public static ImageElement createImageDataRowElement(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 invalid
public static ImageElement createImageDataRowElement(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 invalid
public static ImageElement createImageDataRowElement(java.lang.String name,
java.awt.geom.Rectangle2D bounds,
java.lang.String field,
boolean scale,
boolean keepAspectRatio)
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?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 | |||||||||