getIntersectionList returning only rectangle shape

Mayank <[email protected]>
Newsgroups gmane.text.xml.batik.user
Message-ID <[email protected]>
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.
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.