Hi Niko.

nboire:
> I have a null pointer exception when i tried to get computedLength of a
> text woth batik 1.6
> 
> java.lang.NullPointerException
>   at
> org.apache.batik.dom.svg.SVGTextContentSupport.getComputedTextLength(Unk\
> nown Source)
> 
> Code :
> 
> SVGDocument doc = new SVGDom().getSVGDocument(uri);
> Element txt2 = doc.getElementById("txt2");
> SVGOMTSpanElement SVGtxt2 =  (SVGOMTSpanElement)txt2;
> SVGtxt2.getComputedTextLength();   ->  NullPointerexception

To get such ‘dynamic’ information from the SVG DOM, you need to make
sure that the graphics tree has been built.  See:

  http://wiki.apache.org/xmlgraphics-batik/BootSvgAndCssDom

-- 
Cameron McCormack, http://mcc.id.au/
        xmpp:[EMAIL PROTECTED]  ▪  ICQ 26955922  ▪  MSN [EMAIL PROTECTED]


-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to