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 Paul Davern <p....@4c.ucc.ie> on 2009/03/04 13:43:15 UTC
remember zoom from previous document
Hello,
I have placed a slider into the squiggle app to show a set of .svg files which represent the progress of a graph search. When I zoom in on a given svg file using left mouse and ctrl I want that transform to be remembered when the user moves to the next document in the set.
I do the following
// do a zoom
....
AffineTransform old =svgCanvas.getRenderingTransform();
....
// add new document
svgCanvas.setURI(filename);
AffineTransform new =svgCanvas.getRenderingTransform();
svgCanvas.setRenderingTransform(old);
I can't get the JSVGCanvas to apply the old document's transform on the new document? Strange that old appears to be the same as new, why is this?
Thanks,
Paul.