Posted by pietblok
on April 22, 2009 at 8:16 AM PDT
For anyone interested in the TransformUI: the blog has again been updated.
The TransformUI has been redesigned completely to better fit in the concept of JXLayer. The TransformPort has been removed. The TransformUI can handle any view of JXLayer now.
Also, the provider for a transformation is now implemented as a model: an interface TransformModel and a default implementation DefaultTransformModel.
For me, the greatest news is that I finally succeeded to use the JavaFX RepaintManager delegate facility. When it works (and I do hope it will work with java versions starting with 6u10), the whole thing has become much more simple. No more clashes with other RepaintManagers.
During class initialization a reflection check is made to see if the needed SwingUtilities3 method setDelegateTransformManager is available. If yes, the new mechanism is used. If not: the old mechanism.
The SwingUtilities3 class states clearly that the API should not be used, because it may change even between update releases. I do hope however that the check that I make is sufficient to guard against that possibility.
(Thank you Alex, for the tip some time ago)
Note: the javadoc for the TransformUI (and others) is generated with the source option. When you want to read the source, you can find it in the API doc. No need to download the sources if you only want to see how it works.
Forgot to include a link
Message was edited by: pietblok