[prev in list] [next in list] [prev in thread] [next in thread]
List: batik-users
Subject: RE: how do i zoom but not =?UTF-8?Q?scale=3F?=
From: "Dan Slater" <dslater () simulsoft ! com>
Date: 2008-06-23 16:58:04
Message-ID: 20080623095804.96eb39807769d511dfec8ecf2652399e.d110f005f0.wbe () email ! secureserver ! net
[Download RAW message or body]
<html><body>I would look into the JSVGCanvas source in \
xml-batik\sources\org\apache\batik\swing (Windows path). That will show \
you:<br><br>AbstractAction-->AffineAction-->ZoomAction-->ZoomInAction<br><br>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.<br><br>I originally tried manipulating the viewBox but found it to be slow \
and somewhat clunky. Setting the rendering transform is probably what you \
want.<br><br>Hope this helps...<br><br>Dan Slater<br><br> <blockquote webmail="1" \
style="border-left: 2px solid blue; margin-left: 8px; padding-left: \
8px;">
-------- Original Message --------<br>
Subject: Re: how do i zoom but not scale?<br>
From: "Helder_Magalhães" <helder.magalhaes@gmail.com><br>
Date: Mon, June 23, 2008 4:18 am<br>
To: <a href="mailto:batik-users@xmlgraphics.apache.org">batik-users@xmlgraphics.apache.org</a><br>
<br>
> how can i zoom and not scale? not scale meaning the size/dimension of an<br>
> element remains the same even if i zoom? what classes should i look into?<br>
<br>
I'm not familiar on how to do this in a Batik-centric way. SVG, on the<br>
other hand, provides powerful enough mechanisms to achieve this using<br>
a script implementation - checkout Kevin Lindsey's site [1], Anti Zoom<br>
And Pan sample in particular [2].<br>
<br>
This effect can be likely achieved within Batik, probably with<br>
improved performance/usability, but I don't know any publicly<br>
available samples on this matter. Searching the Batik mailing lists<br>
[3] (for terms such as "iCTM", "inverse matrix" and/or "SVGZoom") may<br>
help narrowing the list of related posts. ;-)<br>
<br>
Hope this helps,<br>
<br>
Helder Magalhães<br>
<br>
[1] <a href="http://kevlindev.com/" target="_blank" \
mce_href="http://kevlindev.com/"><a \
href="http://kevlindev.com/">http://kevlindev.com/</a></a><br> [2] <a \
href="http://kevlindev.com/gui/utilities/azap/index.htm" target="_blank" \
mce_href="http://kevlindev.com/gui/utilities/azap/index.htm"><a \
href="http://kevlindev.com/gui/utilities/azap/index.htm">http://kevlindev.com/gui/utilities/azap/index.htm</a></a><br>
[3] <a href="http://xmlgraphics.apache.org/batik/mailing-lists.html" target="_blank" \
mce_href="http://xmlgraphics.apache.org/batik/mailing-lists.html"><a \
href="http://xmlgraphics.apache.org/batik/mailing-lists.html">http://xmlgraphics.apache.org/batik/mailing-lists.html</a></a><br>
<br>
---------------------------------------------------------------------<br>
To unsubscribe, e-mail: <a onclick="return \
true;Popup.composeWindow('pcompose.php?sendto=batik-users-unsubscribe%40xmlgraphics.apache.org'); \
return false;" href="http://email.secureserver.net/pcompose.php#Compose" \
mce_href="http://email.secureserver.net/pcompose.php#Compose">batik-users-unsubscribe<b></b>@xmlgraphics.apache.org</a><br>
For additional commands, e-mail: <a onclick="return \
true;Popup.composeWindow('pcompose.php?sendto=batik-users-help%40xmlgraphics.apache.org'); \
return false;" href="http://email.secureserver.net/pcompose.php#Compose" \
mce_href="http://email.secureserver.net/pcompose.php#Compose">batik-users-help<b></b>@xmlgraphics.apache.org</a><br>
<br>
</blockquote></body></html>
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic