Rectangle
LwgRectangle
233234235236237238239240241242243
backgr.fill(); } if (cell.hasBorders()) { Rectangle newRect = new Rectangle(left, bottom, right, top); // Clone non-position parameters except for the background color newRect.cloneNonPositionParameters(cell); newRect.setBackgroundColor(null); // Write the borders on the line canvas PdfContentByte lineCanvas = canvases[PdfPTable.LINECANVAS]; lineCanvas.rectangle(newRect); }
211212213214215216217218219220221
214215216217218219220221222223224
221222223224225226227228229230231
backgr.fill(); } if (cell.hasBorders()) { LwgRectangle newRect = new LwgRectangle(left, bottom, right, top); // Clone non-position parameters except for the background color newRect.cloneNonPositionParameters(cell); newRect.setBackgroundColor(null); // Write the borders on the line canvas PdfContentByte lineCanvas = canvases[LwgPdfPTable.LINECANVAS]; lineCanvas.rectangle(newRect); }
845846847848849850851852853854855
* @return a <CODE>LwgRectangle</CODE> */ public LwgRectangle rectangle(float top, float bottom) { LwgRectangle tmp = new LwgRectangle(getLeft(), getBottom(), getRight(), getTop()); tmp.cloneNonPositionParameters(this); if (getTop() > top) { tmp.setTop(top); tmp.setBorder(_border - (_border & TOP)); } if (getBottom() < bottom) {
844845846847848849850851852853854
* @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) {
238239240241242243244245246247248
if (cell.isUseVariableBorders()) { Rectangle borderRect = new Rectangle(cell.getLeft() + xPos, cell .getTop() - maxHeight + yPos, cell.getRight() + xPos, cell.getTop() + yPos); borderRect.cloneNonPositionParameters(cell); borderRect.setBackgroundColor(null); lines.rectangle(borderRect); } else { // the width is set to the width of the element if (cell.getBorderWidth() != Rectangle.UNDEFINED) {