Tino APCS

Other Transitions

TranslateTransition

The TranslateTransition class moves a node linearly from a start to end coordinate. Here are important methods:

Method Description
setFromX(double) Sets the start x-coord
setFromY(double) Sets the start y-ccord
setToX(double) Sets the end x-ccord
setToY(double) Sets the end y-ccord
setByX(double) Moves by this amount relative to current pos
setByY(double) Moves by this amount relative to current pos

Notes:

There is a z-coordinate in the API because TranslateTransitions also apply to 3D objects in JavaFX. The same is true for RotateTransition where you can use the setAxis() method to specify a different rotation axis in 3D.

FadeTransition

The FadeTransition class fades a Node in or out

ScaleTransition

The ScaleTransition class expands or shrinks a Node

Dark Mode

Outline