Examples of resetRGBColorStroke()


Examples of com.lowagie.text.pdf.PdfContentByte.resetRGBColorStroke()

    if ("ellipse".equals(text)) {
      PdfContentByte cb = writer.getDirectContent();
      cb.setRGBColorStroke(0xFF, 0x00, 0x00);
      cb.ellipse(rect.getLeft(), rect.getBottom() - 5f, rect.getRight(), rect.getTop());
      cb.stroke();
      cb.resetRGBColorStroke();
    }
    else if ("box".equals(text)) {
      PdfContentByte cb = writer.getDirectContentUnder();
      rect.setGrayFill(0.5f);
      cb.rectangle(rect);
View Full Code Here

Examples of com.lowagie.text.pdf.PdfContentByte.resetRGBColorStroke()

            cb.setRGBColorStrokeF(0f, 255f, 0f);
            cb.circle(150f, 500f, 100f);
            cb.stroke();
           
            cb.setLineWidth(5f);
            cb.resetRGBColorStroke();
            cb.circle(150f, 500f, 50f);
            cb.stroke();
           
            // example with colorfill
            cb.setRGBColorFillF(0f, 255f, 0f);
View Full Code Here

Examples of com.lowagie.text.pdf.PdfContentByte.resetRGBColorStroke()

    float y2 = height[height.length - 1];
    PdfContentByte canvas = canvases[LwgPdfPTable.LINECANVAS];
    canvas.setRGBColorStroke(0x00, 0x00, 0xFF);
    canvas.rectangle(x1, y1, x2 - x1, y2 - y1);
    canvas.stroke();
    canvas.resetRGBColorStroke();
  }

  /**
   * @see com.lowagie.text.pdf.PdfPCellEvent#cellLayout(com.lowagie.text.pdf.PdfPCell,
   *      com.lowagie.text.LwgRectangle, com.lowagie.text.pdf.PdfContentByte[])
View Full Code Here

Examples of com.lowagie.text.pdf.PdfContentByte.resetRGBColorStroke()

    float y2 = position.getBottom() + 2;
    PdfContentByte canvas = canvases[LwgPdfPTable.LINECANVAS];
    canvas.setRGBColorStroke(0xFF, 0x00, 0x00);
    canvas.rectangle(x1, y1, x2 - x1, y2 - y1);
    canvas.stroke();
    canvas.resetRGBColorStroke();
  }

  /**
   * Example originally written by Wendy Smoak to generate a Table with
   * 'floating boxes'. Adapted by Bruno Lowagie.
View Full Code Here

Examples of com.lowagie.text.pdf.PdfContentByte.resetRGBColorStroke()

            cb.setRGBColorStrokeF(0f, 255f, 0f);
            cb.circle(150f, 500f, 100f);
            cb.stroke();
           
            cb.setLineWidth(5f);
            cb.resetRGBColorStroke();
            cb.circle(150f, 500f, 50f);
            cb.stroke();
           
            // example with colorfill
            cb.setRGBColorFillF(0f, 255f, 0f);
View Full Code Here

Examples of com.lowagie.text.pdf.PdfContentByte.resetRGBColorStroke()

    if ("ellipse".equals(text)) {
      PdfContentByte cb = writer.getDirectContent();
      cb.setRGBColorStroke(0xFF, 0x00, 0x00);
      cb.ellipse(rect.getLeft(), rect.getBottom() - 5f, rect.getRight(), rect.getTop());
      cb.stroke();
      cb.resetRGBColorStroke();
    }
    else if ("box".equals(text)) {
      PdfContentByte cb = writer.getDirectContentUnder();
      rect.setGrayFill(0.5f);
      cb.rectangle(rect);
View Full Code Here

Examples of com.lowagie.text.pdf.PdfContentByte.resetRGBColorStroke()

    float y2 = height[height.length - 1];
    PdfContentByte canvas = canvases[PdfPTable.LINECANVAS];
    canvas.setRGBColorStroke(0x00, 0x00, 0xFF);
    canvas.rectangle(x1, y1, x2 - x1, y2 - y1);
    canvas.stroke();
    canvas.resetRGBColorStroke();
  }

  /**
   * @see com.lowagie.text.pdf.PdfPCellEvent#cellLayout(com.lowagie.text.pdf.PdfPCell,
   *      com.lowagie.text.Rectangle, com.lowagie.text.pdf.PdfContentByte[])
View Full Code Here

Examples of com.lowagie.text.pdf.PdfContentByte.resetRGBColorStroke()

    float y2 = position.getBottom() + 2;
    PdfContentByte canvas = canvases[PdfPTable.LINECANVAS];
    canvas.setRGBColorStroke(0xFF, 0x00, 0x00);
    canvas.rectangle(x1, y1, x2 - x1, y2 - y1);
    canvas.stroke();
    canvas.resetRGBColorStroke();
  }

  /**
   * Example originally written by Wendy Smoak to generate a Table with
   * 'floating boxes'. Adapted by Bruno Lowagie.
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.