Examples of fillProperty()


Examples of javafx.scene.shape.Circle.fillProperty()

      final Circle ccg = new Circle(centerX, centerY, radius);
      ccg.setCache(true);
      ccg.setCacheHint(CacheHint.QUALITY);
      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);
View Full Code Here

Examples of javafx.scene.shape.Circle.fillProperty()

    final Shape indicatorBolt = new Circle(centerX, centerY, dialCenterOuterRadius);
//      createSproket(centerX, centerY, 24, dialCenterOuterRadius / 1.1d,
//        dialCenterOuterRadius, angleStart, dialCenterFillProperty);
    indicatorBolt.setCache(true);
    indicatorBolt.setCacheHint(CacheHint.SPEED);
    Bindings.bindBidirectional(indicatorBolt.fillProperty(), dialCenterFillProperty);
    Bindings.bindBidirectional(indicatorBolt.opacityProperty(), dialCenterOpacityProperty);
    return indicatorBolt;
    }
   
    /**
 
View Full Code Here

Examples of javafx.scene.shape.Polygon.fillProperty()

      points[++p] = y - Math.sin(angle + (teethSlope * sideCnt)) * outerRadius;
    }
    final Polygon dial = new Polygon(points);
    dial.setCache(true);
    dial.setCacheHint(CacheHint.ROTATE);
    Bindings.bindBidirectional(dial.fillProperty(), dialFillProperty);
    return dial;
  }
 
    /**
     * Moves the indicator/hand angle based upon an x/y coordinate
View Full Code Here

Examples of javafx.scene.shape.Rectangle.fillProperty()

        final double height, final double angle, final ObjectProperty<Paint> tickMarkFillProperty) {
      final Rectangle tm = new Rectangle(x, y, width, height);
      tm.setSmooth(false);
      tm.setCache(true);
      tm.setCacheHint(CacheHint.QUALITY);
      Bindings.bindBidirectional(tm.fillProperty(), tickMarkFillProperty);
    tm.getTransforms().addAll(new Rotate(angle, centerX, centerY));
    return tm;
    }

    /**
 
View Full Code Here

Examples of javafx.scene.shape.Rectangle.fillProperty()

            }
        });
        Rectangle colorRect = RectangleBuilder.create()
                .width(16).height(16)
                .build();
        colorRect.fillProperty().bind(new ObjectBinding<Paint>() {
            { bind(color); }
            @Override protected Paint computeValue() {
                return getColor();
            }
        });
View Full Code Here

Examples of javafx.scene.shape.Rectangle.fillProperty()

       
        {
            Rectangle r = new Rectangle();
            r.widthProperty().bind(this.size);
            r.heightProperty().bind(this.size);
            r.fillProperty().bind(
                DeriveColorBinding.create(
                    color,
                    new ReadOnlyDoubleWrapper(0.0),
                    new ReadOnlyDoubleWrapper(1.0),
                    new ReadOnlyDoubleWrapper(1).subtract(shade.multiply(0.5)),
View Full Code Here

Examples of javafx.scene.shape.Rectangle.fillProperty()

       
        {
            Rectangle r = new Rectangle();
            r.widthProperty().bind(this.size);
            r.heightProperty().bind(this.size);
            r.fillProperty().bind(
                DeriveColorBinding.create(
                    color,
                    new ReadOnlyDoubleWrapper(0.0),
                    new ReadOnlyDoubleWrapper(1.0),
                    new ReadOnlyDoubleWrapper(1).subtract(shade.multiply(0.4)),
View Full Code Here

Examples of javafx.scene.shape.Rectangle.fillProperty()

       
        {
            Rectangle r = new Rectangle();
            r.widthProperty().bind(this.size);
            r.heightProperty().bind(this.size);
            r.fillProperty().bind(
                DeriveColorBinding.create(
                    color,
                    new ReadOnlyDoubleWrapper(0.0),
                    new ReadOnlyDoubleWrapper(1.0),
                    new ReadOnlyDoubleWrapper(1).subtract(shade.multiply(0.3)),
View Full Code Here

Examples of javafx.scene.shape.Rectangle.fillProperty()

       
        {
            Rectangle r = new Rectangle();
            r.widthProperty().bind(this.size);
            r.heightProperty().bind(this.size);
            r.fillProperty().bind(
                DeriveColorBinding.create(
                    color,
                    new ReadOnlyDoubleWrapper(0.0),
                    new ReadOnlyDoubleWrapper(1.0),
                    new ReadOnlyDoubleWrapper(1).subtract(shade.multiply(0.2)),
View Full Code Here

Examples of javafx.scene.shape.Rectangle.fillProperty()

       
        {
            Rectangle r = new Rectangle();
            r.widthProperty().bind(this.size);
            r.heightProperty().bind(this.size);
            r.fillProperty().bind(
                DeriveColorBinding.create(
                    color,
                    new ReadOnlyDoubleWrapper(0.0),
                    new ReadOnlyDoubleWrapper(1.0),
                    new ReadOnlyDoubleWrapper(1).subtract(shade.multiply(0.1)),
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.