/** * Gets a Rectangle that is altered to fit on the page. * * @param top the top position * @param bottom the bottom position * @return a <CODE>Rectangle</CODE> */ public Rectangle rectangle(float top, float bottom) { Rectangle tmp = new Rectangle(getLeft(), getBottom(), getRight(), getTop()); tmp.cloneNonPositionParameters(this); if (getTop() > top) { tmp.setTop(top); tmp.setBorder(border - (border & TOP)); } if (getBottom() < bottom) { tmp.setBottom(bottom); tmp.setBorder(border - (border & BOTTOM)); } return tmp; }
/** * Gets a Rectangle that is altered to fit on the page. * * @param top the top position * @param bottom the bottom position * @return a <CODE>Rectangle</CODE> */ public Rectangle rectangle(float top, float bottom) { Rectangle tmp = new Rectangle(getLeft(), getBottom(), getRight(), getTop()); tmp.cloneNonPositionParameters(this); if (getTop() > top) { tmp.setTop(top); tmp.setBorder(border - (border & TOP)); } if (getBottom() < bottom) { tmp.setBottom(bottom); tmp.setBorder(border - (border & BOTTOM)); } return tmp; }
/** * Gets a Rectangle that is altered to fit on the page. * * @param top the top position * @param bottom the bottom position * @return a <CODE>Rectangle</CODE> */ public Rectangle rectangle(float top, float bottom) { Rectangle tmp = new Rectangle(getLeft(), getBottom(), getRight(), getTop()); tmp.cloneNonPositionParameters(this); if (getTop() > top) { tmp.setTop(top); tmp.setBorder(border - (border & TOP)); } if (getBottom() < bottom) { tmp.setBottom(bottom); tmp.setBorder(border - (border & BOTTOM)); } return tmp; }
cell = (PdfCell) iterator.next(); if (!cell.isHeader()) { if (cell.getBottom() < indentBottom()) return; float indentBottom = Math.max(cell.getBottom(), indentBottom()); Rectangle tableRect = ctx.table.rectangle(ctx.pagetop, indentBottom()); indentBottom = Math.max(tableRect.getBottom(), indentBottom);
cell = (PdfCell) iterator.next(); if (!cell.isHeader()) { if (cell.getBottom() < indentBottom()) return; float indentBottom = Math.max(cell.getBottom(), indentBottom()); Rectangle tableRect = ctx.table.rectangle(ctx.pagetop, indentBottom()); indentBottom = Math.max(tableRect.getBottom(), indentBottom);
cell = (PdfCell) iterator.next(); if (!cell.isHeader()) { if (cell.getBottom() < indentBottom()) return; float indentBottom = Math.max(cell.getBottom(), indentBottom()); Rectangle tableRect = ctx.table.rectangle(ctx.pagetop, indentBottom()); indentBottom = Math.max(tableRect.getBottom(), indentBottom);
cell.setBottom(indentTop() - oldTop + cell.getBottom(0)); ctx.pagetop = cell.getBottom(); cell = (PdfCell) cells.get(i); if (cell.getTop(-table.cellspacing()) > ctx.lostTableBottom) { float newBottom = ctx.pagetop - difference + cell.getBottom(); float neededHeight = cell.remainingHeight(); if (newBottom > ctx.pagetop - neededHeight) { for (i = 0; i < size; i++) { cell = (PdfCell) cells.get(i); float newBottom = ctx.pagetop - difference + cell.getBottom(); float newTop = ctx.pagetop - difference + cell.getTop(-table.cellspacing()); if (newTop > indentTop() - currentHeight) {
cell.setBottom(indentTop() - oldTop + cell.getBottom(0)); ctx.pagetop = cell.getBottom(); cell = (PdfCell) cells.get(i); if (cell.getTop(-table.cellspacing()) > ctx.lostTableBottom) { float newBottom = ctx.pagetop - difference + cell.getBottom(); float neededHeight = cell.remainingHeight(); if (newBottom > ctx.pagetop - neededHeight) { for (i = 0; i < size; i++) { cell = (PdfCell) cells.get(i); float newBottom = ctx.pagetop - difference + cell.getBottom(); float newTop = ctx.pagetop - difference + cell.getTop(-table.cellspacing()); if (newTop > indentTop() - currentHeight) {
cell.setBottom(indentTop() - oldTop + cell.getBottom(0)); ctx.pagetop = cell.getBottom(); cell = (PdfCell) cells.get(i); if (cell.getTop(-table.cellspacing()) > ctx.lostTableBottom) { float newBottom = ctx.pagetop - difference + cell.getBottom(); float neededHeight = cell.remainingHeight(); if (newBottom > ctx.pagetop - neededHeight) { for (i = 0; i < size; i++) { cell = (PdfCell) cells.get(i); float newBottom = ctx.pagetop - difference + cell.getBottom(); float newTop = ctx.pagetop - difference + cell.getTop(-table.cellspacing()); if (newTop > indentTop() - currentHeight) {