Example usage for javafx.scene.transform Rotate angleProperty

List of usage examples for javafx.scene.transform Rotate angleProperty

Introduction

In this page you can find the example usage for javafx.scene.transform Rotate angleProperty.

Prototype

public final DoubleProperty angleProperty() 

Source Link

Usage

From source file:Main.java

private Parent createRoot() {
    Circle node1 = CircleBuilder.create().centerX(-50).centerY(-50).radius(100).fill(Color.RED).build();
    node1.translateZProperty().bind(translateZForNode1);
    final Rotate rotate = RotateBuilder.create().pivotX(0).pivotY(0).pivotZ(0).axis(new Point3D(1, 0, 0))
            .build();// ww  w  . j  a v  a2  s .c om
    rotate.angleProperty().bind(angle);

    return GroupBuilder.create().children(node1).translateX(250).translateY(250).transforms(rotate).build();
}