com.jrefinery.report.targets.table
Class TableCellData

java.lang.Object
  |
  +--com.jrefinery.report.targets.table.TableCellData
Direct Known Subclasses:
CSVCellData, ExcelCellData, HtmlCellData, RTFCellData, TableCellBackground

public abstract class TableCellData
extends java.lang.Object

Encapsulates cell information, either style information or cell data, and the cell bounds. The cell bounds are used by the TableGridLayout to place the cell into a TableGrid.

This class contains all data needed to successfully layout the table grid. The cell style information is dependent on the concrete implementation and not defined here.

Author:
Thomas Morgner.

Constructor Summary
TableCellData(java.awt.geom.Rectangle2D outerBounds)
          Creates a new TableCellData object.
 
Method Summary
 java.awt.geom.Rectangle2D getBounds()
          Gets the bounds of this table cell data.
abstract  boolean isBackground()
          Returns true, if this cell data definition is a background definition and does not contain cell data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableCellData

public TableCellData(java.awt.geom.Rectangle2D outerBounds)
Creates a new TableCellData object.

Parameters:
outerBounds - the bounds (null not permitted).
Method Detail

getBounds

public java.awt.geom.Rectangle2D getBounds()
Gets the bounds of this table cell data.

Returns:
The bounds.

isBackground

public abstract boolean isBackground()
Returns true, if this cell data definition is a background definition and does not contain cell data.

Returns:
true for background cells and false for data cells.