xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmad Morad <mo...@db.informatik.uni-kassel.de>
Subject JSVGComponent
Date Mon, 04 Mar 2002 16:21:12 GMT
Hi all,

with the following code I want to render an SVG document wich I produced
someway :
        private JSVGCanvas viewport;
        SVGDocument svgDoc = domToSVGDom(node);

Then I got the following axception:

java.lang.ClassCastException: org.apache.batik.dom.GenericElementNS
        at org.apache.batik.dom.svg.SVGOMDocument.getRootElement(Unknown      
        at org.apache.batik.swing.svg.JSVGComponent.setSVGDocument(Unknown    
        at tcldbc.TclDBSVGViewer.viewTable(TclDBSVGViewer.java:244)


However the SVGDocument I produced is ok! and I can serialize it. Doing that
and saving it in a file. I get a correct SVG document which I can view with 
the SVGViewer or the Sample application with the batik sources. 

Has anybody an Idea about this Exception?


To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org

View raw message