com.jrefinery.report.targets.table.rtf
Class RTFImageCellData
java.lang.Object
|
+--com.jrefinery.report.targets.table.TableCellData
|
+--com.jrefinery.report.targets.table.rtf.RTFCellData
|
+--com.jrefinery.report.targets.table.rtf.RTFImageCellData
- public class RTFImageCellData
- extends RTFCellData
A wrapper for Image content within the generated RTFTable.
- Author:
- Thomas Morgner
Method Summary |
com.lowagie.text.Cell |
getCell()
Creates a iText TableCell with image 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 |
RTFImageCellData
public RTFImageCellData(java.awt.geom.Rectangle2D outerBounds,
ImageReference image,
RTFCellStyle style)
- Creates a new ImageCell for the given bounds and image.
- Parameters:
outerBounds
- the cell bounds.image
- the image content.style
- the assigned cell style.
getCell
public com.lowagie.text.Cell getCell()
throws com.lowagie.text.DocumentException
- Creates a iText TableCell with image content in it. The image is
recoded as PNG if necessary.
- 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.