| |
|
| java.lang.Object org.jfree.report.elementfactory.ElementFactory org.jfree.report.elementfactory.ComponentFieldElementFactory
ComponentFieldElementFactory | public class ComponentFieldElementFactory extends ElementFactory (Code) | | The drawable field element factory can be used to create elements that display Drawable elements.
A drawable field expects the named datasource to contain Drawable objects.
Once the desired properties are set, the factory can be reused to create similiar elements.
author: Thomas Morgner See Also: org.jfree.ui.Drawable |
Method Summary | |
public Element | createElement() Creates a new drawable field element based on the defined properties. | public String | getFieldname() Returns the field name from where to read the content of the element. | public String | getFormula() Returns the formula that should be used to compute the value of the field. | public void | setFieldname(String fieldname) Defines the field name from where to read the content of the element. | public void | setFormula(String formula) Assigns a formula to the element to compute the value for this element. |
ComponentFieldElementFactory | public ComponentFieldElementFactory()(Code) | | DefaultConstructor.
|
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. |
|
|
|