Hello,
ich have a problem with the FilterSupport.
I have data like this:
<<Selection.bmp>>
The green and blue line should represent the map-data.
The red square is the searcharea i use with the
filtersupport.
Now i get the green and blue objects from the filter but i
expect only the blue one.
Whats wrong?
Here is my code from my own class extending OMGraphicList:
public List findAllClosest(Point ul, Point lr)
{
FilterSupport filter;
Rectangle rect;
OMGraphicList omgl;
filter = new FilterSupport(this);
rect = new Rectangle(
(int) ul.getX(),
(int) ul.getY(),
(int) (lr.getX() - ul.getX()),
(int) (lr.getY() - ul.getY()));
omgl = (OMGraphicList) filter.filter(rect);
filter.resetFiltering();
return omgl.getTargets();
}
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"]
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:36 EDT