Basics
Guides
API Reference
Basics
Guides
API Reference
[9:7] extends: FxObj
Represents a JavaFX RotateTransition that animates the rotation of a node.
RotateTransition (double Millis)
Creates a new RotateTransition with the specified duration.
Millis is a double with the animation duration in milliseconds.setNode (object NodeObj)
Sets the target node for this rotation animation.
NodeObj is the scene-graph node to animate.this object.setFromAngle (double Angle)
Sets the starting angle for the rotation animation.
Angle is a double with the starting rotation angle in degrees.this object.setToAngle (double Angle)
Sets the ending angle for the rotation animation.
Angle is a double with the ending rotation angle in degrees.this object.setCycleCount (int Count)
Sets the number of times the animation cycles before stopping.
Count is an int with the cycle count; pass -1 for indefinite looping.this object.setAutoReverse (bool Auto)
Sets whether the animation reverses direction on alternating cycles.
Auto is a bool; true enables auto-reverse.this object.play ()
Starts playing the rotation animation.
this object.stop ()
Stops the rotation animation.
this object.setOnFinished (callback OnFinished)
Registers a callback to invoke when the animation finishes.
OnFinished is a callback invoked with an ActionEvent when the animation completes.this object.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.