Java 2D and Groovy, A Perfect Match
After introducing Groovy to the audience, Andres demoed GraphicsBuilder. GraphicsBuilder is to Java2D what SwingBuilder is to Swing. The builder pattern is commonly used with great effect in Groovy due to the languages dynamic and reflective nature. GraphicsBuilder can be used to draw basic shapes, those included in Java 2D which is not much, and many more shapes like stars, triangles, balloons, crosses, arrows, donuts, etc. GraphicsBuilder has import and export to SVG via Batik and has partial experimental export to Flash’s SWF format. Andres recreated JavaFX demos simply using Groovy and GraphicsBuilder.