Dj2JrCrosstabBuilder djcb = new Dj2JrCrosstabBuilder();
JRDesignCrosstab crosst = djcb.createCrosstab(djcross,this);
JRDesignBand band = (JRDesignBand) jgroup.getGroupHeader();
if (djcross.getBottomSpace() != 0){
JRDesignRectangle rect = createBlankRectableCrosstab(djcross.getBottomSpace(), 0);
LayoutUtils.moveBandsElemnts(rect.getHeight(), band);
band.addElement(rect);
}
LayoutUtils.moveBandsElemnts(crosst.getHeight(), band);
band.addElement(crosst);
if (djcross.getTopSpace() != 0){
LayoutUtils.moveBandsElemnts(djcross.getTopSpace(), band);
JRDesignRectangle rect = createBlankRectableCrosstab(djcross.getBottomSpace(), 0);
band.addElement(rect);
}
}
for (Iterator iterator = columnsGroup.getFooterCrosstabs().iterator(); iterator.hasNext();) {
DJCrosstab djcross = (DJCrosstab) iterator.next();
Dj2JrCrosstabBuilder djcb = new Dj2JrCrosstabBuilder();
JRDesignCrosstab crosst = djcb.createCrosstab(djcross,this);
JRDesignBand band = (JRDesignBand) jgroup.getGroupFooter();
int yOffset = LayoutUtils.findVerticalOffset(band);
if (djcross.getTopSpace() != 0){
// moveBandsElemnts(djcross.getTopSpace(), band);
JRDesignRectangle rect = createBlankRectableCrosstab(djcross.getBottomSpace(), yOffset);
rect.setPositionType(JRDesignElement.POSITION_TYPE_FIX_RELATIVE_TO_TOP);
band.addElement(rect);
crosst.setY(rect.getY() + rect.getHeight());
}
band.addElement(crosst);
if (djcross.getBottomSpace() != 0){
JRDesignRectangle rect = createBlankRectableCrosstab(djcross.getBottomSpace(), crosst.getY() + crosst.getHeight());
band.addElement(rect);
}
}