RE: SVGDocument

2002-03-07 Thread Thomas E Deweese
>>>>> "TK" == Thierry Kormann <[EMAIL PROTECTED]> writes: >> SAXSVGDocumentFactory.createDocument(InputSource)!!! Why do we need >> the uri for creating an SVGDocument??? TK> Batik needs the URI of the SVG document to be able to resolve TK> relat

RE: SVGDocument

2002-03-06 Thread Thierry Kormann
> SAXSVGDocumentFactory.createDocument(InputSource)!!! Why do we > need the uri > for creating an SVGDocument??? Batik needs the URI of the SVG document to be able to resolve relative URIs that can specified in the document (such as xlink:href on a , ...).

SVGDocument

2002-03-06 Thread Ahmad Morad
Hi! A very simple question! I have an InputSource which is the stream of a socket. I want to read the SVG data from this stream and produce a SVGDocument which I can visualize with JSVGCanvas. -- private SVGDocument readSVGData(InputSource is) { ... // SVGDocument doc

Re: SVGDocument

2002-03-04 Thread Ahmad Morad
Hi > > private SVGDocument doc2svgDoc (Document doc) { > > SVGDocument svgDoc; > > svgDoc = > (SVGDocument)org.apache.batik.dom.util.DOMUtilities.deepCloneDocument(doc, > org.apache.batik.dom.svg.SVGDOMImplementation.getDOMImplementation()); &g

RE: SVGDocument

2002-03-01 Thread Stephane Hillion
> From: Ahmad Morad [mailto:[EMAIL PROTECTED]] > Sent: vendredi 1 mars 2002 11:21 > To: [EMAIL PROTECTED] > Subject: SVGDocument > > > Hi, > > In my Applikation I read the visualization from a socket. I read the > XML-Content from the Inputstream and produce a dom Do

SVGDocument

2002-03-01 Thread Ahmad Morad
SVGDocument object. In the batik API, the SVGDocument is a (dom) Document! So the type cast Document doc; SVGDocument svgDoc = (SVGDocument) doc; must be correct! However I got type a cast Ecception. It sounds to be a small a problem, but I don't really find a way how to create a SVGDoc

Creating SVGDocument from a Document ?

2002-02-28 Thread Ahmad Morad
rException { // Muß herausfinden wie ich aus dem DOM einen SVGDocument erzeuge // SVGDocument node = (SVGOMDocument) svgNode ; DOMImplementation impl = SVGDOMImplementation.getDOMImplementation(); SVGOMDocument node = new SVGOMDocument(null, impl) ; // nod