Hello, I have written a graphics application with a custom data model which is drawn onto an Graphics2D. I can easily export the content as "normal" SVG with the help of the SVGGraphics2D as described in http://xmlgraphics.apache.org/batik/svggen.html#howToUse, but this is rather useless as all elements are tagged like "<path d="M-309 ... Z style="stroke:none;" />". Now I want to export my data-model as custom SVG, to display it in a browser and add interaction to it with JavaScript. So for some special elements of my data-model I need some meta-data information (at least the id) to be able to identify the right elements and obtain some more information about them. How can I do that? After searching a while in the documentation I couldn?t find something useful, which would help me with my problem. I tried to write an own DomExtension like proposed in http://xmlgraphics.apache.org/batik/extendingBatik.html#domExtension but I have no idea how or where to register that extension and this does not really solve my problem, as the the new Element also doesn?t know my data-model-object. I also implemented an custom SVGIDGenerator and added it to the SVGGeneratorContext of my SVGGraphics2D, but it is never used/called? Can anyone help me with my problem or can give me a hint how to do this or point me to some useful code example?
Thanks ins advance. Daniel --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
