SVGGraphics2D
class (a subclass of Graphics2D), writing svg is just a matter of pluggin an instance of that class into a GraphicsContext, execute the code and write the result. To show you how easy it is here is the previous SWFRenderer example but with SVG this timeThis code produces the following SVG output
Because SVGRenderer uses a Graphics2D subclass all other nodes are automatically supported, this means gradients, filters, images, ... neat!
Keep on Groovying!