com.bbn.openmap.gui
Interface MapPanel

All Known Implementing Classes:
BasicMapPanel, DockMapPanel, OverlayMapPanel, TimelinePanel, TimeSliderPanel

public interface MapPanel

The MapPanel is a interface describing a component that contains a MapBean, MapHandler, menu widgets and all the other components connected to make an OpenMap map widget. A MapPanel is a self-contained OpenMap Swing component. It is expected that the MapPanel will extend from java.awt.Container. If it doesn't, it might not be automatically added to the OpenMapFrame or OpenMapApplet if it is found in the MapHandler.


Method Summary
 void addMapComponent(java.lang.Object obj)
          Add an object to the MapHandler in the MapPanel.
 void dispose()
          Tell the panel to release components.
 MapBean getMapBean()
          Get the MapBean used for the MapPanel.
 MapHandler getMapHandler()
          Get the MapHandler used for the MapPanel.
 javax.swing.JMenu getMapMenu()
          Get a JMenu containing sub-menus to control the map.
 javax.swing.JMenuBar getMapMenuBar()
          Get a JMenuBar containing menus to control the map.
 

Method Detail

getMapBean

MapBean getMapBean()
Get the MapBean used for the MapPanel.


getMapHandler

MapHandler getMapHandler()
Get the MapHandler used for the MapPanel. You should be able to use the MapHandler to get to any component used in the MapPanel.


getMapMenuBar

javax.swing.JMenuBar getMapMenuBar()
Get a JMenuBar containing menus to control the map. If you call this, don't call getMapMenu.


getMapMenu

javax.swing.JMenu getMapMenu()
Get a JMenu containing sub-menus to control the map. If you call this, don't call getMapMenuBar.


dispose

void dispose()
Tell the panel to release components.


addMapComponent

void addMapComponent(java.lang.Object obj)
Add an object to the MapHandler in the MapPanel.

Parameters:
obj - any object


Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details