18. Animation

Animation is one of the most important and exciting features of JavaFX. Although it is possible to create an animation using the Java2D application programming interfaces (APIs) in the Java platform, it is an order of magnitude simpler to do so with JavaFX. The Oxford English Dictionary defines animation as “the technique of filming a sequence of drawings or positions of models to create an illusion of movement.” Movement is only one facet of animation in JavaFX. As you see in this chapter, the basic animation facility is part of the core JavaFX platform, not the graphical user interface (GUI) libraries. It boils down to the ability to change the value of one or more variables over a defined period of time. Depending on which variables ...

Get JavaFX™ Developer’s Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.