Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: TranslateTransition

[9:7] extends: FxObj

Represents a JavaFX TranslateTransition that animates the position of a node.

Methods

  • TranslateTransition (double Millis)

    Creates a new TranslateTransition with the specified duration.

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

    Sets the target node for this translation animation.

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

    Sets the starting X position for the translation animation.

    • @p Val is a double with the starting X coordinate in pixels.
    • @r this object.
  • setFromY (double Val)

    Sets the starting Y position for the translation animation.

    • @p Val is a double with the starting Y coordinate in pixels.
    • @r this object.
  • setToX (double Val)

    Sets the ending X position for the translation animation.

    • @p Val is a double with the ending X coordinate in pixels.
    • @r this object.
  • setToY (double Val)

    Sets the ending Y position for the translation animation.

    • @p Val is a double with the ending Y coordinate in pixels.
    • @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 translation animation.

    • @r this object.
  • stop ()

    Stops the translation 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 translation animation.

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

    Returns the ObjectProperty backing the target node.

    • @r An AJO wrapping javafx.beans.property.ObjectProperty.
  • setDuration (double Millis)

    Sets the animation duration from a double value 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 AJO wrapping javafx.beans.property.ObjectProperty.
  • getFromX ()

    Returns the starting X coordinate of the translation animation.

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

    Returns the DoubleProperty backing the from X value.

    • @r An AJO wrapping javafx.beans.property.DoubleProperty.
  • getFromY ()

    Returns the starting Y coordinate of the translation animation.

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

    Returns the DoubleProperty backing the from Y value.

    • @r An AJO wrapping javafx.beans.property.DoubleProperty.
  • setFromZ (double Val)

    Sets the starting Z coordinate of the translation animation.

    • @p Val is a double with the starting Z coordinate in pixels.
    • @r this object.
  • getFromZ ()

    Returns the starting Z coordinate of the translation animation.

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

    Returns the DoubleProperty backing the from Z value.

    • @r An AJO wrapping javafx.beans.property.DoubleProperty.
  • getToX ()

    Returns the ending X coordinate of the translation animation.

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

    Returns the DoubleProperty backing the to X value.

    • @r An AJO wrapping javafx.beans.property.DoubleProperty.
  • getToY ()

    Returns the ending Y coordinate of the translation animation.

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

    Returns the DoubleProperty backing the to Y value.

    • @r An AJO wrapping javafx.beans.property.DoubleProperty.
  • setToZ (double Val)

    Sets the ending Z coordinate of the translation animation.

    • @p Val is a double with the ending Z coordinate in pixels.
    • @r this object.
  • getToZ ()

    Returns the ending Z coordinate of the translation animation.

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

    Returns the DoubleProperty backing the to Z value.

    • @r An AJO wrapping javafx.beans.property.DoubleProperty.
  • setByX (double Val)

    Sets the relative X offset applied each cycle of the animation.

    • @p Val is a double with the X offset in pixels added each cycle.
    • @r this object.
  • getByX ()

    Returns the relative X offset applied each cycle of the animation.

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

    Returns the DoubleProperty backing the by X value.

    • @r An AJO wrapping javafx.beans.property.DoubleProperty.
  • setByY (double Val)

    Sets the relative Y offset applied each cycle of the animation.

    • @p Val is a double with the Y offset in pixels added each cycle.
    • @r this object.
  • getByY ()

    Returns the relative Y offset applied each cycle of the animation.

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

    Returns the DoubleProperty backing the by Y value.

    • @r An AJO wrapping javafx.beans.property.DoubleProperty.
  • setByZ (double Val)

    Sets the relative Z offset applied each cycle of the animation.

    • @p Val is a double with the Z offset in pixels added each cycle.
    • @r this object.
  • getByZ ()

    Returns the relative Z offset applied each cycle of the animation.

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

    Returns the DoubleProperty backing the by Z value.

    • @r An AJO wrapping javafx.beans.property.DoubleProperty.
  • interpolate (double Frac)

    Drives the animation to the interpolated position at the given fraction of its duration. Useful for previewing intermediate frames.

    • @p Frac is a double in the range 0.0 (start) to 1.0 (end).
    • @r this object.