I found out why I couldn't have a handle on a 'gvtRoot' and why 'getRenderingTransform()' wasn't returning an 'AffineTransform'.
I was reusing the code from http://xml.apache.org/batik/svgcanvas.html and inserted some code after the line "svgCanvas.setURI(f.toURL().toString());". The code I inserted was trying to get an 'AffineTransform' so I could scale the image. The problem, which I figured out by stepping through the code, was that I misconceptualized that after the call to 'JSVGCanvas.setURI()', the SVG document was fully realized and rendered. I isn't. That's why I couldn't touch 'JSVGCanvas.gvtRoot' and that 'JSVGCanvas.getRenderingTransform()' wasn't returning an 'AffineTransform'. My code is now moved in a listener which I fire once the SVG image is completely rendered. Thanks anyway ;) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
