Examples of lineTo()


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

  private Path toPath(LinearRing linearRing) {
    Path path = new Path((int) linearRing.getCoordinate().getX(), (int) linearRing.getCoordinate().getY());
    for (int i = 1; i < linearRing.getNumPoints() - 1; i++) {
      Coordinate coordinate = linearRing.getCoordinateN(i);
      path.lineTo((int) coordinate.getX(), (int) coordinate.getY());
    }
    path.close();
    return path;
  }
View Full Code Here

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

    for (int i = 0; i < polygon.getNumInteriorRing(); i++) {
      LinearRing interiorRing = polygon.getInteriorRingN(i);
      path.moveTo((int) interiorRing.getCoordinate().getX(), (int) interiorRing.getCoordinate().getY());
      for (int j = 1; j < interiorRing.getNumPoints() - 1; j++) {
        Coordinate coordinate = interiorRing.getCoordinateN(j);
        path.lineTo((int) coordinate.getX(), (int) coordinate.getY());
      }
      path.close();
    }
    return path;
  }
View Full Code Here

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

    for (int i = 1; i < multiLineString.getNumGeometries(); i++) {
      LineString lineString = (LineString) multiLineString.getGeometryN(i);
      path.moveTo((int) lineString.getCoordinate().getX(), (int) lineString.getCoordinate().getY());
      for (int j = 1; j < lineString.getNumPoints(); j++) {
        Coordinate coordinate = lineString.getCoordinateN(j);
        path.lineTo((int) coordinate.getX(), (int) coordinate.getY());
      }
    }
    return path;
  }
View Full Code Here

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

      LinearRing exteriorRing = polygon.getExteriorRing();
      path.moveTo((int) exteriorRing.getCoordinate().getX(), (int) exteriorRing.getCoordinate().getY());
      for (int i = 1; i < exteriorRing.getNumPoints() - 1; i++) {
        Coordinate coordinate = exteriorRing.getCoordinateN(i);
        path.lineTo((int) coordinate.getX(), (int) coordinate.getY());
      }
      path.close();

      for (int i = 0; i < polygon.getNumInteriorRing(); i++) {
        LinearRing interiorRing = polygon.getInteriorRingN(i);
View Full Code Here

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

      for (int i = 0; i < polygon.getNumInteriorRing(); i++) {
        LinearRing interiorRing = polygon.getInteriorRingN(i);
        path.moveTo((int) interiorRing.getCoordinate().getX(), (int) interiorRing.getCoordinate().getY());
        for (int j = 1; j < interiorRing.getNumPoints() - 1; j++) {
          Coordinate coordinate = interiorRing.getCoordinateN(j);
          path.lineTo((int) coordinate.getX(), (int) coordinate.getY());
        }
        path.close();
      }
    }
    return path;
View Full Code Here

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

 
  public static Path nGon(double r, int n){
    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;
  }
 
View Full Code Here

Examples of sun.font.LayoutPathImpl.SegmentPathBuilder.lineTo()

                pt.x = locs[n+2] - locs[n];
                pt.y = 0;
                if (at != null) {
                    at.deltaTransform(pt, pt);
                }
                builder.lineTo(tx += pt.x, ty += pt.y);
            }
            lp = builder.complete();

            if (lp == null) { // empty path
                int vi = fComponentVisualOrder == null ? 0 : fComponentVisualOrder[0];
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.