return contents;
}
private JRFillCellContents prepareColumnHeader(HeaderCell cell, int columnIdx, int xOffset, int availableHeight) throws JRException
{
JRFillCrosstabColumnGroup group = columnGroups[rowIdx];
JRFillCellContents contents = cell.isTotal() ? group.getFillTotalHeader() : group.getFillHeader();
int width = columnXOffsets[columnIdx + cell.getLevelSpan()] - columnXOffsets[columnIdx];
int height = contents.getHeight();
if (width <= 0 || height <= 0)
{
return null;
}
JRFillCellContents preparedContents = null;
int rowY = ((Integer) rowYs.get(rowIdx)).intValue();
if (availableHeight >= rowY + height)
{
setCountVars(-1, columnIdx);
setGroupVariables(columnGroups, cell.getBucketValues());
contents = contents.getTransformedContents(width, height, group.getPositionValue(), CrosstabRowPositionEnum.TOP);
boolean firstOnRow = columnIdx == startColumnIndex && (!printRowHeaders || headerCell == null);
contents = contents.getBoxContents(
firstOnRow && getRunDirectionValue() == RunDirectionEnum.LTR,
firstOnRow && getRunDirectionValue() == RunDirectionEnum.RTL,
false);