The layer has a getGUI() method, you would return a java.awt.Component
with the interface you want for the layer. This interface can be
brought up programmatically through the layer in a separate window, or
through the GUI LayersPanel.
Alternatively, you could make your layer implement the
com.bbn.openmap.gui.Tool interface, and those components would show up
in the ToolPanel above the map.
- Don
On Mar 30, 2004, at 7:16 AM, h0004429@eee.hku.hk wrote:
> Dear Don,
> Would you mind elaborate more on the method you mentioned below by
> using the
> getGUI method of the layer and adding it from the Mapbean. Since I am
> using the
> OpenmapApplet as my framework, I just dont' know how and where to add
> my code.
>
> Thousands Thanks
> Yours sincerely,
> James
>
>
>
> I don't advise adding Swing components to a layer, it messes things up.
> Those components don't really get laid out, and if they do, they grab
> all MouseEvents that the MapBean generates.
>
> You should add GUI components for a layer to the layer's palette
> provided in it's getGUI method, in other GUI components accessed via
> the MapBean, or in a different plane in the MapBean.
>
> - Don
>
>
> --
> [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 Wed Mar 31 08:24:34 2004
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:38 EDT