com.jrefinery.report.targets.table
Interface TableCellDataFactory

All Known Implementing Classes:
AbstractTableCellDataFactory, CSVCellDataFactory

public interface TableCellDataFactory

Creates TableCellData object from the given Elements and the element's bounds. The contents and the behaviour of the TableCellDataFactory is dependent on the TableWriter implementation.

The TableWriter will use the generated TableCellData to fill the TableGrid.

Author:
Thomas Morgner
See Also:
TableWriter, TableCellData, TableGrid

Method Summary
 TableCellData createCellData(Element e, java.awt.geom.Rectangle2D rect)
          Creates a TableCellData for an Element.
 

Method Detail

createCellData

public TableCellData createCellData(Element e,
                                    java.awt.geom.Rectangle2D rect)
Creates a TableCellData for an Element. The generated CellData should contain copies of all needed element attributes, as the element instance will be reused in the later report processing.

If the tablemodel does not support the element type, return null.

Parameters:
e - the element that should be converted into TableCellData.
rect - the element's bounds within the table (specified in points).
Returns:
The generated TableCellData object, or null if element type is not supported.