Basics
Guides
API Reference
Basics
Guides
API Reference
[9:7] extends: FxObj
Represents a JavaFX TranslateTransition that animates the position of a node.
TranslateTransition (double Millis)
Creates a new TranslateTransition with the specified duration.
Millis is a double with the animation duration in milliseconds.setNode (object NodeObj)
Sets the target node for this translation animation.
NodeObj is the scene-graph node to animate, or null to clear.this object.setFromX (double Val)
Sets the starting X position for the translation animation.
Val is a double with the starting X coordinate in pixels.this object.setFromY (double Val)
Sets the starting Y position for the translation animation.
Val is a double with the starting Y coordinate in pixels.this object.setToX (double Val)
Sets the ending X position for the translation animation.
Val is a double with the ending X coordinate in pixels.this object.setToY (double Val)
Sets the ending Y position for the translation animation.
Val is a double with the ending Y coordinate in pixels.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 translation animation.
this object.stop ()
Stops the translation 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.getNode ()
Returns the target node for this translation animation.
An AJO wrapping javafx.scene.Node, or null.nodeProperty ()
Returns the ObjectProperty backing the target node.
An AJO wrapping javafx.beans.property.ObjectPropertysetDuration (double Millis)
Sets the animation duration from a double value in milliseconds.
Millis is a double with the duration in milliseconds.this object.getDuration ()
Returns the animation duration.
An AJO wrapping javafx.util.Duration.durationProperty ()
Returns the ObjectProperty backing the animation duration.
An AJO wrapping javafx.beans.property.ObjectPropertygetFromX ()
Returns the starting X coordinate of the translation animation.
A double with the from X value in pixels.fromXProperty ()
Returns the DoubleProperty backing the from X value.
An AJO wrapping javafx.beans.property.DoubleProperty.getFromY ()
Returns the starting Y coordinate of the translation animation.
A double with the from Y value in pixels.fromYProperty ()
Returns the DoubleProperty backing the from Y value.
An AJO wrapping javafx.beans.property.DoubleProperty.setFromZ (double Val)
Sets the starting Z coordinate of the translation animation.
Val is a double with the starting Z coordinate in pixels.this object.getFromZ ()
Returns the starting Z coordinate of the translation animation.
A double with the from Z value in pixels.fromZProperty ()
Returns the DoubleProperty backing the from Z value.
An AJO wrapping javafx.beans.property.DoubleProperty.getToX ()
Returns the ending X coordinate of the translation animation.
A double with the to X value in pixels.toXProperty ()
Returns the DoubleProperty backing the to X value.
An AJO wrapping javafx.beans.property.DoubleProperty.getToY ()
Returns the ending Y coordinate of the translation animation.
A double with the to Y value in pixels.toYProperty ()
Returns the DoubleProperty backing the to Y value.
An AJO wrapping javafx.beans.property.DoubleProperty.setToZ (double Val)
Sets the ending Z coordinate of the translation animation.
Val is a double with the ending Z coordinate in pixels.this object.getToZ ()
Returns the ending Z coordinate of the translation animation.
A double with the to Z value in pixels.toZProperty ()
Returns the DoubleProperty backing the to Z value.
An AJO wrapping javafx.beans.property.DoubleProperty.setByX (double Val)
Sets the relative X offset applied each cycle of the animation.
Val is a double with the X offset in pixels added each cycle.this object.getByX ()
Returns the relative X offset applied each cycle of the animation.
A double with the by X value in pixels.byXProperty ()
Returns the DoubleProperty backing the by X value.
An AJO wrapping javafx.beans.property.DoubleProperty.setByY (double Val)
Sets the relative Y offset applied each cycle of the animation.
Val is a double with the Y offset in pixels added each cycle.this object.getByY ()
Returns the relative Y offset applied each cycle of the animation.
A double with the by Y value in pixels.byYProperty ()
Returns the DoubleProperty backing the by Y value.
An AJO wrapping javafx.beans.property.DoubleProperty.setByZ (double Val)
Sets the relative Z offset applied each cycle of the animation.
Val is a double with the Z offset in pixels added each cycle.this object.getByZ ()
Returns the relative Z offset applied each cycle of the animation.
A double with the by Z value in pixels.byZProperty ()
Returns the DoubleProperty backing the by Z value.
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.
Frac is a double in the range 0.0 (start) to 1.0 (end).this object.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.