Package javafx.scene.shape

Examples of javafx.scene.shape.Arc


      ccg.setEffect(effect);
      addRimStroke(ccg, rimStrokeFillProperty);
      Bindings.bindBidirectional(ccg.fillProperty(), centerGaugeFillProperty);
      return ccg;
    } else {
      final Arc acg = new Arc(centerX, centerY, radius, radius,
          angleStart, angleLength);
      acg.setType(ArcType.ROUND);
      acg.setCache(true);
      acg.setCacheHint(CacheHint.QUALITY);
      final Shape acf = new Circle(centerX, centerY, dialCenterBackgroundRadius);
      acf.setCache(true);
      final Shape cg = Shape.union(acg, acf);
      cg.setCache(true);
      cg.setEffect(effect);
View Full Code Here


    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);
   
    highlight.setCache(true);
    highlight.setCacheHint(CacheHint.SPEED);
View Full Code Here

   * Creates an intensity indicator that shows a transition from {@code color 1}, {@code color 2}, and {@code color 3}
   *
   * @return the intensity indicator
   */
  protected final Group createIntensityIndicator() {
    final Arc region1Arc = new Arc();
    final Arc region2Arc = new Arc();
    final Arc region3Arc = new Arc();
    region1Arc.setSmooth(false);
    region1Arc.setCache(true);
    region2Arc.setSmooth(false);
    region2Arc.setCache(true);
    region3Arc.setSmooth(false);
    region3Arc.setCache(true);
    updateIntensityIndicatorProperties(region1Arc, region2Arc, region3Arc, intensityIndicatorRegionsProperty.get());
   
    final Group intensityIndicator = new Group();
    intensityIndicator.setCache(true);
    intensityIndicator.setCacheHint(CacheHint.SPEED);
View Full Code Here

      for (double i=0; i<colors.length; i++) {
        //newRadians = startRadians + stepRadians * (i + 2d);
        //newX = centerX + Math.cos(newRadians) * radiusX / 1.1d;
        //newY = centerY + Math.sin(newRadians) * radiusY / 1.1d;
        //Polygon shape = new Polygon(oldX, oldY, centerX, centerY, newX, newY, oldX, oldY);
        final Arc shape = new Arc(centerX, centerY, radiusX / 1.1d, radiusY / 1.1d, angle, angleLength);
        angle += angleLength;
        shape.setType(ArcType.ROUND);
        shape.setSmooth(false);
        shape.setCache(true);
        shape.setCacheHint(CacheHint.SPEED);
        shape.setFill(colors[(int)i]);
        shape.setStroke(colors[(int)i]);
        shape.setStrokeWidth(angleLength);
        shape.setStrokeType(StrokeType.INSIDE);
        group.getChildren().add(shape);
        //oldX = newX;
            //oldY = newY;
      }
      //final Ellipse cap = new Ellipse(radiusX, radiusY);
View Full Code Here

    this.staticColor = color;
    this.indicatorRadiusX = (width / 2d) - (width / 2d * 0.1d);
    this.indicatorRadiusY = (height / 2d) - (height / 2d * 0.1d);
    this.indicatorX = this.indicatorRadiusX + (this.indicatorRadiusX * 0.15d);
    this.indicatorY = this.indicatorRadiusY + (this.indicatorRadiusY * 0.15d);
    this.indicator = new Arc(this.indicatorX,
        this.indicatorY, this.indicatorRadiusX, this.indicatorRadiusY, 0,
        360);
    this.indicator.setFill(this.staticColor);
    Bindings.bindBidirectional(this.colorProperty, this.indicator.fillProperty());
    this.indicator.setEffect(LightingBuilder
View Full Code Here

        threshold.getTransforms().setAll(thresholdRotate);
        threshold.setOpacity(getSkinnable().isThresholdVisible() ? 1 : 0);
        threshold.setManaged(getSkinnable().isThresholdVisible());
        thresholdExceeded = false;

        bar = new Arc();
        bar.setType(ArcType.ROUND);
        bar.setCenterX(PREFERRED_WIDTH * 0.5);
        bar.setCenterY(PREFERRED_HEIGHT * 0.5);
        bar.setRadiusX(PREFERRED_WIDTH * 0.5 - 4);
        bar.setRadiusY(PREFERRED_HEIGHT * 0.5 - 4);
View Full Code Here

        threshold.getTransforms().setAll(thresholdRotate);
        threshold.setOpacity(getSkinnable().isThresholdVisible() ? 1 : 0);
        threshold.setManaged(getSkinnable().isThresholdVisible());
        thresholdExceeded = false;

        bar = new Arc();
        bar.setType(ArcType.ROUND);
        bar.setCenterX(PREFERRED_WIDTH * 0.5);
        bar.setCenterY(PREFERRED_HEIGHT * 0.5);
        bar.setRadiusX(PREFERRED_WIDTH * 0.5 - 4);
        bar.setRadiusY(PREFERRED_HEIGHT * 0.5 - 4);
View Full Code Here

TOP

Related Classes of javafx.scene.shape.Arc

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.