Examples of rectangle()


Examples of com.itextpdf.text.pdf.PdfContentByte.rectangle()

            if (traces > 0)
                cb.stroke();
            break;
        default: // drawType==CLIP
            if (traces == 0)
                cb.rectangle(0, 0, 0, 0);
            if (points.getWindingRule() == PathIterator.WIND_EVEN_ODD)
                cb.eoClip();
            else
                cb.clip();
            cb.newPath();
View Full Code Here

Examples of com.jagpdf.Canvas.rectangle()

        String fspec = "enc=utf-8; size=12; file=" + res_dir + "/fonts/DejaVuSans.ttf";
        Font font_ttf = doc.font_load(fspec);
        canvas.text_font(font_ttf);
        canvas.text(50, 750, horse);
        // control rect
        canvas.rectangle(50, 200, 400, 450);
        canvas.path_paint("s");
        // justification
        justified_text(font_ttf, canvas, 600);
        justified_text(font_14, canvas, 550);
View Full Code Here

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

      tablerec.setBorder(table.getBorder());
      tablerec.setBorderWidth(table.getBorderWidth());
      tablerec.setBorderColor(table.getBorderColor());
      tablerec.setBackgroundColor(table.getBackgroundColor());
      PdfContentByte under = writer.getDirectContentUnder();
      under.rectangle(tablerec.rectangle(top(), indentBottom()));
      under.add(ctx.cellGraphics);
      // bugfix by Gerald Fehringer: now again add the border for the table
      // since it might have been covered by cell backgrounds
      tablerec.setBackgroundColor(null);
      tablerec = tablerec.rectangle(top(), indentBottom());
View Full Code Here

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

      under.rectangle(tablerec.rectangle(top(), indentBottom()));
      under.add(ctx.cellGraphics);
      // bugfix by Gerald Fehringer: now again add the border for the table
      // since it might have been covered by cell backgrounds
      tablerec.setBackgroundColor(null);
      tablerec = tablerec.rectangle(top(), indentBottom());
      tablerec.setBorder(table.getBorder());
      under.rectangle(tablerec);
      // end bugfix

            ctx.cellGraphics = new PdfContentByte(null);
View Full Code Here

Examples of com.lowagie.text.Rectangle.rectangle()

      tablerec.setBorder(table.getBorder());
      tablerec.setBorderWidth(table.getBorderWidth());
      tablerec.setBorderColor(table.getBorderColor());
      tablerec.setBackgroundColor(table.getBackgroundColor());
      PdfContentByte under = writer.getDirectContentUnder();
      under.rectangle(tablerec.rectangle(top(), indentBottom()));
      under.add(ctx.cellGraphics);
      // bugfix by Gerald Fehringer: now again add the border for the table
      // since it might have been covered by cell backgrounds
      tablerec.setBackgroundColor(null);
      tablerec = tablerec.rectangle(top(), indentBottom());
View Full Code Here

Examples of com.lowagie.text.Rectangle.rectangle()

      under.rectangle(tablerec.rectangle(top(), indentBottom()));
      under.add(ctx.cellGraphics);
      // bugfix by Gerald Fehringer: now again add the border for the table
      // since it might have been covered by cell backgrounds
      tablerec.setBackgroundColor(null);
      tablerec = tablerec.rectangle(top(), indentBottom());
      tablerec.setBorder(table.getBorder());
      under.rectangle(tablerec);
      // end bugfix

            ctx.cellGraphics = new PdfContentByte(null);
View Full Code Here

Examples of com.lowagie.text.pdf.PdfAppearance.rectangle()

            PdfAppearance tpOn = cb.createAppearance(20, 20);
            tpOff.rectangle(1, 1, 18, 18);
            tpOff.stroke();
           
            tpOn.setRGBColorFill(255, 128, 128);
            tpOn.rectangle(1, 1, 18, 18);
            tpOn.fillStroke();
            tpOn.moveTo(1, 1);
            tpOn.lineTo(19, 19);
            tpOn.moveTo(1, 19);
            tpOn.lineTo(19, 1);
View Full Code Here

Examples of com.lowagie.text.pdf.PdfAppearance.rectangle()

            PdfFormField pushbutton = PdfFormField.createPushButton(writer);
            PdfContentByte cb = writer.getDirectContent();
            cb.moveTo(0, 0);
            PdfAppearance normal = cb.createAppearance(100, 50);
            normal.setColorFill(Color.GRAY);
            normal.rectangle(5, 5, 90, 40);
            normal.fill();
            PdfAppearance rollover = cb.createAppearance(100, 50);
            rollover.setColorFill(Color.RED);
            rollover.rectangle(5, 5, 90, 40);
            rollover.fill();
View Full Code Here

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

            if (traces > 0)
                cb.stroke();
            break;
        default: //drawType==CLIP
            if (traces == 0)
                cb.rectangle(0, 0, 0, 0);
            if (points.getWindingRule() == PathIterator.WIND_EVEN_ODD)
                cb.eoClip();
            else
                cb.clip();
            cb.newPath();
View Full Code Here

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

        }
        else {
          cb.addTemplate(page, factor, 0, 0, factor, x1 + dx, y2[p] + dy);
        }
        cb.setRGBColorStroke(0xC0, 0xC0, 0xC0);
        cb.rectangle(x3 - 5f, y2[p] - 5f, x4 - x3 + 10f, y1[p] - y2[p] + 10f);
        for (float l = y1[p] - 19; l > y2[p]; l -= 16) {
          cb.moveTo(x3, l);
          cb.lineTo(x4, l);
        }
        cb.rectangle(x1 + dx, y2[p] + dy, rect.getWidth() * factor, rect.getHeight() * factor);
 
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.