http://robowiki.net/w/index.php?title=Thread:User_talk:Skotty/Painting_with_AffineTransform/reply&feed=atom&action=historyThread:User talk:Skotty/Painting with AffineTransform/reply - Revision history2024-03-28T10:43:42ZRevision history for this page on the wikiMediaWiki 1.34.1http://robowiki.net/w/index.php?title=Thread:User_talk:Skotty/Painting_with_AffineTransform/reply&diff=22580&oldid=prevSkotty: Reply to Painting with AffineTransform2011-11-05T06:35:33Z<p>Reply to <a href="/wiki/Thread:User_talk:Skotty/Painting_with_AffineTransform" title="Thread:User talk:Skotty/Painting with AffineTransform">Painting with AffineTransform</a></p>
<p><b>New page</b></p><div>FYI: I worked around this problem by creating a proxy class for the Robocode Graphics2D object called WindowGraphics2D. The proxy class uses a subset of delegate methods to support many of the Graphics2D paint methods; in those methods, it manually shifts the text or shapes to the appropriate screen positions. To use a window, you extend the abstract WindowPainter class, which in turn allows painting through an abstract method with signature paintWindowComponent(WindowGraphics2D graphics, T paintable).</div>Skotty