org.jfree.report.elementfactory
Class AnchorFieldElementFactory

java.lang.Object
  |
  +--org.jfree.report.elementfactory.ElementFactory
        |
        +--org.jfree.report.elementfactory.AnchorFieldElementFactory

public class AnchorFieldElementFactory
extends ElementFactory

The AnchorFieldElementFactory can be used to construct Anchor fields. Anchor fields generate Anchor-Objects from content found in a DataRow-column or function.

Author:
Thomas Morgner

Constructor Summary
AnchorFieldElementFactory()
          Creates a new Factory.
 
Method Summary
 Element createElement()
          Creates a new instance of the element.
 java.lang.String getFieldname()
          Returns the element's field name.
 void setFieldname(java.lang.String field)
          Defines the field name.
 
Methods inherited from class org.jfree.report.elementfactory.ElementFactory
applyElementName, applyStyle, getAbsolutePosition, getDynamicHeight, getHRefTarget, getHRefWindow, getLayoutCachable, getMaximumSize, getMinimumSize, getName, getPreferredSize, getVisible, setAbsolutePosition, setDynamicHeight, setHRefTarget, setHRefWindow, setLayoutCachable, setMaximumSize, setMinimumSize, setName, setPreferredSize, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnchorFieldElementFactory

public AnchorFieldElementFactory()
Creates a new Factory.
Method Detail

getFieldname

public java.lang.String getFieldname()
Returns the element's field name.
Returns:
the fieldname

setFieldname

public void setFieldname(java.lang.String field)
Defines the field name. The field name should be the name of a 'marked' report property, a function or expression name or the name of a table model column.
Parameters:
field - the field name.

createElement

public Element createElement()
Creates a new instance of the element.
Overrides:
createElement in class ElementFactory
Returns:
the newly generated instance of the element.