protected void propagateExtraSpace( LayoutContext c, ContentLimitContainer parentContainer, ContentLimitContainer currentContainer, int extraTop, int extraBottom) { int start = currentContainer.getInitialPageNo(); int end = currentContainer.getLastPageNo(); int current = start; while (current <= end) { ContentLimit contentLimit = currentContainer.getContentLimit(current); if (current != start) { int top = contentLimit.getTop(); if (top != ContentLimit.UNDEFINED) { parentContainer.updateTop(c, top - extraTop); } } if (current != end) { int bottom = contentLimit.getBottom(); if (bottom != ContentLimit.UNDEFINED) { parentContainer.updateBottom(c, bottom + extraBottom); } } current++; } }
protected void propagateExtraSpace( LayoutContext c, ContentLimitContainer parentContainer, ContentLimitContainer currentContainer, int extraTop, int extraBottom) { int start = currentContainer.getInitialPageNo(); int end = currentContainer.getLastPageNo(); int current = start; while (current <= end) { ContentLimit contentLimit = currentContainer.getContentLimit(current); if (current != start) { int top = contentLimit.getTop(); if (top != ContentLimit.UNDEFINED) { parentContainer.updateTop(c, top - extraTop); } } if (current != end) { int bottom = contentLimit.getBottom(); if (bottom != ContentLimit.UNDEFINED) { parentContainer.updateBottom(c, bottom + extraBottom); } } current++; } }
private void updateFooterPosition(RenderingContext c, ContentLimit limit) { if (limit.getBottom() != ContentLimit.UNDEFINED || c.getPageNo() == _contentLimitContainer.getLastPageNo()) { if (getChildCount() > 0) { TableSectionBox section = (TableSectionBox)getChild(getChildCount()-1); if (section.isFooter()) { if (! section.isCapturedOriginalAbsY()) { section.setOriginalAbsY(section.getAbsY()); section.setCapturedOriginalAbsY(true); } int newAbsY; if (c.getPageNo() == _contentLimitContainer.getLastPageNo()) { newAbsY = section.getOriginalAbsY(); } else { newAbsY = limit.getBottom(); } int diff = newAbsY - section.getAbsY(); if (diff != 0) { section.setY(section.getY() + diff); section.calcCanvasLocation(); section.calcChildLocations(); section.calcPaintingInfo(c, false); } } } } }
private void updateFooterPosition(RenderingContext c, ContentLimit limit) { if (limit.getBottom() != ContentLimit.UNDEFINED || c.getPageNo() == _contentLimitContainer.getLastPageNo()) { if (getChildCount() > 0) { TableSectionBox section = (TableSectionBox)getChild(getChildCount()-1); if (section.isFooter()) { if (! section.isCapturedOriginalAbsY()) { section.setOriginalAbsY(section.getAbsY()); section.setCapturedOriginalAbsY(true); } int newAbsY; if (c.getPageNo() == _contentLimitContainer.getLastPageNo()) { newAbsY = section.getOriginalAbsY(); } else { newAbsY = limit.getBottom(); } int diff = newAbsY - section.getAbsY(); if (diff != 0) { section.setY(section.getY() + diff); section.calcCanvasLocation(); section.calcChildLocations(); section.calcPaintingInfo(c, false); } } } } }
if (c.getPageNo() == contentLimitContainer.getLastPageNo()) { bottom = result.y + result.height; } else {
if (c.getPageNo() == contentLimitContainer.getLastPageNo()) { bottom = result.y + result.height; } else {
if (c.getPageNo() == _contentLimitContainer.getLastPageNo()) { bottom = result.y + result.height; } else {
if (c.getPageNo() == _contentLimitContainer.getLastPageNo()) { bottom = result.y + result.height; } else {