public void assignPagePaintingPositions(CssContext cssCtx, int additionalClearance) { List pages = getPages(); int paintingTop = additionalClearance; for (Iterator i = pages.iterator(); i.hasNext(); ) { PageBox page = (PageBox)i.next(); page.setPaintingTop(paintingTop); page.setPaintingBottom(paintingTop + page.getHeight(cssCtx)); paintingTop = page.getPaintingBottom() + additionalClearance; }
public void assignPagePaintingPositions(CssContext cssCtx, short mode) { assignPagePaintingPositions(cssCtx, mode, 0);
    public void assignPagePaintingPositions(CssContext cssCtx, int additionalClearance) {        List pages = getPages();        int paintingTop = additionalClearance;        for (Iterator i = pages.iterator(); i.hasNext(); ) {            PageBox page = (PageBox)i.next();            page.setPaintingTop(paintingTop);            page.setPaintingBottom(paintingTop + page.getHeight(cssCtx));            paintingTop = page.getPaintingBottom() + additionalClearance;        }    }