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

java.lang.Object
  extended bycom.jrefinery.report.targets.table.TableCellData
      extended bycom.jrefinery.report.targets.table.rtf.RTFCellData
Direct Known Subclasses:
RTFImageCellData, RTFTextCellData

public abstract class RTFCellData
extends TableCellData

The RTF extension of the TableCellData base class. The cell data implementation contains the cell style for a RTF table cell.

Author:
Thomas Morgner

Constructor Summary
RTFCellData(java.awt.geom.Rectangle2D outerBounds, RTFCellStyle style)
          Creates a new RTFCellData with the given bounds and style.
 
Method Summary
abstract  com.lowagie.text.Cell getCell()
          Creates a iText TableCell with some content in it.
 RTFCellStyle getStyle()
          Gets the cell style for the RTF table cell.
 
Methods inherited from class com.jrefinery.report.targets.table.TableCellData
getBounds, isBackground
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RTFCellData

public RTFCellData(java.awt.geom.Rectangle2D outerBounds,
                   RTFCellStyle style)
Creates a new RTFCellData with the given bounds and style.

Parameters:
outerBounds - the cell bounds.
style - the cell style.
Throws:
java.lang.NullPointerException - if the style is null.
Method Detail

getStyle

public RTFCellStyle getStyle()
Gets the cell style for the RTF table cell.

Returns:
the cell style.

getCell

public abstract com.lowagie.text.Cell getCell()
                                       throws com.lowagie.text.DocumentException
Creates a iText TableCell with some content in it.

Returns:
the cell with the content.
Throws:
com.lowagie.text.DocumentException - if there is a problem adding the cell to the document.