Book Image

Mastering JavaFX 10

By : Sergey Grinev
5 (1)
Book Image

Mastering JavaFX 10

5 (1)
By: Sergey Grinev

Overview of this book

: JavaFX 10 is used to create media-rich client applications. This book takes you on a journey to use JavaFX 10 to build applications that display information in a high-performance, modern user interface featuring audio, video, graphics, and animation. Mastering JavaFX 10 begins by introducing you to the JavaFX API. You will understand the steps involved in setting up your development environment and build the necessary dependencies. This is followed by exploring how to work with the assets, modules, and APIs of JavaFX. This book is filled with practical examples to guide you through the major features of JavaFX 10. In addition to this, you will acquire a practical understanding of JavaFX custom animations, merging different application layers smoothly, and creating a user-friendly GUI with ease. By the end of the book, you will be able to create a complete, feature-rich Java graphical application using JavaFX.
Table of Contents (15 chapters)

Transformation effects

These effects distort the shape of the node, usually to imitate physical effects, for example, perspective or water waves.

These effects require quite a few parameters to set up and a bit of math is involved.

Setting up PerspectiveTransform

The PerspectiveTransform effect is another effect which tries to simulate 3D. It changes the node's dimensions so it appears to be viewed not from the top to the bottom but at an angle.

The API is slightly awkward—you need to set all four corners of the new image by setting eight coordinates by different method calls:

// chapter8/geometry/PerspectiveDemo.java
PerspectiveTransform pt = new PerspectiveTransform();
pt.setUlx(20); // upper-left
pt.setUly(20...