Community
Participate
Working Groups
No way to expose advanced transformation capabilities at a draw2d level. API required to in Graphics interface to allow this.
Every method that is on Transform, is also on draw2d Graphics, which manages a Transform object internally so that it can push and pop states, and so that it can modify the current clipping when possible. We could allow someone to set the transform exactly, just like we allow setClipping. But I'm not sure how that would be better.
When mapping between AWT Graphics2D to draw2d Graphics it's not possible to extract a rotation value from the transform. This will be a requirement when (if) Batik gets integrated into GEF down the line so that we can render the Batik SVG directly onto a Graphics2D adaptor that maps to a draw2d Graphics class. Currently I have to bypass the draw2d graphics object and map directly to an SWT GC.
A method which takes 6 floats would be fine with me. But this requires careful testing with regards to pushing the state (probably can't be supported) and throwing out the Clipping representation.
(In reply to comment #2) > [...] Currently I have to bypass the draw2d graphics object and map directly > to an SWT GC. > Steve, where is this code?