O'Reilly logo

Essential JavaFX™ by Paul Anderson, Gail Anderson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

7. Animation

If the scene graph is the central metaphor in JavaFX for specifying graphical objects, then animation is its metaphor for doing things. Animation is the heart and soul of JavaFX. Simply, it brings objects to life. With animation, you give motion to the JavaFX scene graph.

JavaFX provides a rich palette for animation. With Timelines, you can build just about any animation you need. Timelines provide a range of properties that let you specify how an object’s properties might change over time. With binding, you can manipulate script-level variables that consequently change an object’s bound properties. Timelines also let you specify interpolators, rate, time, repeat count, new values, and actions. You can even nest timelines and create ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required