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.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.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.