Examples of CurveTo


Examples of com.sencha.gxt.chart.client.draw.path.CurveTo

            MoveTo move1 = (MoveTo) start.getCommand(i);
            MoveTo move2 = (MoveTo) delta.getCommand(i);
            move1.setX(move1.getX() + (move2.getX() * progress));
            move1.setY(move1.getY() + (move2.getY() * progress));
          } else if (start.getCommand(i) instanceof CurveTo) {
            CurveTo curve1 = (CurveTo) start.getCommand(i);
            CurveTo curve2 = (CurveTo) delta.getCommand(i);
            curve1.setX(curve1.getX() + (curve2.getX() * progress));
            curve1.setY(curve1.getY() + (curve2.getY() * progress));
            curve1.setX1(curve1.getX1() + (curve2.getX1() * progress));
            curve1.setY1(curve1.getY1() + (curve2.getY1() * progress));
            curve1.setX2(curve1.getX2() + (curve2.getX2() * progress));
            curve1.setY2(curve1.getY2() + (curve2.getY2() * progress));
          }
        }
        origin.setCommands(start.getCommands());
        origin.redraw();
      }
View Full Code Here

Examples of com.sencha.gxt.chart.client.draw.path.CurveTo

    }

    for (PathCommand command : sprite.getCommands()) {
      if (command instanceof CurveTo) {
        CurveTo curveto = (CurveTo) command;
        path.append("c").append(Math.round(curveto.getX1() * zoom)).append(",").append(
            Math.round(curveto.getY1() * zoom)).append(",").append(Math.round(curveto.getX2() * zoom)).append(",").append(
            Math.round(curveto.getY2() * zoom)).append(",").append(Math.round(curveto.getX() * zoom)).append(",").append(
            Math.round(curveto.getY() * zoom)).append(" ");
      } else if (command instanceof MoveTo) {
        MoveTo moveto = (MoveTo) command;
        path.append("m").append(Math.round(moveto.getX() * zoom)).append(",").append(Math.round(moveto.getY() * zoom)).append(
            " ");
      } else if (command instanceof LineTo) {
View Full Code Here

Examples of org.apache.pdfbox.contentstream.operator.graphics.CurveTo

        addOperator(new FillNonZeroAndStrokePath());
        addOperator(new CloseFillEvenOddAndStrokePath());
        addOperator(new FillEvenOddAndStrokePath());
        addOperator(new BeginInlineImage());
        addOperator(new BeginText());
        addOperator(new CurveTo());
        addOperator(new Concatenate());
        addOperator(new SetStrokingColorSpace());
        addOperator(new SetNonStrokingColorSpace());
        addOperator(new SetLineDashPattern());
        addOperator(new DrawObject()); // special graphics version
View Full Code Here

Examples of org.vaadin.gwtgraphics.client.shape.path.CurveTo

   * @param y2
   * @param x
   * @param y
   */
  public void curveTo(int x1, int y1, int x2, int y2, int x, int y) {
    steps.add(new CurveTo(false, x1, y1, x2, y2, x, y));
    drawPath();
  }
View Full Code Here

Examples of org.vaadin.gwtgraphics.client.shape.path.CurveTo

   * @param y2
   * @param x
   * @param y
   */
  public void curveRelativelyTo(int x1, int y1, int x2, int y2, int x, int y) {
    steps.add(new CurveTo(true, x1, y1, x2, y2, x, y));
    drawPath();
  }
View Full Code Here

Examples of org.vaadin.gwtgraphics.client.shape.path.CurveTo

      } else if (step.getClass() == LineTo.class) {
        LineTo lineTo = (LineTo) step;
        path.append(lineTo.isRelativeCoords() ? " l" : " L").append(
            lineTo.getX()).append(" ").append(lineTo.getY());
      } else if (step.getClass() == CurveTo.class) {
        CurveTo curve = (CurveTo) step;
        path.append(curve.isRelativeCoords() ? " c" : " C");
        path.append(curve.getX1()).append(" ").append(curve.getY1());
        path.append(" ").append(curve.getX2()).append(" ").append(
            curve.getY2());
        path.append(" ").append(curve.getX()).append(" ").append(
            curve.getY());
      } else if (step.getClass() == Arc.class) {
        Arc arc = (Arc) step;
        path.append(arc.isRelativeCoords() ? " a" : " A");
        path.append(arc.getRx()).append(",").append(arc.getRy());
        path.append(" ").append(arc.getxAxisRotation());
View Full Code Here

Examples of org.vaadin.gwtgraphics.client.shape.path.CurveTo

      } else if (step.getClass() == LineTo.class) {
        LineTo lineTo = (LineTo) step;
        path.append(lineTo.isRelativeCoords() ? " r" : " l").append(
            lineTo.getX()).append(" ").append(lineTo.getY());
      } else if (step.getClass() == CurveTo.class) {
        CurveTo curve = (CurveTo) step;
        path.append(curve.isRelativeCoords() ? " v" : " c");
        path.append(curve.getX1()).append(" ").append(curve.getY1());
        path.append(" ").append(curve.getX2()).append(" ").append(
            curve.getY2());
        path.append(" ").append(curve.getX()).append(" ").append(
            curve.getY());
      } else if (step.getClass() == Arc.class) {
        // TODO
      }

      if (step instanceof MoveTo) {
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.