Examples of fillProperty()


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

        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

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

            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.