Hi,
I'm new to SVG/Batik so please bare with me. I am trying to develop a SVG viewer/browser written in Java as part of
my project. I m using Apache-Batik framework. The app is working fine so far in that I can view SVG documents by putting them onto a JSVGCanvas. I also have buttons on the side that are used to zoom in and out.
I'm new to SVG/Batik so please bare with me. I am trying to develop a SVG viewer/browser written in Java as part of
my project. I m using Apache-Batik framework. The app is working fine so far in that I can view SVG documents by putting them onto a JSVGCanvas. I also have buttons on the side that are used to zoom in and out.
Now I would like the extra functionality of zooming in and out of a selected area as can be acheived by the use of ctrl + left button on the mouse. For this I would like a button on the user interface that will act like a toggle switch -
e.g. when pressed it will simulate ctrl key being pressed, when pressed again it will go back to normal form.
I ve been told to look at the ZoomInteractor class but if anybody could help but provideing psudo code it would be really helpful.
Thanks in advance,
Nedim
