Humberto Yeverino wrote:
I have been looking for a way to render a generated
document but it seems the only way to get an
SVGDocument for JSVGCanvas is to parse a file.

I've been poking around with a subclass of JSVGCanvas
and GraphicsNodes but I was wondering if there is an
easier way.

The usual way to render an already loaded document is:


JSVGComponent.setSVGDocument(SVGDocument doc);

In all versions except 1.5 (Final) doc must be an instance
of our SVG Dom: org.apache.batik.dom.svg.SVGDOMImplementation/SVGOMDocument
In 1.5 it will 'convert' your document for you (deep clone), there
is also a 'setDocument(Document doc)' call that you can make in 1.5
that will take any document and try to render it as an SVG (of
course if it doesn't have an 'svg' element as it's root element
it is not a renderable SVG document).



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



Reply via email to