Examples of moveTo()


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

  private Path toPath(MultiLineString multiLineString) {
    Path path = toPath((LineString) multiLineString.getGeometryN(0));
    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());
      }
    }
View Full Code Here

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

    Path path = toPath((Polygon) multiPolygon.getGeometryN(0));
    for (int g = 1; g < multiPolygon.getNumGeometries(); g++) {
      Polygon polygon = (Polygon) multiPolygon.getGeometryN(g);

      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();
View Full Code Here

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

      }
      path.close();

      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();
View Full Code Here

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

        path.setStrokeColor("#004499");
        path.lineRelativelyTo(100, 0);
        path.lineRelativelyTo(0, 100);
        path.lineRelativelyTo(-100, 0);
        path.lineRelativelyTo(0, -100);
        path.moveTo(140, 180);
        path.lineRelativelyTo(50, 0);
        path.lineRelativelyTo(0, 50);
        path.lineRelativelyTo(-50, 0);
        path.lineRelativelyTo(0, -50);
        container.add(path);
View Full Code Here

Examples of org.w3c.dom.svg.SVGPath.moveTo()

        // Lets build a path.
        final SVGPath path = svgElement.createSVGPath();

        final float x = Util.convertDefaultValue(153.0f, true);
        final float y = Util.convertDefaultValue(334.0f, true);
        path.moveTo(x, y);

        float[] defaultValues =
                { 153.0f, 334.0f, 151.0f, 334.0f, 151.0f, 334.0f };
        float[] convertedValues = Util.convertDefaultValue(defaultValues);
        path.curveTo(convertedValues[0], convertedValues[1],
View Full Code Here

Examples of railo.commons.io.res.Resource.moveTo()

      // it only
      mxbean.dumpHeap(path, live);
    }
    finally{
      if(tmp!=null && tmp.exists()){
        tmp.moveTo(res);
      }
    }
   
     }
}
View Full Code Here

Examples of rinde.sim.core.model.road.RoadModel.moveTo()

      // RoadModel, we cannot go to curr anymore.
      if (!inCargo && !rm.containsObject(curr.get())) {
        curr = Optional.absent();
      } else if (inCargo) {
        // if it is in cargo, go to its destination
        rm.moveTo(this, curr.get().getDestination(), time);
        if (rm.getPosition(this).equals(curr.get().getDestination())) {
          // deliver when we arrive
          pm.deliver(this, curr.get(), time);
        }
      } else {
View Full Code Here

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

            isSimple = false;

            Point2D.Double pt = new Point2D.Double();
            double tx = 0, ty = 0;
            SegmentPathBuilder builder = new SegmentPathBuilder();
      builder.moveTo(locs[0], 0);
            for (int i = 0, n = 0; i < fComponents.length; ++i, n += 2) {
                int vi = fComponentVisualOrder == null ? i : fComponentVisualOrder[i];
                tlc = fComponents[vi];
                AffineTransform at = tlc.getBaselineTransform();
                if (at != null && ((at.getType() & at.TYPE_TRANSLATION) != 0)) {
View Full Code Here

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

                tlc = fComponents[vi];
                AffineTransform at = tlc.getBaselineTransform();
                if (at != null && ((at.getType() & at.TYPE_TRANSLATION) != 0)) {
                    double dx = at.getTranslateX();
                    double dy = at.getTranslateY();
                    builder.moveTo(tx += dx, ty += dy);
                }
                pt.x = locs[n+2] - locs[n];
                pt.y = 0;
                if (at != null) {
                    at.deltaTransform(pt, pt);
View Full Code Here

Examples of tikzmodel.TikzFigure.moveTo()

  @Override
  public void mouseDragged(MouseEvent e) {
    if(activeFigure != null) {
      TikzFigure fig = activeFigure.getTikzFigure();
      Point2D p = convertToTeX(e);
      fig.moveTo(p.getX(), p.getY());
      activeFigure.updateShape();
      gui.repaint();
    }
  }
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.