I did some reading and I see that you basically override the
startInteraction method.  I'm having trouble connecting dots though.
How do I get from an actionPerformed(ActionEvent actionEvent) from an
ActionListener (zoom button pressed, for instance) to using this
interactor to tell the JSVGCanvas to zoom in a certain amount?  I
basically want Zoom+ and Zoom- buttons in my toolbar, like Squiggle.

Michael Bishop

-----Original Message-----
From: Tonny Kohar [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 13, 2005 3:18 PM
To: [email protected]
Subject: Re: Zooming in on an SVGCanvas?

Hi,

On Thu, 2005-10-13 at 14:00 -0400, Bishop, Michael W. CONTR J9C880
wrote:
> I'm looking through the source to the squiggle application since it
> seems to do exactly what I need.  I must be missing something; I see
> where the listener is registered, but I don't see the code that
> specifically tells a JSVGCanvas to "zoom" in or out.  Does someone
> know where the magic occurs?

It is on the interactor part.
Check this org.apache.batik.swing.gvt.AbstractZoomInteractor

Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com


---------------------------------------------------------------------
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