Examples of closePath()


Examples of java.awt.geom.Path2D.closePath()

    GraphicsState state
    )
  {
    Path2D pathObject = (Path2D)state.getScanner().getRenderObject();
    if(pathObject != null)
    {pathObject.closePath();}
  }
  // </public>
  // </interface>
  // </dynamic>
  // </class>
View Full Code Here

Examples of java.awt.geom.Path2D.closePath()

    {
      Graphics2D context = scanner.getRenderContext();

      if(closed)
      {
        pathObject.closePath();
      }
      if(filled)
      {
        context.setPaint(
          state.getFillColorSpace().getPaint(state.getFillColor())
View Full Code Here

Examples of java.awt.geom.Path2D.closePath()

        height = getHeight();
      pathObject.moveTo(x,y);
      pathObject.lineTo(x + width, y);
      pathObject.lineTo(x + width, y + height);
      pathObject.lineTo(x, y + height);
      pathObject.closePath();
    }
  }

  public void setHeight(
    float value
View Full Code Here

Examples of java.awt.geom.Path2D.Float.closePath()

        float a = (float) Math.hypot(h, w);
        Float path = new java.awt.geom.Path2D.Float();
        path.moveTo(0, 0);
        path.lineTo(w, 0);
        path.lineTo(0, h);
        path.closePath();
        path.moveTo(W, W);
        path.lineTo(W, h - W * (a + h) / w);
        path.lineTo(w - W * (a + w) / h, W);
        path.closePath();
        return path;
View Full Code Here

Examples of javafx.scene.canvas.GraphicsContext.closePath()

        double offsetY = 0;

        // RULB
        CTX.beginPath();
        CTX.rect(0, 0, WIDTH * 0.5, HEIGHT * 0.5);
        CTX.closePath();

        CTX.setFill(new LinearGradient(0, offsetY * HEIGHT,
                                       0, 0.5 * HEIGHT + offsetY * HEIGHT,
                                       false, CycleMethod.NO_CYCLE,
                                       new Stop(0, Color.rgb(35, 35, 35)),
View Full Code Here

Examples of org.mt4j.util.xml.svg.CustomPathHandler.closePath()

        logger.info("drawGlyph case not catered for!!");
        break;
      }
    }

    pathHandler.closePath();


    Vertex[] p = pathHandler.getPathPointsArray();

    /*
 
View Full Code Here

Examples of org.teavm.dom.canvas.CanvasRenderingContext2D.closePath()

                Shape shape = fixture.getShape();
                if (shape.getType() == ShapeType.CIRCLE) {
                    CircleShape circle = (CircleShape)shape;
                    context.beginPath();
                    context.arc(circle.m_p.x, circle.m_p.y, circle.getRadius(), 0, Math.PI * 2, true);
                    context.closePath();
                    context.stroke();
                } else if (shape.getType() == ShapeType.POLYGON) {
                    PolygonShape poly = (PolygonShape)shape;
                    Vec2[] vertices = poly.getVertices();
                    context.beginPath();
View Full Code Here

Examples of org.zkoss.canvas.Path.closePath()

    Path p = new Path().moveTo(r, 0);
    for(int i=1; i<n+1; i++){
      double arg = Math.PI * (1.5 + (2.0*i)/n);
      p.lineTo(r + r * Math.cos(arg), r + r * Math.sin(arg));
    }
    p.closePath();
    return p;
  }
 
  // TODO: add nStar given by two radius
 
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.