I believe your problem is similar to mine. If you get a response could you
send me a copy. (I working on a getPointAtLength and getTotalLength issue.)
If I come across a solution to my problem I'll forward my solution.
BTW - Mine is returning a null pointer exception right after the same type of
statement as yours: SVGSVGContext ctx = ........, when I'm accessing the ctx
variable.
For this reason I believe they are related.
On Tuesday 11 October 2005 08:11 am, Stéphane Conversy wrote:
> does someone have a minimal program that illustrates the use of
> getIntersectionList or getEnclosureList, so I can figure out what
> happens by myself ?
>
> I can't even find a test program in the src distrib...
>
> best regards,
>
> s.
>
> Le 10 oct. 05, à 18:26, Stéphane Conversy a écrit :
> > Hi to all,
> >
> > I try to use getIntersectionList. I do it on a SVGSVGElement I get
> > using:
> >
> > SVGSVGElement myroot = (SVGSVGElement)
> > svgCanvas.getSVGDocument().getDocumentElement();
> > NodeList l=myroot.getIntersectionList(rect, null);
> >
> > I got an null pointer exception in getIntersectionList:
> >
> > public NodeList getIntersectionList ( SVGRect rect,
> > SVGElement referenceElement ) {
> > SVGSVGContext ctx = (SVGSVGContext)getSVGContext();
> > List list = ctx.getIntersectionList(rect, referenceElement);
> > return new ListNodeList(list);
> > }
> >
> > because 'ctx' is null (event after rendering has been done). What did
> > I miss ?
> >
> > best regards.
> >
> > --
> > stéphane conversy
> > http://www.tls.cena.fr/~conversy
> stéphane conversy
> http://www.tls.cena.fr/~conversy
--
Roy Hollinger
Senior Software Engineer
ProLogic, Inc.
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]