Examples of fillProperty()


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

       
        {
            Rectangle r = new Rectangle();
            r.widthProperty().bind(this.size);
            r.heightProperty().bind(this.size);
            r.fillProperty().bind(color);
            r.translateXProperty().bind(size.multiply(-0.5));
            r.translateYProperty().bind(size.multiply(-0.5));
            r.translateZProperty().bind(size.multiply(-0.5));
            r.setRotate(90);
           
View Full Code Here

Examples of javafx.scene.shape.Shape.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.Shape.fillProperty()

    border2.setTranslateX(offsetX);
    border2.setTranslateY(offsetY);
    double angle2 = 180d - getGeometericEndAngle();
   
    valContainer.getTransforms().add(new Rotate(angle2, centerX, centerY));
    Bindings.bindBidirectional(border2.fillProperty(), backgroundFillProperty);
    border2.setStroke(Color.GRAY);
    border2.setStrokeWidth(1d);
    valContainer.getChildren().add(border2);
    return valContainer;
  }
View Full Code Here

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

      acf.setCache(true);
      final Shape cg = Shape.union(acg, acf);
      cg.setCache(true);
      cg.setEffect(effect);
      addRimStroke(cg, rimStrokeFillProperty);
      Bindings.bindBidirectional(cg.fillProperty(), centerGaugeFillProperty);
      return cg;
    }
  }
 
  /**
 
View Full Code Here

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

    highlight.setCacheHint(CacheHint.SPEED);
    highlight.setOpacity(0.07d);
    highlightFillProperty.set(new LinearGradient(cx, cy, centerX, centerY,
        false, CycleMethod.NO_CYCLE, new Stop(0.8d, Color.WHITE),
        new Stop(1d, Color.TRANSPARENT)));
    Bindings.bindBidirectional(highlight.fillProperty(), highlightFillProperty);
    return highlight;
  }
 
  /**
   * @return the lighting applied to the gauge shape and indicator/hand group
View Full Code Here

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

        final double gaugeCenterX, final double gaugeCenterY,
        final ObjectProperty<Paint> indicatorFillProperty) {
      Shape indicatorShape;
      switch (indicatorType) {
      case RECTANGLE: indicatorShape = new Rectangle(x, y, width, height);
        Bindings.bindBidirectional(indicatorShape.fillProperty(), indicatorFillProperty);
        break;
      case CLOCK: indicatorShape = new Polygon(
          x, y,
          x - pointDistance, y + (height / 2d)
          x, y + height,
View Full Code Here

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

          x, y,
          x - pointDistance, y + (height / 2d)
          x, y + height,
          x + width, y + (height / 2d) + (height / 4d),
          x + width, y + (height / 4d));
        Bindings.bindBidirectional(indicatorShape.fillProperty(), indicatorFillProperty);
        break;
      case KNOB:
        indicatorShape = new Polygon(
              x, y,
              x - pointDistance, y + (indicatorHeight / 2d)
View Full Code Here

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

              x, y,
              x - pointDistance, y + (indicatorHeight / 2d)
              x, y + indicatorHeight,
              x + (indicatorWidth / 2d), y + (indicatorHeight / 2d) + (indicatorHeight / 4d),
              x + (indicatorWidth / 2d), y + (indicatorHeight / 4d));
        Bindings.bindBidirectional(indicatorShape.fillProperty(), indicatorFillProperty);
        indicatorShape.setStroke(Color.WHITESMOKE);
        indicatorShape.setStrokeWidth(2d);
        indicatorShape.setStrokeType(StrokeType.CENTERED);
        indicatorShape.setEffect(createLighting());
        break;
View Full Code Here

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

        x, y + (height / 2.5d),
        x, y + height - (height / 2.5d),
        x + width - pointDistance, y + height,
        x + width, y + (height / 2d),
        x + width - pointDistance, y);
        Bindings.bindBidirectional(indicatorShape.fillProperty(), indicatorFillProperty);
        break;
      }
      indicatorShape.setCache(true);
      indicatorShape.setCacheHint(CacheHint.QUALITY);
      //indicatorShape.setEffect(createLighting());
View Full Code Here

Examples of javafx.scene.text.Text.fillProperty()

    outerGlow.setOffsetX(0);
    outerGlow.setOffsetY(0);
    outerGlow.setColor(Color.BLUE);
    outerGlow.setRadius(2d);
    val.setEffect(outerGlow);
    Bindings.bindBidirectional(val.fillProperty(), textFillProperty);
    //val.setStyle("-fx-text-fill: white;");
    angleProperty.addListener(new ChangeListener<Number>() {
      @Override
      public void changed(ObservableValue<? extends Number> observable,
          Number oldValue, Number newValue) {
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.