Package javafx.scene.text

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


        new Rotate(90d, lbl.getBoundsInParent().getMinX() + lbl.getBoundsInParent().getWidth() / 2d,
            0));
    */   
    final Text lbl = new Text(x, y, label);
    lbl.setFont(tickValueFont);
    Bindings.bindBidirectional(lbl.fillProperty(), tickMarkLabelFillProperty);
    // center text horizontally
    lbl.setLayoutX((lbl.getBoundsInLocal().getWidth() / 2d) * -1);
    // center text vertically
    lbl.setTextOrigin(VPos.CENTER);
    return lbl;
View Full Code Here

            t.getStyleClass().add("text");
            applyStyle.accept(t, segment.getStyle());

            // XXX: binding selectionFill to textFill,
            // see the note at highlightTextFill
            t.impl_selectionFillProperty().bind(t.fillProperty());

            getChildren().add(t);
        }
    }
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.