| |
|
| java.lang.Object org.jfree.report.elementfactory.ElementFactory org.jfree.report.elementfactory.ImageElementFactory org.jfree.report.elementfactory.ImageFieldElementFactory
ImageFieldElementFactory | public class ImageFieldElementFactory extends ImageElementFactory (Code) | | 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.
author: Thomas Morgner |
ImageFieldElementFactory | public ImageFieldElementFactory()(Code) | | DefaultConstructor.
|
createImageDataRowElement | public static ImageElement createImageDataRowElement(String name, Rectangle2D bounds, String field)(Code) | | Creates a new ImageElement.
Parameters: name - the name of the new element Parameters: bounds - the bounds of the new element Parameters: field - the name of the column/function/expression that returns the URL for 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 |
createImageDataRowElement | public static ImageElement createImageDataRowElement(String name, Rectangle2D bounds, String field, boolean scale)(Code) | | Creates a new ImageElement.
Parameters: name - the name of the new element. Parameters: bounds - the bounds of the new element. Parameters: field - the name of the column/function/expression that returns the URL for 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 |
createImageDataRowElement | public static ImageElement createImageDataRowElement(String name, Rectangle2D bounds, String field, boolean scale, boolean keepAspectRatio)(Code) | | Creates a new ImageElement.
Parameters: name - the name of the new element. Parameters: bounds - the bounds of the new element. Parameters: field - the name of the column/function/expression that returns the URL for 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 |
getFieldname | public String getFieldname()(Code) | | Returns the field name from where to read the content of the element.
the field name. |
getFormula | public String getFormula()(Code) | | Returns the formula that should be used to compute the value of the field. The formula must be valid according to
the OpenFormula specifications.
the formula as string. |
setFieldname | public void setFieldname(String fieldname)(Code) | | Defines the field name from where to read the content of the element. The field name is the name of a datarow
column.
Parameters: fieldname - the field name. |
setFormula | public void setFormula(String formula)(Code) | | Assigns a formula to the element to compute the value for this element. If a formula is defined, it will override
the 'field' property.
Parameters: formula - the formula as a string. |
|
|
|