CHRISTIAN:

You can perform all your transformations prior to display when the document is fully loaded. To do so you need to add a SVGDocumentLoaderListener to your JSVGCanvas:

svgCanvas.addSVGDocumentLoaderListener( new SVGDocumentLoaderAdapter() {
        public void documentLoadingStarted(SVGDocumentLoaderEvent e) {
                // Nothing to do here
        }

        public void documentLoadingCompleted(SVGDocumentLoaderEvent e) {
                SVGDocument  doc = e.getSVGDocument();
                // Apply all your transforms, change with and height, etc...
        }
});

Regards,

Andres.

On Sep 28, 2005, at 1:23 PM, Christian Platta wrote:

Hi,
how can i resize my svg image in the SvgCanvas before it is displayed for the first time? I want to use an AffineTrasform (no ViewBox). I think I have to use the UpdateManger somewhere but I can't get this thing working. Can someone post a short code snippet or a link that shows how to do this?

Christian
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to