JavaFX and (Affine)Transforms

Dr. Michael Paus mp at
Fri May 4 05:40:31 PDT 2012


I recently experimented a bit with the graphic features of JavaFX 
(Shapes, Group-Nodes and Transforms).
One thing I very quickly stumbled over is the missing support for any 
kind of mathematical operations
on (Affine) transforms. You can neither get at the matrix elements of a 
Scale, Translate, etc. (because
these Affine transforms are not even a sub-class of Affine) nor could 
you perform any operations on them
like for example combining two transforms into one or applying the 
transform or its inverse to a point.
Sometimes even the documentation is wrong (see for example Scale: The 
description of the matrix
completely ignores the pivot element which is an integral part of this 

I really wonder how you can write any sophisticated graphics program 
without support for such kind
of operations. Is there any magic way around this, which I don't know or 
has just nobody ever tried
to do that? There already exists a JIRA entry for this
but obviously I am the only person in the world, in addition to the 
original author, who is interested
in that. How can that be?


More information about the openjfx-dev mailing list