Example usage for javafx.scene.shape Circle translateZProperty

List of usage examples for javafx.scene.shape Circle translateZProperty

Introduction

In this page you can find the example usage for javafx.scene.shape Circle translateZProperty.

Prototype

public final DoubleProperty translateZProperty() 

Source Link

Document

Defines the Z coordinate of the translation that is added to the transformed coordinates of this Node .

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();//from  w w  w. j a v a 2s . com
    rotate.angleProperty().bind(angle);

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