The short answer is no, there is no way for SVGGraphics2D to generate SAX events. The reason is that SVGGraphics2D structures the graphics so as to limit the number of attributes it writes out. So when you make a drawing call, this may have an impact on more than just the element you draw.
This said, you could have a look a the SVGGraphics2D's parent class which makes it easier to write a Graphics2D and use that as a base class to do what you want. My belief is that the generated SVG would be less efficient, but I also think it can be done.
Vincent.
jcplerm wrote:
Is there a way of having SVGGraphics2D write SAX events to a content handler, rather than building an entire DOM tree for AWT drawing calls?Is there another Batik class available that does that?The reason I'm asking is that DOM consumes too much memory, and I actually have no need at all to manipulate that tree in memory after the drawing calls are completed. The SAX model would be the perfect one, especially when streaming the SAX events down a Cocoon pipeline.Thanks a lot,jlerm
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]