Package javafx.scene.shape

Examples of javafx.scene.shape.Ellipse


    final double arcRadius = innerRadius - (innerRadius / 100d);
    final double radiusX = centerX + adjAngleLength / 2d;
    final double radiusY = centerY + adjAngleLength / 2d;
    final double cx = (radiusX + innerRadius / 2.5d) * Math.cos(Math.toRadians(highlightAngle));
    final double cy = (radiusY + innerRadius / 2.5d) * Math.sin(Math.toRadians(highlightAngle));
    final Ellipse shape1 = new Ellipse(cx, cy, radiusX, radiusY);
    shape1.setFill(Color.GREEN);
    final Arc shape2 = new Arc(centerX, centerY, arcRadius, arcRadius, angleStart, adjAngleLength);
    shape2.setType(ArcType.ROUND);
    shape2.setFill(Color.WHITE);
   
    final Shape highlight = Shape.intersect(shape1, shape2);
View Full Code Here


     */
    protected Group createKnobSurface(final double startAngle, final double centerX,
        final double centerY, final double radiusX, final double radiusY,
        final Color... colors) {
      Group group = new Group();
      final Shape background = new Ellipse(centerX, centerY, radiusX, radiusY);
      background.setFill(new RadialGradient(0, 0, this.centerX, this.centerY,
        Math.max(radiusX, radiusY), false, CycleMethod.NO_CYCLE,
        new Stop(0, Color.BLACK), new Stop(0.95d, Color.DARKGRAY.darker()),
        new Stop(0.97d, Color.GRAY.brighter())));
      group.getChildren().add(background);
      double startRadians = startAngle * 2d * Math.PI;
 
View Full Code Here

TOP

Related Classes of javafx.scene.shape.Ellipse

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.