[OpenMap Users] Confused about Filters

From: Matt Brennan <lists@classforge.com>
Date: Tue Mar 30 2004 - 01:42:03 EST

hi there,
        i have a layer that extends OMGraphicsHandlerLayer and a filter
extending FilterSupport. the filter, created during the layer
constructor overrides the default 'filter' instance variable in OMGHL.

in general, i'd like the filter to be applied always to affect the
visibility of OMGraphics in the list - say to selectably display just
OMCircles vs OMPolys based on an 'instanceof' test...

i can see calls to getList and setList being generated, but no calls to
actually apply the FilterSupport's "filter()" methods.

so my questions are:

- should my layer manually perform this filtering step ?

- and where should this filtering be done to fit in with the OpenMap
orthodoxy in terms of the standard OMGHL prepare() drawing sequence?

(i sort of though this would already happen for free since each OMGHL
already has a default instance of FilterSupport available - and was kind
of expecting to see a call to filter(OMGraphicList omgl,
                        Area area, boolean getInsideArea) somewhere in
the generate/paint sequence.)

and finally:

- is there a good example of filters at work in the 4.6 codebase?

thanks in advance for any advice. :-)

   matt

--
[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 Mar 30 01:43:36 2004

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