CHAPTER 21

image

Understanding Transformations

In this chapter, you will learn:

  • What a transformation is
  • What are translation, rotation, scale, and shear transformations and how to apply them to nodes
  • How to apply multiple transformations to a node

What Is a Transformation?

A transformation is a mapping of points in a coordinate space to themselves preserving distances and directions between them. Several types of transformations can be applied to points in a coordinate space. JavaFX supports the following types of transformation:

  • Translation
  • Rotation
  • Shear
  • Scale
  • Affine

An instance of the abstract Transform class represents a transformation in JavaFX. ...

Get Learn JavaFX 8: Building User Experience and Interfaces with Java 8 now with O’Reilly online learning.

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