Hi Maik, 

I think, what you want is scripting your SVG. Have a look at
http://xml.apache.org/batik/javaScripting.html
In the first example code, "click" and the "SVGload" actions on the
JSVGCanvas are catched. For catching zoom-events you will need to add
something like this:
t.addEventListener("SVGZoom", new OnZoomAction(), false);
and you will need to implement the OnZoomAction class, where you can place
the code you want to be executed on zoom actions. Remember, that if you want
to change the SVGDocument you have to do this in the UpdateManager thread.

Hope that helped,
Kai.


-----Original Message-----
From: Maik Sch�rer [mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 1. Dezember 2004 10:25
To: Batik Users
Subject: how to catch resize events in JSVGCanvas via shift + right
mouse key


Hi there,
up to now I catch resize events in JSVGCanvas with a ComponentListener.
But it only works when the canvas (window) changes its size ....
Additional I want to catch events, when I change my SVG view via shift +
right mouse key + move (fast zoom in/out).
Ho can I do this ?
Thanks
Maik


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to