I am using the Batik library, which is very useful to display SVG graphics in Java. For the basic use case of displaying and rendering an SVG document is quite simple to use. However, I want to do some other advanced graphic manipulation and I am struggling as I don't find any good resource that will allow me to perform the following types of task:
Is there any good resource or tips to use this library that you know about?
You might like to read through the slides of a tutorial session on using Batik that I presented at SVG Open a couple of years ago.
It may be worth looking at Java™ Drawing with Apache Batik: A Tutorial. The contents list looks pretty comprehensive.
I wrote an SVG display ages ago which used Batik and handled mouse events / colour changes. IIRC I had to make the changes to the SVG via the DOM interface since Batik didn't support that at all. Things may have changed now, of course.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With