Package javafx.scene.shape

Examples of javafx.scene.shape.CubicCurveTo


          new Stop(0.3708 * scale, Color.rgb(0xF4, 0xF7, 0xDA, 1.0)),
          new Stop(0.4065 * scale, Color.rgb(0xEE, 0xF2, 0xC4, 1.0)),
          new Stop(0.4157 * scale, Color.rgb(0xEC, 0xF1, 0xBD, 1.0)),
          new Stop(1.0 * scale, Color.rgb(0xCC, 0xFF, 0x00, 1.0)));
      path.setFill(rg);
      final CubicCurveTo cct1 = new CubicCurveTo(130.602 * scale, 70.889 * scale, 129.01 * scale,
          84.643 * scale, 119.59 * scale, 91.813 * scale);
      cct1.setAbsolute(true);
      path.getElements().add(cct1);
      final CubicCurveTo cct2 = new CubicCurveTo(110.171 * scale, 98.981 * scale, 96.489 * scale,
          96.843 * scale, 89.032 * scale, 87.043 * scale);
      cct2.setAbsolute(true);
      path.getElements().add(cct2);
      final CubicCurveTo cct3 = new CubicCurveTo(81.573 * scale, 77.24 * scale, 83.165 * scale,
          63.486 * scale, 92.584 * scale, 56.316 * scale);
      cct3.setAbsolute(true);
      path.getElements().add(cct3);
      final CubicCurveTo cct4 = new CubicCurveTo(102.004 * scale, 49.149 * scale, 115.686 * scale,
          51.285 * scale, 123.143 * scale, 61.088 * scale);
      cct4.setAbsolute(true);
      path.getElements().add(cct4);
      path.getElements().add(new ClosePath());
//      final Ellipse ellipse = new Ellipse(96.5 * scale, 62.5 * scale, 8.294 * scale, 4.906 * scale);
//      ellipse.setFill(Color.rgb(0xff, 0xff, 0xff, 1.0));
//      ellipse.setSmooth(true);
View Full Code Here


            if ("M".equals(READER.read())) {
                PATH.getElements().add(new MoveTo(READER.nextX(), READER.nextY()));
            } else if ("L".equals(READER.read())) {
                PATH.getElements().add(new LineTo(READER.nextX(), READER.nextY()));
            } else if ("C".equals(READER.read())) {
                PATH.getElements().add(new CubicCurveTo(READER.nextX(), READER.nextY(), READER.nextX(), READER.nextY(), READER.nextX(), READER.nextY()));
            } else if ("Q".equals(READER.read())) {
                PATH.getElements().add(new QuadCurveTo(READER.nextX(), READER.nextY(), READER.nextX(), READER.nextY()));
            } else if ("H".equals(READER.read())) {
                PATH.getElements().add(new HLineTo(READER.nextX()));
            } else if ("L".equals(READER.read())) {
View Full Code Here

        title.setText(getSkinnable().getTitle());

        needle.getElements().clear();
        needle.getElements().add(new MoveTo(0.275 * size, 0.5 * size));
        needle.getElements().add(new CubicCurveTo(0.275 * size, 0.62426575 * size,
                                                  0.37573425 * size, 0.725 * size,
                                                  0.5 * size, 0.725 * size));
        needle.getElements().add(new CubicCurveTo(0.62426575 * size, 0.725 * size,
                                                  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));
        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.03);

 
View Full Code Here

            title.setText(getSkinnable().getTitle());
            title.setVisible(getSkinnable().isTitleVisible());
   
            needle.getElements().clear();
            needle.getElements().add(new MoveTo(0.275 * size, 0.5 * size));
            needle.getElements().add(new CubicCurveTo(0.275 * size, 0.62426575 * size,
                                                      0.37573425 * size, 0.725 * size,
                                                      0.5 * size, 0.725 * size));
            needle.getElements().add(new CubicCurveTo(0.62426575 * size, 0.725 * size,
                                                      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

TOP

Related Classes of javafx.scene.shape.CubicCurveTo

Copyright © 2018 www.massapicom. 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.