xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mayank <mayankma...@gmail.com>
Subject getIntersectionList returning only rectangle shape
Date Fri, 04 Jan 2013 09:29:34 GMT
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-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message