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.
  • getNode ()

    Returns the target node for this scale 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.
  • getFromX ()

    Returns the starting X scale factor for the animation.

    • @r A double with the from X value.
  • fromXProperty ()

    Returns the DoubleProperty backing the from X scale.

    • @r A DoubleProperty AJO.
  • getFromY ()

    Returns the starting Y scale factor for the animation.

    • @r A double with the from Y value.
  • fromYProperty ()

    Returns the DoubleProperty backing the from Y scale.

    • @r A DoubleProperty AJO.
  • setFromZ (double Val)

    Sets the starting Z scale factor for the animation.

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

    Returns the starting Z scale factor for the animation.

    • @r A double with the from Z value.
  • fromZProperty ()

    Returns the DoubleProperty backing the from Z scale.

    • @r A DoubleProperty AJO.
  • getToX ()

    Returns the ending X scale factor for the animation.

    • @r A double with the to X value.
  • toXProperty ()

    Returns the DoubleProperty backing the to X scale.

    • @r A DoubleProperty AJO.
  • getToY ()

    Returns the ending Y scale factor for the animation.

    • @r A double with the to Y value.
  • toYProperty ()

    Returns the DoubleProperty backing the to Y scale.

    • @r A DoubleProperty AJO.
  • setToZ (double Val)

    Sets the ending Z scale factor for the animation.

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

    Returns the ending Z scale factor for the animation.

    • @r A double with the to Z value.
  • toZProperty ()

    Returns the DoubleProperty backing the to Z scale.

    • @r A DoubleProperty AJO.
  • setByX (double Val)

    Sets the relative X scale change applied each cycle.

    • @p Val is a double added to the current X scale each cycle.
    • @r this object.
  • getByX ()

    Returns the relative X scale change applied each cycle.

    • @r A double with the by X value.
  • byXProperty ()

    Returns the DoubleProperty backing the by X scale.

    • @r A DoubleProperty AJO.
  • setByY (double Val)

    Sets the relative Y scale change applied each cycle.

    • @p Val is a double added to the current Y scale each cycle.
    • @r this object.
  • getByY ()

    Returns the relative Y scale change applied each cycle.

    • @r A double with the by Y value.
  • byYProperty ()

    Returns the DoubleProperty backing the by Y scale.

    • @r A DoubleProperty AJO.
  • setByZ (double Val)

    Sets the relative Z scale change applied each cycle.

    • @p Val is a double added to the current Z scale each cycle.
    • @r this object.
  • getByZ ()

    Returns the relative Z scale change applied each cycle.

    • @r A double with the by Z value.
  • byZProperty ()

    Returns the DoubleProperty backing the by Z scale.

    • @r A DoubleProperty AJO.
  • interpolate (double Fraction)

    Advances the animation to the position represented by the supplied fraction.

    • @p Fraction is a double in the range 0.0 to 1.0.
    • @r this object.