Examples of lineTo()


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

        paniponidash, 0.0f);
    gr.setColor(toColor(fsi.getStrokeColor(), fsi.getStrokeOpacity()));
    gr.setStroke(stroke);
    Path2D s = new Path2D.Double(Path2D.WIND_EVEN_ODD, 3);
    s.moveTo(0, 0);
    s.lineTo(twothirds, onethird);
    s.lineTo(onethird, twothirds);
    s.lineTo(max, max);
    gr.draw(s);
  }
View Full Code Here

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

    gr.setColor(toColor(fsi.getStrokeColor(), fsi.getStrokeOpacity()));
    gr.setStroke(stroke);
    Path2D s = new Path2D.Double(Path2D.WIND_EVEN_ODD, 3);
    s.moveTo(0, 0);
    s.lineTo(twothirds, onethird);
    s.lineTo(onethird, twothirds);
    s.lineTo(max, max);
    gr.draw(s);
  }

  private void drawPoint(Graphics2D gr, FeatureStyleInfo fsi, int iconSize) throws AdvancedviewsException {
View Full Code Here

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

    gr.setStroke(stroke);
    Path2D s = new Path2D.Double(Path2D.WIND_EVEN_ODD, 3);
    s.moveTo(0, 0);
    s.lineTo(twothirds, onethird);
    s.lineTo(onethird, twothirds);
    s.lineTo(max, max);
    gr.draw(s);
  }

  private void drawPoint(Graphics2D gr, FeatureStyleInfo fsi, int iconSize) throws AdvancedviewsException {
    int x = 0, y = 0, w = 0, h = 0, max = iconSize - 1;
View Full Code Here

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

        int h = getHeight();
        int w = getWidth();
        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);
View Full Code Here

Examples of nodebox.graphics.Path.lineto()

            ctx.line(x, y, x + handleLength, y);
            ctx.line(x, y, x, y + handleLength);

            // Vertical arrow
            p.moveto(x, y + handleLength + 3);
            p.lineto(x - 5, y + handleLength - 3);
            p.lineto(x + 5, y + handleLength - 3);

            // Horizontal arrow
            p.moveto(x + handleLength + 3, y);
            p.lineto(x + handleLength - 3, y - 5);
View Full Code Here

Examples of org.eclipse.swt.graphics.Path.lineTo()

            switch (type) {
                case (PathIterator.SEG_MOVETO):
                    path.moveTo(coords[0], coords[1]);
                    break;
                case (PathIterator.SEG_LINETO):
                    path.lineTo(coords[0], coords[1]);
                    break;
                case (PathIterator.SEG_QUADTO):
                    path.quadTo(coords[0], coords[1], coords[2], coords[3]);
                    break;
                case (PathIterator.SEG_CUBICTO):
View Full Code Here

Examples of org.newdawn.slick.geom.Path.lineTo()

      try {
        String nextToken = tokens.nextToken();
        if (nextToken.equals("L")) {
          float x = Float.parseFloat(tokens.nextToken());
          float y = Float.parseFloat(tokens.nextToken());
          path.lineTo(x,y);
          continue;
        }
        if (nextToken.equals("z")) {
          path.close();
          continue;
View Full Code Here

Examples of org.sgx.yuigwt.yui.graphic.Shape.lineTo()

    //draw a path
    Shape diamond1 = g1.addShape(ShapeConfig.createPath().
      fill(Fill.create().color("blue").opacity(0.5))
    );
    diamond1.moveTo(60, 60);
    diamond1.lineTo(80, 40);
    diamond1.lineTo(100, 60);
    diamond1.lineTo(80, 80);
    diamond1.lineTo(60, 60);
    diamond1.end();
   
View Full Code Here

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

                    PolygonShape poly = (PolygonShape)shape;
                    Vec2[] vertices = poly.getVertices();
                    context.beginPath();
                    context.moveTo(vertices[0].x, vertices[0].y);
                    for (int i = 1; i < poly.getVertexCount(); ++i) {
                        context.lineTo(vertices[i].x, vertices[i].y);
                    }
                    context.closePath();
                    context.stroke();
                }
            }
View Full Code Here

Examples of org.vaadin.gwtgraphics.client.shape.Path.lineTo()

  private Path toPath(LineString lineString) {
    Path path = new Path((int) lineString.getCoordinate().getX(), (int) lineString.getCoordinate().getY());
    for (int i = 1; i < lineString.getNumPoints(); i++) {
      Coordinate coordinate = lineString.getCoordinateN(i);
      path.lineTo((int) coordinate.getX(), (int) coordinate.getY());
    }
    return path;
  }

  private Path toPath(LinearRing linearRing) {
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.