xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "tomas lin" <tomas...@hotmail.com>
Subject Re: JSVGCanvas ZoomIn Action problem.
Date Sun, 06 Jul 2003 20:45:57 GMT
By default, the zoom Interactor is bound to Ctrl-Mouse Button 1.

You can turn this on and off with the call
JSVGCanvas.setEnableZoomInteractor(boolean b)

If you want to write your own, take a look at the way
org.apache.batik.swing.gvt.AbstractZoomInteractor is invoked in the
JSVGCanvas,

Basically you need to provide a Interactor class that extends the
AbstractZoomInteractor, define the
startInteraction( InputEvent ie ) method, and add an instance of it to the
canvas

JSVGCanvas.getInteractors.add( < new Instance > );

Anything fancier than the default interactor can be created by either
writing your own interactor or extending the AbstractZoomInteractor class.

You might want to look at both zoomInteractor and ImageZoomInteractor, one
is a real time zoom, the other allows you to lasso an area to zoom in.

-tomas

----- Original Message -----
From: Marios Depountis
To: batik-users@xml.apache.org
Sent: Saturday, July 05, 2003 8:14 PM
Subject: JSVGCanvas ZoomIn Action problem.


Hi,
I am trying to use the zoom in capability of JSVGCanvas but I cannot access
the protected class. Furthermore I tried to override the protected class but
still I could not make it work.
Could you please tell me how can I use the zoom capabilites of JSVGCanvas?
(If it easy send me some code) How can I access the class and how can I use
it?

Thanks in advance
Marios


Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

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


Mime
View raw message