AbstractAction-->AffineAction-->ZoomAction-->ZoomInAction
Especially, AffineAction in JSVGCanvas shows how to manipulate the rendering transform. You should be able to use the same method to create your own custom zoom actions.
I originally tried manipulating the viewBox but found it to be slow and somewhat clunky. Setting the rendering transform is probably what you want.
Hope this helps...
Dan Slater
-------- Original Message ----------------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Subject: Re: how do i zoom but not scale?
From: "Helder_Magalhães" <[EMAIL PROTECTED]>
Date: Mon, June 23, 2008 4:18 am
To: [email protected]
> how can i zoom and not scale? not scale meaning the size/dimension of an
> element remains the same even if i zoom? what classes should i look into?
I'm not familiar on how to do this in a Batik-centric way. SVG, on the
other hand, provides powerful enough mechanisms to achieve this using
a script implementation - checkout Kevin Lindsey's site [1], Anti Zoom
And Pan sample in particular [2].
This effect can be likely achieved within Batik, probably with
improved performance/usability, but I don't know any publicly
available samples on this matter. Searching the Batik mailing lists
[3] (for terms such as "iCTM", "inverse matrix" and/or "SVGZoom") may
help narrowing the list of related posts. ;-)
Hope this helps,
Helder Magalhães
[1] http://kevlindev.com/
[2] http://kevlindev.com/gui/utilities/azap/index.htm
[3] http://xmlgraphics.apache.org/batik/mailing-lists.html
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
