Examples of rectangle()


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

            PdfTemplate t = cb.createTemplate(500f, 500f);
            // Stroke a rectangle with CMYK alternate
            t.setColorStroke(new SpotColor(spc_cmyk, .5f));
            t.setLineWidth(10f);
            // draw a rectangle
            t.rectangle(100, 10, 100, 100);
            // add the diagonal
            t.moveTo(100, 10);
            t.lineTo(200, 100);
            // stroke the lines
            t.stroke();
View Full Code Here

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

            // step 4:
            BaseFont bf = BaseFont.createFont(BaseFont.HELVETICA, BaseFont.CP1252, BaseFont.NOT_EMBEDDED);
            PdfContentByte cb = writer.getDirectContent();
            PdfTemplate template = cb.createTemplate(500, 200);
            template.setLineWidth(2f);
            template.rectangle(2.5f, 2.5f, 495f, 195f);
            template.stroke();
            template.setLineWidth(12f);
            template.arc(40f - (float) Math.sqrt(12800), 120f + (float) Math.sqrt(12800), 200f - (float) Math.sqrt(12800), -40f + (float) Math.sqrt(12800), 281.25f, 33.75f);
            template.arc(40f, 120f, 200f, -40f, 90f, 45f);
            template.stroke();
View Full Code Here

Examples of gnu.x11.event.ConfigureNotify.rectangle()

  X11Client client = (X11Client) X11Client.intern(this, event
    .window_id());
  ConfigureNotify eventFixed = new ConfigureNotifyBugFixed(display,
    event.data);
  int aboveSiblingId = eventFixed.above_sibling_id();
  client.set_geometry_cache(eventFixed.rectangle());
  if (client.attributes == null) {
            client.attributes = client.attributes ();
  }
  if (client.attributes.override_redirect()) {
      // for override_redirect window (popup window) we don't get ConfigureRequest
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.