xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DeWeese Thomas <thomas.dewe...@gmail.com>
Subject Re: adding event listeners to svg elements via batik
Date Sat, 16 Feb 2013 12:58:52 GMT
Hi ELDEM,
   You can use DOM Events to register Java callbacks on your SVG document.

http://www.w3.org/TR/DOM-Level-2-Events/events.html

	Thomas

On Feb 13, 2013, at 12:35 PM, can <eldemcan@gmail.com> wrote:

> Good afternoon;
>  
> I am currently working on a project with java swing, batik and i am dealing with svg.
I am displaying diagrams on JSVGcanvas in swing. I would like to run a java method when user
clicks on a specific element in displayed diagram.
>  
> For example;
>  
> http://argouml-stats.tigris.org/documentation/manual-0.32/images/reference/sequence_diagram.gif
>  
> when user clicks box named "thirdClass" I want to trigger a java method.
>  
> Is it possible to do this ?
>  
> regards...
>  
> Can ELDEM


Mime
View raw message