ucar.unidata.gis
Interface MapBean

All Known Implementing Classes:
ShapeFileBean, WorldMapBean

public interface MapBean

Wrap map Renderers as beans. This interface allows us to do a cute demo of dropping a bean into an application and having it show up on the toolbar and menu.

Version:
$Id: MapBean.java,v 1.8 2005/05/13 18:29:33 jeffmc Exp $
Author:
John Caron

Method Summary
 void addNewRendererListener(NewRendererListener l)
          this bean is a source of NewRendererEvent events
 Action getAction()
          Construct the Action that is called when this bean's menu item/buttcon is selected.
 Renderer getRenderer()
          each bean has one Renderer, made current when Action is called
 void removeNewRendererListener(NewRendererListener l)
          _more_
 

Method Detail

getAction

Action getAction()
Construct the Action that is called when this bean's menu item/buttcon is selected. Typically this routine is only called once when the bean is added. The Action itself is called whenever the menu/buttcon is selected. The action should have NAME, SMALL_ICON and SHORT_DESC properties set. The applications uses these to put up a buttcon and menu item. The actionPerformed() method may do various things, but it must send a NewRendererEvent to any listeners, if a new renderer (map) is chosen.

Returns:
the Action to be called.

getRenderer

Renderer getRenderer()
each bean has one Renderer, made current when Action is called

Returns:
_more_

addNewRendererListener

void addNewRendererListener(NewRendererListener l)
this bean is a source of NewRendererEvent events

Parameters:
l -

removeNewRendererListener

void removeNewRendererListener(NewRendererListener l)
_more_

Parameters:
l -