Re: [JAVA2D] Problem rendering text with affine transforms

2009-04-01 Thread java2d
Thanks, works great! I love simple solutions :) [Message sent by forum member 'typically' (typically)] http://forums.java.net/jive/thread.jspa?messageID=340052 === To unsubscribe, send email to lists...@java.sun.com and

[JAVA2D] Problem rendering text with affine transforms

2009-03-24 Thread java2d
Hi all, Couldn't find a specific thread addressing this, so I'll post a new one. It may just be that I am still naive about Java2D... I have a simple window which renders stuff and draws a grid on top. I've recently added code which renders labels for the grid lines; this works fine, except

Re: [JAVA2D] Problem rendering text with affine transforms

2009-03-24 Thread java2d
With setTransform(transform), you are completely replacing the existing transform. Use [b]Graphics2D.transform(transform)[/b] instead, to preserve the transformation values that have been previously set by the paint mechanism. Piet [Message sent by forum member 'pietblok' (pietblok)]