Examples of LineTo


Examples of javafx.scene.shape.LineTo

                                                      0.725 * size, 0.62426575 * size,
                                                      0.725 * size, 0.5 * size));
            needle.getElements().add(new CubicCurveTo(0.725 * size, 0.3891265 * size,
                                                      0.6448105 * size, 0.296985 * size,
                                                      0.5392625 * size, 0.2784125 * size));
            needle.getElements().add(new LineTo(0.5 * size, 0.0225 * size));
            needle.getElements().add(new LineTo(0.4607375 * size, 0.2784125 * size));
            needle.getElements().add(new CubicCurveTo(0.3551895 * size, 0.296985 * size,
                                                      0.275 * size, 0.3891265 * size,
                                                      0.275 * size, 0.5 * size));
            needle.getElements().add(new ClosePath());
            needle.setStrokeWidth(size * 0.025);
 
View Full Code Here

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

        addOperator(new SetFlatness());
        addOperator(new SetLineJoinStyle());
        addOperator(new SetLineCapStyle());
        addOperator(new SetStrokingDeviceCMYKColor());
        addOperator(new SetNonStrokingDeviceCMYKColor());
        addOperator(new LineTo());
        addOperator(new MoveTo());
        addOperator(new SetLineMiterLimit());
        addOperator(new EndPath());
        addOperator(new Save());
        addOperator(new Restore());
View Full Code Here

Examples of org.freehep.graphicsio.emf.gdi.LineTo

            // addTag(new CreatePalette()); // 49 31
            // addTag(new SetPaletteEntries()); // 50 32
            addTag(new ResizePalette()); // 51 33
            addTag(new RealizePalette()); // 52 34
            addTag(new ExtFloodFill()); // 53 35
            addTag(new LineTo()); // 54 36
            addTag(new ArcTo()); // 55 37
            addTag(new PolyDraw()); // 56 38
            addTag(new SetArcDirection()); // 57 39
            addTag(new SetMiterLimit()); // 58 3a
            addTag(new BeginPath()); // 59 3b
View Full Code Here

Examples of org.freehep.graphicsio.emf.gdi.LineTo

                os
                        .writeTag(new PolyBezierTo16(imageBounds, pointIndex,
                                points));
            }
        } else if (pointIndex == 1) {
            os.writeTag(new LineTo(points[0]));
        } else if (pointIndex > 1) {
            if (wide) {
                os.writeTag(new PolylineTo(imageBounds, pointIndex, points));
            } else {
                os.writeTag(new PolylineTo16(imageBounds, pointIndex, points));
View Full Code Here

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

      int width = endX - beginX;
      int height = endY - beginY;
      if (height != 0 && width != 0) {
        zoomInRect.setStep(5, new MoveTo(false, beginX, beginY));
        zoomInRect.setStep(6, new LineTo(false, endX, beginY));
        zoomInRect.setStep(7, new LineTo(false, endX, endY));
        zoomInRect.setStep(8, new LineTo(false, beginX, endY));
        zoomInRect.setStep(9, new ClosePath());
        screenBounds = factory.createBbox(beginX, beginY, width, height);
      }
    }
View Full Code Here

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

  public void onScale() {
    calculateBestFit(viewPort.getScale());
    distance.setText(formatUnits(widthInUnits));
    backGround.setWidth(widthInPixels + 6);
    distanceMarker.setStep(2, new LineTo(true, widthInPixels, 0));
  }
View Full Code Here

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

   *            an absolute x-coordinate in pixels
   * @param y
   *            an absolute y-coordinate in pixels
   */
  public void lineTo(int x, int y) {
    steps.add(new LineTo(false, x, y));
    drawPath();
  }
View Full Code Here

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

   *            a relative x-coordinate in pixels
   * @param y
   *            a relative y-coordinate in pixels
   */
  public void lineRelativelyTo(int x, int y) {
    steps.add(new LineTo(true, x, y));
    drawPath();
  }
View Full Code Here

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

      } else if (step.getClass() == MoveTo.class) {
        MoveTo moveTo = (MoveTo) step;
        path.append(moveTo.isRelativeCoords() ? " m" : " M").append(
            moveTo.getX()).append(" ").append(moveTo.getY());
      } 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(
View Full Code Here

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

      } else if (step.getClass() == MoveTo.class) {
        MoveTo moveTo = (MoveTo) step;
        path.append(moveTo.isRelativeCoords() ? " t" : " m").append(
            moveTo.getX()).append(" ").append(moveTo.getY());
      } 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(
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.