Chapter 7Applying Effects and Transformations

Key Skills & Concepts

• Applying effects to shapes and images

• Moving images in an application

• Rotating images and shapes

In Chapter 6 you learned how to write images to the screen using the FXDNode and ImageView nodes. In Chapter 4 you learned how to create different shapes and place them around your application. In this chapter you begin to apply effects and transitions to these images and shapes.

The first section of this chapter covers effects. JavaFX has a comprehensive list of effects you can apply to many objects within your scripts. These effects have a stunning impact on your applications and can be used to create almost any desired look or feel.


As of the 1.3 release of JavaFX, ...

Get JavaFX A Beginners Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.