xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From St├ęphane Conversy <conve...@cena.fr>
Subject getIntersectionList
Date Mon, 10 Oct 2005 16:26:52 GMT
Hi to all,

I try to use getIntersectionList. I do it on a SVGSVGElement I get 

SVGSVGElement myroot = (SVGSVGElement) 
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

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

View raw message