Examples of moveTo()


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

    Stroke stroke = new BasicStroke(fsi.getStrokeWidth(), BasicStroke.CAP_SQUARE, BasicStroke.JOIN_MITER, 1.0f,
        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.moveTo()

  {
    Path2D pathObject = (Path2D)state.getScanner().getRenderObject();
    if(pathObject != null)
    {
      Point2D point = getPoint();
      pathObject.moveTo(point.getX(),point.getY());
    }
  }

  /**
    Sets the current point.
View Full Code Here

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

    public Shape buildShape() {
        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);
View Full Code Here

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

        CTX.rotate(-90 + ROTATION_OFFSET);
        CTX.translate(-CENTER.getX(), -CENTER.getY());
        for (int i = 0, size = STOPS.length - 1; i < size; i++) {
            for (double angle = STOPS[i].getOffset() * 360; Double.compare(angle,STOPS[i + 1].getOffset() * 360) <= 0; angle += 0.1) {
                CTX.beginPath();
                CTX.moveTo(CENTER.getX() - RADIUS, CENTER.getY() - RADIUS);
                CTX.setFill(COLOR_LOOKUP.getColorAt(angle / 360));
                if (RADIUS > 0) {
                    CTX.fillArc(CENTER.getX() - RADIUS, CENTER.getY() - RADIUS, 2 * RADIUS, 2 * RADIUS, angle, ANGLE_STEP, ArcType.ROUND);
                } else {
                    CTX.moveTo(CENTER.getX() - RADIUS, CENTER.getY() - RADIUS);
View Full Code Here

Examples of net.alteiar.beans.map.elements.RectangleElement.moveTo()

    assertEquals("position should be " + position, position,
        rectangle.getPosition());

    Point tempPos = new Point(12, 12);
    rectangle.moveTo(tempPos);
    assertEquals("position should be " + tempPos, tempPos,
        rectangle.getPosition());

    rectangle.undoMove();
    assertEquals("position should be " + position, position,
View Full Code Here

Examples of net.rim.device.api.lbs.MapField.moveTo()

            add(new RichTextField("Average Speed(m/s): "
                    + Float.toString(avgSpeed), Field.NON_FOCUSABLE));

            // Display the WayPoint on a map
            final MapField map = new MapField();
            map.moveTo(new Coordinates(point._latitude, point._longitude,
                    Float.NaN));
            add(map);
        }
    }
}
View Full Code Here

Examples of nodebox.graphics.Path.moveto()

            // Horizontal and vertical direction lines.
            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);
View Full Code Here

Examples of org.akubraproject.Blob.moveTo()

    // check if move is supported
    if (!isMoveToSupp) {
      shouldFail(new ConAction() {
        public void run(BlobStoreConnection con) throws Exception {
          Blob b = getBlob(con, createId("blobMoveTo1"), false);
          b.moveTo(b.getId(), null);
        }
      }, UnsupportedOperationException.class, null);

      return;
    }
View Full Code Here

Examples of org.apache.isis.core.tck.dom.refs.BidirWithSetChildEntity.moveTo()

        parent1 = repo.list().get(0);
        parent2 = repo.list().get(0);
        Set<BidirWithSetChildEntity> children = parent1.getChildren();
        assertThat(children.size(), is(3));
        BidirWithSetChildEntity child1 = parent1.getChildren().iterator().next();
        child1.moveTo(parent2);
        iswf.commitTran();

        iswf.bounceSystem();
       
        iswf.beginTran();
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.state.NodeBuilder.moveTo()

    @Test
    public void moveToExisting() throws CommitFailedException {
        NodeBuilder test = store.getRoot().builder().getChildNode("test");
        NodeBuilder x = test.getChildNode("x");
        assertFalse(x.moveTo(test, "y"));
        assertTrue(x.exists());
        assertTrue(test.hasChildNode("x"));
        assertTrue(test.hasChildNode("y"));
    }
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.