Hello I've a question about Batik that I'm using for the first time.

When I use SVGGraphics2D and create a shape, how can I refenece it in a DOM style, using an Id and, for example, add an onclick event ?

The site example only says :
g2d.setPaint(Color.red);
g2d.fill(new Rectangle(10, 10, 100, 100));

but how could i set additional attributes?

Thanks in advance,
kiuma