Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: ScaleTransition

[9:7] extends: FxObj

Represents a JavaFX ScaleTransition that animates the scale of a node.

Methods

  • ScaleTransition (double Millis)

    Creates a new ScaleTransition with the specified duration.

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

    Sets the target node for this scale animation.

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

    Sets the starting X scale factor for the animation.

    • @p Val is a double with the starting horizontal scale factor.
    • @r this object.
  • setFromY (double Val)

    Sets the starting Y scale factor for the animation.

    • @p Val is a double with the starting vertical scale factor.
    • @r this object.
  • setToX (double Val)

    Sets the ending X scale factor for the animation.

    • @p Val is a double with the ending horizontal scale factor.
    • @r this object.
  • setToY (double Val)

    Sets the ending Y scale factor for the animation.

    • @p Val is a double with the ending vertical scale factor.
    • @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 scale animation.

    • @r this object.
  • stop ()

    Stops the scale 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.