Examples of ellipse()


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

   */
  public void onGenericTag(PdfWriter writer, LwgDocument document, LwgRectangle rect, String text) {
    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();
View Full Code Here

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

   */
  public void onGenericTag(PdfWriter writer, Document document, Rectangle rect, String text) {
    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();
View Full Code Here

Examples of nodebox.graphics.Path.ellipse()

        oa = (Double) getValue(angleName);
        double[] xy = Geometry.coordinates(cx, cy, handleLength, oa);
        float x = (float) xy[0];
        float y = (float) xy[1];
        Path p = new Path();
        p.ellipse(cx, cy, handleLength * 2, handleLength * 2);
        Rect handleRect = createHitRectangle(x, y);
        float a = (float) Geometry.angle(cx, cy, pt.x, pt.y);
        xy = Geometry.coordinates(cx, cy, handleLength, a);
        float x1 = (float) xy[0];
        float y1 = (float) xy[1];
View Full Code Here

Examples of processing.core.PGraphics.ellipse()

    pg.rotate((float )aileronAngle);
    pg.strokeWeight(3);
    pg.line(-wingLength - indicatorOversize, 0, wingLength + indicatorOversize, 0);
    pg.line(0, 0, 0, - (rudderHeight + indicatorOversize));
    pg.strokeWeight(1);
    pg.ellipse(0, 0, fuselageRadius, fuselageRadius);
    pg.popMatrix();

    // draw the airplane (roll input)
    pg.fill(COLOR_PLANE);
    pg.stroke(COLOR_PLANE);
View Full Code Here

Examples of processing.core.PGraphics.ellipse()

    pg.rotate((float )rollAngle);
    pg.strokeWeight(3);
    pg.line(-wingLength, 0, wingLength, 0);
    pg.line(0, 0, 0, - rudderHeight);
    pg.strokeWeight(1);
    pg.ellipse(0, 0, fuselageRadius, fuselageRadius);
    pg.popMatrix();

    // do the 'clipping' (copy the offline graphics port into the applet's graphics port)
    pg.endDraw();
    applet.image(pg, content.getLeft(), content.getTop());
View Full Code Here

Examples of processing.core.PGraphics.ellipse()

      pg.image(tileImage, 0, 0);
    } else {
      pg.background(250);
      pg.stroke(0);
      pg.rect(0, 0, pg.width, pg.height);
      pg.ellipse(pg.width / 2, pg.height / 2, pg.width - 5, pg.height - 5);
    }

    if (showTileCoordinates) {
      pg.fill(0);
      String infoText = (int) coord.column + ", " + (int) coord.row + "\nz: " + (int) coord.zoom;
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.