Multi-JgoView saved as a Multipage SVG


#1

Let’s say that I have two JGoView that I would like to save in on SVG file. Is it supported by the JGo package? What would you suggest?


#2

You could create a subclass of SVGGoView that implemented a new method:
RenderToSVGGraphics2D()
This method could take an SVGGraphics2D as an argument and paint the view to that Graphics2D (see SVGGoView.generateSVG() for an example of how to do this).
You could then create an SVGGraphics2D object, call RenderToSVGGraphics2D() on both the views, and finally stream out the SVG to your outputSteam.