69
Multiple Transformation
We can make use of the combined effect of all the transformations on a node. For this purpose, JavaFX provides the method addAll(Transform obj1, Transform obj2….) which can be called anonymously on the reference returned by <node-obj>.getTransforms() method.
The following example implements all transformations on a rectangle.
Example:
The following example illustrates implementation of all the transformation on an object. Here, we have created a rectangle and applied the transformations i.e. translation, rotation, scaling and shearing on it.
Next TopicJavaFX Animation