Example usage for javafx.scene Group translateYProperty

List of usage examples for javafx.scene Group translateYProperty

Introduction

In this page you can find the example usage for javafx.scene Group translateYProperty.

Prototype

public final DoubleProperty translateYProperty() 

Source Link

Document

Defines the y coordinate of the translation that is added to this Node 's transform.

Usage

From source file:Main.java

@Override
public void start(Stage primaryStage) {
    Group root = new Group();
    Scene scene = new Scene(root, 551, 400, Color.BLACK);
    Group buttonGroup = new Group();
    Arc rightButton = ArcBuilder.create().type(ArcType.ROUND).radiusX(15).radiusY(15).startAngle(180 - 30)
            .length(60).translateX(40).build();
    buttonGroup.getChildren().add(rightButton);
    buttonGroup.translateYProperty().bind(scene.heightProperty().subtract(10));
    root.getChildren().add(buttonGroup);

    primaryStage.setScene(scene);/*  w w  w  . j  a v  a  2s .c  om*/
    primaryStage.show();
}