You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Tonny Kohar <to...@kiyut.com> on 2015/05/22 05:36:59 UTC

Re: how select elements under a rectangle

Hi,

> I'm a new Batik user, I use Batik to develop an SVG editor but I have same problems.
> I'm trying to select same elements under a rectangle of selection, I draw the rectangle using the method drawRect in a class that implement the Overlay interface but when I use the method getOverlay on a JSVGCanvas object it return an empity list. 
> I have use the methos getBBox but it can take only one element at time.

You must traverse the whole element in the DOC and check for bbox for
each element whether it is fit with your rect selection.

> Have I take a bad way?
There is no such thing as bad way, programming is an art :) 

Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com



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