You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Thomas Tiedtke <ma...@thomas-tiedtke.de> on 2002/03/15 18:54:32 UTC

JSVGCanvas: zoom control

hallo,
i am using the batik JSVGCanvas in an java application. my question is: how
can i change the zoom of the svg image using buttons in my application?
example code would be  very helpful.

thanks
thomas

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


RE: JSVGCanvas: zoom control

Posted by Thierry Kormann <tk...@ilog.fr>.
> 	Can you tell us where in the SVG Browser code that actually
> makes the
> modification to the AffineTransform using 'setRenderingTransform'?


Well, load the file and search for 'svgCanvas.setRenderingTransform'.
That's the more quick and precise answer I can give you as I don't which
version of batik you are using.

Thierry.



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


RE: JSVGCanvas: zoom control

Posted by "Jeremy E. Denton" <jd...@galdosinc.com>.

Hi Thierry,

	Can you tell us where in the SVG Browser code that actually makes the
modification to the AffineTransform using 'setRenderingTransform'?

	I find that the svgBrowser is a well designed complete example but the
design is hard to find the exact subsection of code that one happens to be
looking for.

Jeremy E. Denton
----------------------------------------------------------------------------
Software Developer | Privileged or confidential information may be contained
Galdos Systems Inc | in this message. If this message was not intended for
                   | you, destroy it and notify us immediately. Opinions,
phone:             | conclusions, recommendations, and other information
(604)484-2762      | recommendations, and other information presented in
fax:               | this message are not given or necessarily endorsed by
(604)484-2755      | my employer or firm.
----------------------------------------------------------------------------

> -----Original Message-----
> From: Thierry Kormann [mailto:tkormann@ilog.fr]
> Sent: Sunday, 17 March 2002 3:04 AM
> To: Batik Users
> Subject: RE: JSVGCanvas: zoom control
>
>
>
> > i am using the batik JSVGCanvas in an java application. my
> > question is: how
> > can i change the zoom of the svg image using buttons in my application?
> > example code would be  very helpful.
>
> You may take a look at the JSVGViewerFrame class in the
> org.apache.batik.apps.svgbrowser package.
>
> You will find the code of the complete set of actions available in the
> svgbrowser application.
>
> The idea is the use the 'setRenderingTransform' method on the JSVGCanvas.
>
> Thierry.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
>
>


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


RE: JSVGCanvas: zoom control

Posted by Thierry Kormann <tk...@ilog.fr>.
> i am using the batik JSVGCanvas in an java application. my
> question is: how
> can i change the zoom of the svg image using buttons in my application?
> example code would be  very helpful.

You may take a look at the JSVGViewerFrame class in the
org.apache.batik.apps.svgbrowser package.

You will find the code of the complete set of actions available in the
svgbrowser application.

The idea is the use the 'setRenderingTransform' method on the JSVGCanvas.

Thierry.



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