Hi Alexander,
Alexander Philippi wrote:
Now I want to start a new Java Servlet project with the aid of batik (because I don�t really like the System.out solution).
At the moment I draw Rectangles, Lines, etc. with "Graphics 2D" and transform the result to SVG with:
[...]
Now my problem: I want to use "features" of my old project. But I dont know how I can: - use adobe Scrollbar javascript (to scroll SVG Viewer files) - use "mouse over" events over a Rectangle (e.g. tooltip) - draw Rectangle directly (without Graphics 2D and the transfrom to SVG) - create markers with Batik - include javascript functions and many more :)
With the SVGGraphics2D you can get the subtree that was drawn using the 'getRoot' method. Once you have the subtree you can 'insert' it into your dynamic document where ever it might be appropriate.
You see I need some kind of "Basic Tutorial" how I
make my first steps with Batik. Could you help me out?
My initial suggestion would be create a skeleton SVG file that has the basic structure you want, read that using the SAXSVGDocumentFactory class and then manipulate the document as a DOM tree (inserting your newly drawn pieces where appropriate - probably making use of functions like getElementById to find insertion points).
Then serialize the resultant document using something like DOMUtilities.writeDocument.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
