Hi,
If layer are now preffered over plugins (see message below)
maybe we should rewrite UTMPlugin as UTMLayer?
I've seen MRGSPoint class but no MRGSLayer. Maybe someone
has such layer already implemented and could send its source code?
If not I'm going to make MRGS layer implementation based on
UTMPlugin as a code template (so my question about rewritting UTMPlugin
as layer).
Another qustion is for AzimuthalLayer. Has someone already write such layer
and could send source code to be added to OpenMap's codebase?
Regards,
Piotr Kaminski
----- Original Message -----
From: "Don Dietrick" <dietrick@bbn.com>
To: <MNewcomb@tacintel.com>
Cc: <openmap-users@bbn.com>
Sent: Saturday, May 15, 2004 3:36 AM
Subject: Re: [OpenMap Users] Layer vs. Plugin?
> Hi Michael,
>
> This is actually a very good question.
>
> On May 14, 2004, at 4:24 PM, MNewcomb@tacintel.com wrote:
>
> > UTMGridPlugin vs. GraticuleLayer
> >
> > Why was one built as a plugin and the other as a layer?
>
> The GraticuleLayer was one of the first layers ever written, before
> plugins were conceived. Plugins were invented to abstract some of the
> data access and OMGraphic creation away from layer management, so that
> the OMGraphics could be created in an object that could be used in a
> client or a server.
>
> The addition of OMGraphicHandlerLayer in 4.6 has made it pretty easy to
> create a Layer, even easier than a PlugIn.
>
> > Can you give me some differences between the two?
>
> A Layer is a Swing component. A PlugIn is an OMGraphic factory that
> can be used by a Layer.
>
> > When should I use Plugin/Layer?
>
> You should use a PlugIn if you think you may want to reuse the
> OMGraphic creation code in a server. Although I should point out there
> isn't any PlugIn server code, nor a client that could talk to one.
>
> I almost always write layers now that inherit from
> OMGraphicHandlerLayer. I put any code used to get to a data source to
> create OMGraphics in the com.bbn.openmap.dataAccess package tree, and
> then have a simple OMGraphicHandlerLayer use those components. The
> OMGraphicHandlerLayer
> has a bunch of new MouseEvent handling code in it that makes it really
> easy to react to mouse events in a common way, and that hasn't been
> translated into PlugIn yet.
>
> Hope this helps,
>
> Don
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Don Dietrick, dietrick@bbn.com
> BBN Technologies, Cambridge, MA
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
> --
> [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"]
>
-- [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 Sat May 15 07:33:03 2004
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:38 EDT