Having trouble rotating something you’ve drawn with GWTCanvas?
It took me a little while to work out, but GWTCanvas works slightly differently to Graphic2D in Java. It’s important to realise that with GWTCanvas, when you invoke “rotate(r)” you’re actually transforming the coordinate space that will be used for subsequent drawing.
In order to rotate it, you must invoke rotate before you start any drawing.
The same is also true for other transformation methods such as “scale” and “translate”.