private void computeCellArea(final TableCellRenderBox cellRenderBox)
{
// This is slightly different for table cells ...
final int columnIndex = cellRenderBox.getColumnIndex();
final TableRenderBox table = cellRenderBox.getTable();
final TableColumnModel columnModel = table.getColumnModel();
final TableColumn column = columnModel.getColumn(columnIndex);
long effectiveSize = column.getEffectiveSize();
final int colSpan = cellRenderBox.getColSpan();
if (colSpan > 1)
{
for (int i = 1; i < colSpan; i++)
{
final TableColumn spannedColumn = columnModel.getColumn(columnIndex + i);
effectiveSize += spannedColumn.getEffectiveSize();
effectiveSize += columnModel.getBorderSpacing();
}
}
final long effectiveCellPosition = column.getEffectiveCellPosition();
cellRenderBox.setX(effectiveCellPosition);