[BATIK] Rectangle links to other SVG-Document/Webpage

G

Gemmel

Hi,

im using batik to draw several rectangles via graphics2D.

now i would like to add a link to another html or svg document to the
rectangle. if the user clicks on the rectangle, the other document
should appear.

how can this be done using batik?

thanks!
 
M

Martin Honnen

Gemmel wrote:

im using batik to draw several rectangles via graphics2D.

now i would like to add a link to another html or svg document to the
rectangle. if the user clicks on the rectangle, the other document
should appear.

SVG knows links e.g.
<a xlink:href="whatever.svg"><rect ... /></a>
but I don't know what happens in a Java application drawing SVG.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top