Up front the simplest answer to your question is that Batik is a toolkit and as such it tries to have tools for very many different tasks.
Danny Browne wrote:
As an example: I am using the following code to create and add elements to the SVG document:
Document doc = svgCanvas.getSVGDocument(); [...]
While i know this to be a correct implementation,
I assume this code is implicetly wrapped with a call to 'invokeAndWait' on the UpdateManager RunnableQueue?
i was wondering where this leaves the SVGGraphics2D class. I presume adding elements in this way avoids utilising this class.
It does avoid using that class.
Is this any better or worse?
It is different, I make no value judgments :)
Does this mean (in this case) that the SVGGraphics2D svgGenerator is only used when writing SVGdocuments to file??
This is probably what it is most commonly used for. Existing applications that do a lot of drawing using Java2D and they want to be able to persist those drawings in a vector graphics format.
I am a little confused as to why there seems to be so many different ways of generating SVGcontent. Why is the SVGGraphics2D module dealt within such depth on the apache website if it is not even being used by many people.
I think it is used by quite a few people. Just search the list there are quite a number of questions that come up on this topic. I think it is often used by 'internal' applications so they can deliver printable graphics, tables etc to clients that don't have Java.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]