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 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.