ucar.unidata.idv.ui
Interface ViewPanel

All Known Implementing Classes:
ViewPanelImpl

public interface ViewPanel

Manages the user interface for the IDV

Author:
IDV development team

Field Summary
static ImageIcon ICON_DEFAULT
          default icon
static ImageIcon ICON_GLOBE
          icon for globe views
static ImageIcon ICON_MAP
          icon for map views
static ImageIcon ICON_TRANSECT
          icon for transect views
 
Method Summary
 void addDisplayControl(DisplayControl control)
          Add the given display control
 void addViewMenuItems(DisplayControl control, List items)
          Add view menu items for the display control
 void controlMoved(DisplayControl control)
          _more_
 void displayControlChanged(DisplayControl displayControl)
          Called by the IDV when there has been a change to the display controls.
 JComponent getContents()
          Make, if needed, and return the contents
 void removeDisplayControl(DisplayControl control)
           
 void viewManagerAdded(ViewManager viewManager)
          Be notified of the addition of a VM
 void viewManagerChanged(ViewManager viewManager)
          Called when the ViewManager is changed.
 void viewManagerDestroyed(ViewManager viewManager)
          Called when the ViewManager is removed.
 

Field Detail

ICON_MAP

static final ImageIcon ICON_MAP
icon for map views


ICON_TRANSECT

static final ImageIcon ICON_TRANSECT
icon for transect views


ICON_GLOBE

static final ImageIcon ICON_GLOBE
icon for globe views


ICON_DEFAULT

static final ImageIcon ICON_DEFAULT
default icon

Method Detail

getContents

JComponent getContents()
Make, if needed, and return the contents

Returns:
the gui contents

addDisplayControl

void addDisplayControl(DisplayControl control)
Add the given display control

Parameters:
control - display control

viewManagerAdded

void viewManagerAdded(ViewManager viewManager)
Be notified of the addition of a VM

Parameters:
viewManager - The VM

viewManagerDestroyed

void viewManagerDestroyed(ViewManager viewManager)
Called when the ViewManager is removed. If we are showing legends in a separate window then we remove the tab

Parameters:
viewManager - The ViewManager that was destroyed

viewManagerChanged

void viewManagerChanged(ViewManager viewManager)
Called when the ViewManager is changed. If we are showing legends in a separate window then we update the tab label

Parameters:
viewManager - The ViewManager that was changed

displayControlChanged

void displayControlChanged(DisplayControl displayControl)
Called by the IDV when there has been a change to the display controls.

Parameters:
displayControl - The control that changed

removeDisplayControl

void removeDisplayControl(DisplayControl control)
Parameters:
control - The removed control

addViewMenuItems

void addViewMenuItems(DisplayControl control,
                      List items)
Add view menu items for the display control

Parameters:
control - the display control
items - List of menu items

controlMoved

void controlMoved(DisplayControl control)
_more_

Parameters:
control - _more_