I was close...I was looking at SVGDocumentFactory before I looked for
help.  The previous demo I did loaded the document via the setURI method
on the JSVGCanvas, but I have an SVGDocumentManager class that dictates
what's on the canvas, not the other way around.  I assume the canvas
will update when I replace the document.  I'll be finding out soon
enough!

Michael Bishop

-----Original Message-----
From: Thomas DeWeese [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 16, 2005 1:45 PM
To: [email protected]
Subject: Re: Basic SVG management in Batik with white-boarding.

Bishop, Michael W. CONTR J9C880 wrote:
> For saving and loading, I've managed to write the file properly.  I've
> also managed to load the XML as a Document, but I can't cast it to an
> SVGDocument.  How do I get an SVGDocument in memory that I can then
set
> on the JSVGCanvas?

    Use the class 'batik.dom.svg.SAXSVGDocumentFactory'
It should be fairly strait forward.  Also you could
just set the URL of the document on the JSVGCanvas directly
(there is a callback when the document is loaded where you
could manipulate it a bit).



---------------------------------------------------------------------
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