Examples of Arc


Examples of javafx.scene.shape.Arc

   * 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

Examples of javafx.scene.shape.Arc

      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

Examples of javafx.scene.shape.Arc

    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

Examples of javafx.scene.shape.Arc

        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

Examples of org.apache.commons.math3.geometry.spherical.oned.Arc

     * @return arc of the instance that lies inside the other circle
     */
    public Arc getInsideArc(final Circle other) {
        final double alpha  = getPhase(other.pole);
        final double halfPi = 0.5 * FastMath.PI;
        return new Arc(alpha - halfPi, alpha + halfPi, tolerance);
    }
View Full Code Here

Examples of org.apache.commons.math3.geometry.spherical.oned.Arc

    void split(final Circle splitCircle,
                       final List<Edge> outsideList, final List<Edge> insideList) {

        // get the inside arc, synchronizing its phase with the edge itself
        final double edgeStart        = circle.getPhase(start.getLocation().getVector());
        final Arc    arc              = circle.getInsideArc(splitCircle);
        final double arcRelativeStart = MathUtils.normalizeAngle(arc.getInf(), edgeStart + FastMath.PI) - edgeStart;
        final double arcRelativeEnd   = arcRelativeStart + arc.getSize();
        final double unwrappedEnd     = arcRelativeEnd - MathUtils.TWO_PI;

        // build the sub-edges
        final double tolerance = circle.getTolerance();
        Vertex previousVertex = start;
View Full Code Here

Examples of org.apache.commons.math3.geometry.spherical.oned.Arc

        } else if (angle > FastMath.PI - thisCircle.getTolerance()) {
            // the two circles are opposite
            return new SplitSubHyperplane<Sphere2D>(this, null);
        } else {
            // the two circles intersect each other
            final Arc    arc          = thisCircle.getInsideArc(otherCircle);
            final ArcsSet.Split split = ((ArcsSet) getRemainingRegion()).split(arc);
            final ArcsSet plus        = split.getPlus();
            final ArcsSet minus       = split.getMinus();
            return new SplitSubHyperplane<Sphere2D>(plus  == null ? null : new SubCircle(thisCircle.copySelf(), plus),
                                                    minus == null ? null : new SubCircle(thisCircle.copySelf(), minus));
View Full Code Here

Examples of org.apache.commons.math3.geometry.spherical.oned.Arc

     * @return arc of the instance that lies inside the other circle
     */
    public Arc getInsideArc(final Circle other) {
        final double alpha  = getPhase(other.pole);
        final double halfPi = 0.5 * FastMath.PI;
        return new Arc(alpha - halfPi, alpha + halfPi, tolerance);
    }
View Full Code Here

Examples of org.apache.commons.math3.geometry.spherical.oned.Arc

    void split(final Circle splitCircle,
                       final List<Edge> outsideList, final List<Edge> insideList) {

        // get the inside arc, synchronizing its phase with the edge itself
        final double edgeStart        = circle.getPhase(start.getLocation().getVector());
        final Arc    arc              = circle.getInsideArc(splitCircle);
        final double arcRelativeStart = MathUtils.normalizeAngle(arc.getInf(), edgeStart + FastMath.PI) - edgeStart;
        final double arcRelativeEnd   = arcRelativeStart + arc.getSize();
        final double unwrappedEnd     = arcRelativeEnd - MathUtils.TWO_PI;

        // build the sub-edges
        final double tolerance = circle.getTolerance();
        Vertex previousVertex = start;
View Full Code Here

Examples of org.apache.commons.math3.geometry.spherical.oned.Arc

        } else if (angle > FastMath.PI - thisCircle.getTolerance()) {
            // the two circles are opposite
            return new SplitSubHyperplane<Sphere2D>(this, null);
        } else {
            // the two circles intersect each other
            final Arc    arc          = thisCircle.getInsideArc(otherCircle);
            final ArcsSet.Split split = ((ArcsSet) getRemainingRegion()).split(arc);
            final ArcsSet plus        = split.getPlus();
            final ArcsSet minus       = split.getMinus();
            return new SplitSubHyperplane<Sphere2D>(plus  == null ? null : new SubCircle(thisCircle.copySelf(), plus),
                                                    minus == null ? null : new SubCircle(thisCircle.copySelf(), minus));
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.