Generated Object
javafx.scene.transform.Rotate
Attributes
This node takes the attributes of the javafx.scene.transform.Rotate class, see javafx.scene.transform.Rotate
Content
This node has no content
Usage
Defines a rotate transform that may be applied to a JavaFX node.
Examples
| Code Block |
|---|
GroovyFX.start({ primaryStage ->
def sg = new SceneGraphBuilder(primaryStage);
if (!Platform.isSupported(ConditionalFeature.SCENE3D)) {
System.out.println("*************************************************************");
System.out.println("* WARNING: common conditional SCENE3D isn\'t supported *");
System.out.println("*************************************************************");
}
sg.stage(
title: "CircleT3D (Groovy)",
width: 400, height:300,
visible: true,
resizable: true
) {
scene(fill: lightgreen, camera: new PerspectiveCamera()) {
circle(centerX: 200, centerY: 150, radius: 75, fill: blue) {
rotate(angle: 30, axis: Rotate.Y_AXIS)
}
}
}
})
|