Examples of translateXProperty()


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

                    color,
                    new ReadOnlyDoubleWrapper(0.0),
                    new ReadOnlyDoubleWrapper(1.0),
                    new ReadOnlyDoubleWrapper(1).subtract(shade.multiply(0.4)),
                    new ReadOnlyDoubleWrapper(1.0)));
            r.translateXProperty().bind(size.multiply(-0.5));
            r.setTranslateY(0);
            r.setRotationAxis(Rotate.X_AXIS);
            r.setRotate(90);
           
            getChildren().add(r);
View Full Code Here

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

                    color,
                    new ReadOnlyDoubleWrapper(0.0),
                    new ReadOnlyDoubleWrapper(1.0),
                    new ReadOnlyDoubleWrapper(1).subtract(shade.multiply(0.3)),
                    new ReadOnlyDoubleWrapper(1.0)));
            r.translateXProperty().bind(size.multiply(-1));
            r.translateYProperty().bind(size.multiply(-0.5));
            r.setRotationAxis(Rotate.Y_AXIS);
            r.setRotate(90);
           
            getChildren().add(r);
View Full Code Here

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

                    color,
                    new ReadOnlyDoubleWrapper(0.0),
                    new ReadOnlyDoubleWrapper(1.0),
                    new ReadOnlyDoubleWrapper(1).subtract(shade.multiply(0.1)),
                    new ReadOnlyDoubleWrapper(1.0)));
            r.translateXProperty().bind(size.multiply(-0.5));
            r.translateYProperty().bind(size.multiply(-1));
            r.setRotationAxis(Rotate.X_AXIS);
            r.setRotate(90);
           
            getChildren().add(r);
View Full Code Here

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

        {
            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);
           
            getChildren().add(r);
View Full Code Here

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

    rectangle.setFill(color);
    rectangle.setArcHeight(20);
    rectangle.setArcWidth(20);
    final Text text = new Text(getDisplayText());
    text.setFontSmoothingType(FontSmoothingType.LCD);
    text.translateXProperty().bind(rectangle.translateXProperty());
    text.translateYProperty().bind(rectangle.translateYProperty().add(rectangle.getHeight()/2).add(text.getBoundsInLocal().getHeight()/4));
    pane.getChildren().add(rectangle);
    pane.getChildren().add(text);
    return pane;
  }
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.