xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bishop, Michael W. CONTR J9C880" <Michael.Bis...@je.jfcom.mil>
Subject RE: Zooming in on an SVGCanvas?
Date Thu, 13 Oct 2005 19:23:26 GMT
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:tonny@kiyut.com] 
Sent: Thursday, October 13, 2005 3:18 PM
To: batik-users@xmlgraphics.apache.org
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: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message