com.jrefinery.report.targets.table.html
Class HtmlImageCellData

java.lang.Object
  extended bycom.jrefinery.report.targets.table.TableCellData
      extended bycom.jrefinery.report.targets.table.html.HtmlCellData
          extended bycom.jrefinery.report.targets.table.html.HtmlImageCellData

public class HtmlImageCellData
extends HtmlCellData

A wrapper for Image content within the generated HtmlTable. The image content will be inserted using a HtmlReference from the provided FileSystem.

Author:
Thomas Morgner

Constructor Summary
HtmlImageCellData(java.awt.geom.Rectangle2D outerBounds, ImageReference image, HtmlCellStyle style, boolean useXHTML)
          Creates a new ImageCell for the given bounds and image.
 
Method Summary
 boolean isBackground()
          Gets a flag, which indicates whether this cell contains background definitions.
 void write(java.io.PrintWriter pout, HtmlFilesystem filesystem)
          Writes the (X)HTML-Code for an Image-Content.
 
Methods inherited from class com.jrefinery.report.targets.table.html.HtmlCellData
getStyle, isUseXHTML
 
Methods inherited from class com.jrefinery.report.targets.table.TableCellData
getBounds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlImageCellData

public HtmlImageCellData(java.awt.geom.Rectangle2D outerBounds,
                         ImageReference image,
                         HtmlCellStyle style,
                         boolean useXHTML)
Creates a new ImageCell for the given bounds and image.

Parameters:
outerBounds - the cell bounds.
image - the image content.
style - the assigned cell style.
useXHTML - a flag indicating whether to create XHTML instead of HTML4 code.
Method Detail

write

public void write(java.io.PrintWriter pout,
                  HtmlFilesystem filesystem)
Writes the (X)HTML-Code for an Image-Content. The generated code depends on the created HTMLReference of the used FileSystem.

Specified by:
write in class HtmlCellData
Parameters:
pout - the print writer, which receives the generated HTML-Code.
filesystem - the HTML-Filesystem used to create the ImageReference.
See Also:
HtmlFilesystem.createImageReference(com.jrefinery.report.ImageReference)

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.