com.jrefinery.report.targets.table.csv
Class CSVCellDataFactory

java.lang.Object
  extended bycom.jrefinery.report.targets.table.csv.CSVCellDataFactory
All Implemented Interfaces:
TableCellDataFactory

public class CSVCellDataFactory
extends java.lang.Object
implements TableCellDataFactory

Creates a TableCellData object from the given Element and the element's bounds. The factory handles text elements and ignores all other elements.

Author:
Thomas Morgner

Constructor Summary
CSVCellDataFactory()
           
 
Method Summary
 TableCellData createCellData(Element e, java.awt.geom.Rectangle2D rect)
          Creates the TableCellData for the given Element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVCellDataFactory

public CSVCellDataFactory()
Method Detail

createCellData

public TableCellData createCellData(Element e,
                                    java.awt.geom.Rectangle2D rect)
Creates the TableCellData for the given Element. The CellData is created, when the element value is a string and not null.

If the tablemodel does not support the element type, null is returned.

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