org.jfree.report.modules.output.table.base
abstract public class: TableCellData [javadoc |
source]
java.lang.Object
org.jfree.report.modules.output.table.base.TableCellData
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
HtmlCellData, TableCellBackground, DefaultExcelCellData, RTFImageCellData, ExcelCellData, DateExcelCellData, RTFCellData, RTFTextCellData, HtmlTextCellData, NumericExcelCellData, HtmlImageCellData, TableBandArea, CSVCellData
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: |
public TableCellData(Rectangle2D outerBounds) {
if (outerBounds == null)
{
throw new NullPointerException("TableCellData constructor : outerBounds is null");
}
this.outerBounds = (Rectangle2D) outerBounds.clone();
}
Creates a new TableCellData object. Parameters:
outerBounds - the bounds (null not permitted).
|
| Method from org.jfree.report.modules.output.table.base.TableCellData Detail: |
public Object clone() throws CloneNotSupportedException {
final TableCellData clone = (TableCellData) super.clone();
clone.outerBounds = outerBounds.getBounds2D();
return clone;
}
|
public Rectangle2D getBounds() {
return outerBounds.getBounds2D();
}
Gets the bounds of this table cell data. |
abstract public boolean isBackground()
Returns true, if this cell data definition is a background definition and does
not contain cell data. |
protected void setBounds(Rectangle2D bounds) {
outerBounds.setRect(bounds);
}
Redefines the bounds for this cell data. This should not be called from
user implementations - it is only needed to merge background cells and
should never used anywhere else. |