Batik has [a class](https://xmlgraphics.apache.org/batik/using/svg-generator.html) to render a `Graphics2D` context to SVG. Modern browers render SVG just fine, and this could give the opportunity to add client-side events relatively simply.
Batik has a class to render a
Graphics2Dcontext to SVG.Modern browers render SVG just fine, and this could give the opportunity to add client-side events relatively simply.