You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Oscar Picasso <os...@yahoo.com> on 2006/01/22 20:34:31 UTC
Re: NullPointerException for flow text 'text content' interfaces [Oups]
Oups, forget about my previous post.
Just when I just hit the sent button, I realized that I missed to call the methods inside an 'on load' listener'.
Sorry
Oscra
Oscar Picasso <os...@yahoo.com> wrote: Hi,
on a previous reply to one of my post thomas.deweese@kodak.com wrote:
>> 'text content' interfaces from the SVG DOM should be fully
>> functional for flow text.
It seems that the TextContentElement method returns a NullPointerException. This is what happen at least with flowPara and flowSpan.
These elements where retrieved from a DOM built based on a SVG file. The file itself render correctly in squiggle and I have checked that the elements themselves are not null.
The methods I have tried are :
- getExtentOfChar
- getEndPositionOfChar
- getNumberOfChars
- getComputedTextLength
They all return the exception. I have not tried the other 'text content' methods.
Any idea?
Oscar
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------
Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.