com.jrefinery.report.targets.table.rtf
Class RTFCellDataFactory

java.lang.Object
  |
  +--com.jrefinery.report.targets.table.AbstractTableCellDataFactory
        |
        +--com.jrefinery.report.targets.table.rtf.RTFCellDataFactory
All Implemented Interfaces:
TableCellDataFactory

public class RTFCellDataFactory
extends AbstractTableCellDataFactory

Creates a TableCellData object from the given Element and the element's bounds. The factory handles text and image elements, shape elements get converted into background information if possible.

Author:
Thomas Morgner

Constructor Summary
RTFCellDataFactory()
          Default Constructor.
 
Method Summary
 TableCellData createCellData(Element e, java.awt.geom.Rectangle2D rect)
          Creates a TableCellData for an Element.
 
Methods inherited from class com.jrefinery.report.targets.table.AbstractTableCellDataFactory
createBackground, createBandCell
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RTFCellDataFactory

public RTFCellDataFactory()
Default Constructor.

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.