AW: [OpenMap Users] Find all objects in box

From: Gubler, Rüdiger <rgubler@init-ka.de>
Date: Tue Aug 12 2003 - 10:00:10 EDT

I added this into my own OMGraphicList

        public List findAllClosest(Point ul, Point lr)
        {
                FilterSupport filter;
                Rectangle rect;

                filter = new FilterSupport(this);
                rect =
                        new Rectangle((int) ul.getX(), (int) ul.getY(), (int) (lr.getX() - ul.getX()), (int) (lr.getY() - ul.getY()));
                return filter.filter(rect).getTargets();
        }

Is this right?

Yours Ruediger

> -----Ursprüngliche Nachricht-----
> Von: Don Dietrick [mailto:dietrick@bbn.com]
> Gesendet: Dienstag, 12. August 2003 15:46
> An: "Gubler, Rudiger"
> Cc: Openmap-Users (E-Mail)
> Betreff: Re: [OpenMap Users] Find all objects in box
>
>
> Hi Ruediger,
>
> If you use a com.bbn.openmap.omGraphics.FilterSupport with the
> OMGraphicList, you can create a java.awt.Rect and get another
> OMGraphicList filtered to contain OMGraphics inside (or outside) the
> Shape. The OMGraphicHandler interface has methods supporting those
> kind of queries, so any OMGraphicHandlerLayer will have that
> functionality built in, too (using FilterSupport).
>
> - Don
>
>
> On Tuesday, August 12, 2003, at 09:17 AM, Gubler, Rüdiger wrote:
>
> >
> > Hi all,
> >
> > in which way can i get all objects from an omgraphiclist in a box
> > given by two awt-points?
> >
> >
> > Yours Ruediger
> >
> >
> >
> > --
> > [To unsubscribe to this list send an email to "majdart@bbn.com"
> > with the following text in the BODY of the message "unsubscribe
> > openmap-users"]
> >
> >
>
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Don Dietrick, BBN Technologies, dietrick@bbn.com
> 10 Moulton Street, Cambridge, MA 02138
> 617-873-3031 [fax]-2794
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Aug 12 10:00:29 2003

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:36 EDT