Difference between revisions of "Thread:User talk:Skotty/Painting with AffineTransform/reply"

From Robowiki
Jump to navigation Jump to search
 
(No difference)

Latest revision as of 08:35, 5 November 2011

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).