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: batik-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org

Reply via email to