Package com.lowagie.text

Examples of com.lowagie.text.LwgRectangle.cloneNonPositionParameters()


        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);
      }
View Full Code Here


     * @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) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.