com.jrefinery.report.targets.table.rtf
Class RTFTextCellData
java.lang.Object
com.jrefinery.report.targets.table.TableCellData
com.jrefinery.report.targets.table.rtf.RTFCellData
com.jrefinery.report.targets.table.rtf.RTFTextCellData
- public class RTFTextCellData
- extends RTFCellData
A wrapper for text content within the generated RTF Table.
- Author:
- Thomas Morgner
Constructor Summary |
RTFTextCellData(java.awt.geom.Rectangle2D outerBounds,
java.lang.String value,
RTFTextCellStyle style)
Creates a new RTFTextCellData for the given content. |
Method Summary |
com.lowagie.text.Cell |
getCell()
Creates a iText TableCell with text content in it. |
boolean |
isBackground()
Gets a flag, which indicates whether this cell contains background definitions. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RTFTextCellData
public RTFTextCellData(java.awt.geom.Rectangle2D outerBounds,
java.lang.String value,
RTFTextCellStyle style)
- Creates a new RTFTextCellData for the given content.
- Parameters:
outerBounds
- the cell bounds.value
- the text content.style
- the style definition for the cell.
getCell
public com.lowagie.text.Cell getCell()
throws com.lowagie.text.DocumentException
- Creates a iText TableCell with text content in it.
- Specified by:
getCell
in class RTFCellData
- Returns:
- the cell with the content.
- Throws:
com.lowagie.text.DocumentException
- if the cell could not be created.
isBackground
public boolean isBackground()
- Gets a flag, which indicates whether this cell contains background definitions.
- Specified by:
isBackground
in class TableCellData
- Returns:
- false, as this is no background cell.