Re: getIntersectionList returning only rectangle shape

DeWeese Thomas <[email protected]>
Newsgroups gmane.text.xml.batik.user
Message-ID <[email protected]>
Hi Mayank,

    I just modified the test in samples/tests/spec/scripting/intersectionList.svg to use circle ands ellipses and both worked perfectly for me.  Can you provide a standalone example?

On Jan 4, 2013, at 4:29 AM, Mayank <[email protected]> wrote:

> I have query regarding getIntersectionList(). I have implemented a Overlay
> which is used to get the selected area on the canvas. In this overlay I am
> trying to get the list of Node selected by user on the canvas.
> 
> svgDoc = this.helper.getSvgCanvas().getSVGDocument();
>    svgRect = svgDoc.getRootElement().createSVGRect();
>    svgRect.setX(x);
>    svgRect.setY(y);
>    svgRect.setWidth(width);
>    svgRect.setHeight(height);
>    nodeList = svgDoc.getRootElement().getIntersectionList(svgRect, null);
> 
> The nodeList which I get works perfectly for Rectangle node present on the
> Canvas it does not work for shapes like Ellipse or Polyline. Please correct
> me if I am missing something. Because ideally it should work for all shapes.
> Am I missing something?
> 
> 
> 
> 
> --
> View this message in context: http://batik.2283329.n4.nabble.com/getIntersectionList-returning-only-rectangle-shape-tp4655418.html
> Sent from the Batik - Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.