Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: RotateTransition

[9:7] extends: FxObj

Represents a JavaFX RotateTransition that animates the rotation of a node.

Methods

  • RotateTransition (double Millis)

    Creates a new RotateTransition with the specified duration.

    • @p Millis is a double with the animation duration in milliseconds.
  • setNode (object NodeObj)

    Sets the target node for this rotation animation.

    • @p NodeObj is the scene-graph node to animate.
    • @r this object.
  • setFromAngle (double Angle)

    Sets the starting angle for the rotation animation.

    • @p Angle is a double with the starting rotation angle in degrees.
    • @r this object.
  • setToAngle (double Angle)

    Sets the ending angle for the rotation animation.

    • @p Angle is a double with the ending rotation angle in degrees.
    • @r this object.
  • setCycleCount (int Count)

    Sets the number of times the animation cycles before stopping.

    • @p Count is an int with the cycle count; pass -1 for indefinite looping.
    • @r this object.
  • setAutoReverse (bool Auto)

    Sets whether the animation reverses direction on alternating cycles.

    • @p Auto is a bool; true enables auto-reverse.
    • @r this object.
  • play ()

    Starts playing the rotation animation.

    • @r this object.
  • stop ()

    Stops the rotation animation.

    • @r this object.
  • setOnFinished (callback OnFinished)

    Registers a callback to invoke when the animation finishes.

    • @p OnFinished is a callback invoked with an ActionEvent when the animation completes.
    • @r this object.
  • getNode ()

    Returns the target node for this rotation animation.

    • @r An AJO wrapping javafx.scene.Node, or null.
  • nodeProperty ()

    Returns the ObjectProperty backing the target node.

    • @r An ObjectProperty AJO.
  • setDuration (double Millis)

    Sets the animation duration from a double in milliseconds.

    • @p Millis is a double with the duration in milliseconds.
    • @r this object.
  • getDuration ()

    Returns the animation duration.

    • @r An AJO wrapping javafx.util.Duration.
  • durationProperty ()

    Returns the ObjectProperty backing the animation duration.

    • @r An ObjectProperty AJO.
  • setAxis (object Axis)

    Sets the axis around which the rotation animation runs.

    • @p Axis is a Point3D wrapper for the rotation axis.
    • @r this object.
  • getAxis ()

    Returns the rotation axis as a JavaFX Point3D.

    • @r An AJO wrapping javafx.geometry.Point3D.
  • axisProperty ()

    Returns the ObjectProperty backing the rotation axis.

    • @r An ObjectProperty AJO.
  • getFromAngle ()

    Returns the starting angle for the rotation animation in degrees.

    • @r A double with the starting angle.
  • fromAngleProperty ()

    Returns the DoubleProperty backing the from angle.

    • @r A DoubleProperty AJO.
  • getToAngle ()

    Returns the ending angle for the rotation animation in degrees.

    • @r A double with the ending angle.
  • toAngleProperty ()

    Returns the DoubleProperty backing the to angle.

    • @r A DoubleProperty AJO.
  • setByAngle (double Angle)

    Sets the relative angle change applied each cycle of the animation.

    • @p Angle is a double in degrees added to the current angle each cycle.
    • @r this object.
  • getByAngle ()

    Returns the relative angle change applied each cycle in degrees.

    • @r A double with the by angle.
  • byAngleProperty ()

    Returns the DoubleProperty backing the by angle.

    • @r A DoubleProperty AJO.