ucar.unidata.idv
Class MapViewManager

java.lang.Object
  extended by ucar.unidata.collab.SharableImpl
      extended by ucar.unidata.idv.ViewManager
          extended by ucar.unidata.idv.NavigatedViewManager
              extended by ucar.unidata.idv.MapViewManager
All Implemented Interfaces:
ActionListener, ItemListener, EventListener, Sharable, ControlListener, DisplayListener

public class MapViewManager
extends NavigatedViewManager

A wrapper around a MapProjectDisplay display master. Provides an interface for managing user interactions, gui creation, etc.

Author:
IDV development team

Nested Class Summary
static class MapViewManager.ProjectionCommand
          Class ProjectionCommand manages changes to the projection
 
Nested classes/interfaces inherited from class ucar.unidata.idv.ViewManager
ViewManager.MatrixCommand
 
Field Summary
static String PREF_ADDRESS_LIST
          _more_
static String PREF_ADDRESS_REPROJECT
          _more_
static String PREF_AUTOROTATE
          Preference for autorotate in globe mode
static String PREF_PERSPECTIVEVIEW
          Preference for showing display in perspective view_
static String PREF_PROJ_DFLT
          Preference for default projection
static String PREF_PROJ_USEFROMDATA
          Preference for setting projection automatically from data_
static String PREF_SHOWEARTHNAVPANEL
          Preference for showing the earth nav panel
static String PREF_SHOWPIP
          Preference for showing the pip
static String SHARE_PROJECTION
          Defines the projection when sharing state
 
Fields inherited from class ucar.unidata.idv.NavigatedViewManager
CMD_NAV_DOWN, CMD_NAV_HOME, CMD_NAV_LEFT, CMD_NAV_RIGHT, CMD_NAV_ROTATELEFT, CMD_NAV_ROTATERIGHT, CMD_NAV_SMALLDOWN, CMD_NAV_SMALLLEFT, CMD_NAV_SMALLRIGHT, CMD_NAV_SMALLROTATELEFT, CMD_NAV_SMALLROTATERIGHT, CMD_NAV_SMALLTILTDOWN, CMD_NAV_SMALLTILTUP, CMD_NAV_SMALLUP, CMD_NAV_SMALLZOOMIN, CMD_NAV_SMALLZOOMOUT, CMD_NAV_UP, CMD_NAV_ZOOMIN, CMD_NAV_ZOOMOUT, cursorReadoutWindow, PROP_VERTICALRANGE, SHARE_MATRIX, TRANSLATE_FACTOR, ZOOM_FACTOR
 
Fields inherited from class ucar.unidata.idv.ViewManager
animationHolder, animationMenu, borderHighlightColor, borderWidth, clickToFocus, displayBounds, fullScreenWindow, highlightBorder, innerContents, lastActive, lastTimeActivated, nameLabel, normalBorder, PREF_3DCLIP, PREF_ANIREADOUT, PREF_BGCOLOR, PREF_BORDERCOLOR, PREF_DIMENSION, PREF_DISPLAYLISTCOLOR, PREF_DISPLAYLISTFONT, PREF_FGCOLOR, PREF_PREFIX, PREF_SHAREVIEWS, PREF_SHOWANIMATIONBOXES, PREF_SHOWBOTTOMLEGEND, PREF_SHOWCURSOR, PREF_SHOWDISPLAYLIST, PREF_SHOWSCALES, PREF_SHOWSIDELEGEND, PREF_SHOWTOOLBAR, PREF_SHOWTRANSECTSCALES, PREF_TOOLBARSFLOATABLE, PREF_WAITMSG, PREF_WIREFRAME, showControlLegend, showControlMenu, TAG_COLORPAIR, TAG_COLORPAIRS, toolbarIds, toolbarNames, toolbars, windowBounds
 
Constructor Summary
MapViewManager()
          Default constructor
MapViewManager(ViewContext viewContext)
          Construct a MapViewManager from an IDV
MapViewManager(ViewContext viewContext, ViewDescriptor desc, String properties)
          Construct a MapViewManager with the specified params
 
Method Summary
 void actionPerformed(ActionEvent event)
          Required interface for ActionEvents, to implement ActionListener for the UI objects such as JButton-s and MenuItem-s
 boolean addDisplayInfo(DisplayInfo displayInfo)
          Reset projection of display based control's getDataProjection().
 boolean canBe(ViewManager that)
          Can this view manager be used in exchange for the given view manager
 void checkPipPanel()
          Check the pip panel.
 void checkProjection(FieldImpl data, DisplayControl display)
          Deprecated. no substitute. Use setMapProjection()
 void displayChanged(DisplayEvent de)
          Handle the event
protected  Container doMakeContents()
          Make the GUI contents.
protected  DisplayMaster doMakeDisplayMaster()
          Make the DisplayMaster for this ViewManager
 ArrayList doMakeMenuList()
          Create and return the list of menus for the menu bar.
protected  void doneFirstFrame()
          Received the first frame done event from the display
 boolean getAutoRotate()
          Get the autorotate flag
 ucar.unidata.geoloc.ProjectionImpl getDefaultProjection()
          Get the default projection to use
protected  void getInitialBooleanProperties(List props)
          Create the set of BooleanPropertys.
 JComponent getInnerContents()
          Get the JComponent for the VisAD display
 MapProjection getMainProjection()
          Get the current projection.Used for xml encoding/decoding.
 String getMainProjectionName()
          The main projection name.Used for xml encoding/decoding.
 NavigatedDisplay getMapDisplay()
          Get the map display.
 boolean getPerspectiveView()
          Get the perspective view flag
 EarthLocation getScreenCenter()
          Get the earth location of the screen center
 List<TwoFacedObject> getScreenCoordinates()
          Get a list of named locations of the different points of the view rectangle.
 boolean getShowEarthNavPanel()
          Get the ShowEarthNavPanel property.
protected  JComponent getSideComponent(JComponent sideLegend)
          Add the PIP panel if needed
 String getTypeName()
          What type of view is this
 boolean getUse3D()
          Get the use 3D display flag.
 boolean getUseGlobeDisplay()
          Get the globe display flag.
 boolean getUseProjectionFromData()
          Get the use projection from data flag
 GeoLocationInfo getVisibleGeoBounds()
          Get the bounds that are visible
 void goToAddress()
          Go the a street address
protected  void handleBooleanPropertyChange(String id, boolean value)
          The BooleanProperty identified byt he given id has changed.
protected  void init()
          Initialize this object.
 void initializeDisplaysProjectionMenu(JMenu displaysMenu)
          Init menu
 void initializeProjectionHistoryMenu(JMenu menu)
          Init menu
 void initializeProjectionMenu(JMenu projectionsMenu)
          Init menu
 void initializeViewMenu(JMenu viewMenu)
          Dynamically initialize the view menu
 void initPreferences(IdvPreferenceManager preferenceManager)
          Add in the different preference panels.
protected  void initToolBars()
          Initialize the toolbars for the GUI
protected  void initWithInner(ViewManager that, boolean ignoreWindow)
          Initialize this object's state with the state from that.
 boolean isDisplay3D()
          Are we in 3d mode
static void makeProjectionsMenu(JMenu projectionsMenu, List projections, Object object, String method)
          Make the projections menu.
static void makeProjectionsMenu(JMenu projectionsMenu, List projections, Object object, String method, ucar.unidata.geoloc.ProjectionImpl currentProjection)
          Make the projections menu
protected  JMenu makeShowMenu()
          Create and return the show menu.
 boolean okToImportDisplay(DisplayControl control)
          _more_
protected  void perspectiveViewChanged(boolean v)
          Handle a perspective view change
 void receiveShareData(Sharable from, Object dataId, Object[] data)
          Handle the receipt of shared data
 void setAutoRotate(boolean value)
          Set the autorotate property
 void setBgColor(boolean bgColor)
          Deprecated. Keep this around for old bundles
 void setCurrentAsProjection()
          Set the current viewpoint as the projection
 void setInitialMapResources(String value)
          Set the InitialMapResources property.
 void setMainProjection(MapProjection projection)
          Set the current projection.
 void setMainProjectionName(String projectionName)
          The main projection name.Used for xml encoding/decoding.
 void setMapArea(ucar.unidata.geoloc.ProjectionRect mapArea)
          Set or reset map area of view, using NavigatedDisplay method.
 void setMapConfigFile(String location)
          Have this so we don't get warnings on unpersisting old bundles
 void setMapProjection(MapProjection projection, boolean fromWidget)
          A wrapper aroung the setMapProjection call that takes a projection name.
 void setMapProjection(MapProjection projection, boolean fromWidget, String name)
          Set map projection in the main display.
 void setMapProjection(MapProjection projection, boolean fromWidget, String name, boolean checkDefault)
          Set map projection in the main display.
 void setMapProjection(MapProjection projection, boolean fromWidget, String name, boolean checkDefault, boolean addToCommandHistory)
          Set map projection in the main display.
 void setMapProjection(MapProjection projection, boolean fromWidget, String name, boolean checkDefault, boolean addToCommandHistory, boolean maintainViewpoint)
          Set map projection in the main display.
 void setMapState(String ms)
          Leave this here for old bundles
 void setPerspectiveView(boolean value)
          Set the perspective view flag
 void setProjection(ucar.unidata.geoloc.ProjectionImpl p)
          Set the current projection
 void setProjectionByName(String projName)
          Find and set the projection by name
 void setProjectionFromFirstDisplay()
          Set the projection to the first projection found in the displays
 void setShowEarthNavPanel(boolean value)
          Set the ShowEarthNavPanel property.
 void setShowElevation(boolean value)
          Dummy for old bundles
 void setShowMap(boolean value)
          Dummy for old bundles
 void setUse3D(boolean use)
          Use a 3D display.
 void setUseGlobeDisplay(boolean use)
          Use globe display.
 void setUseProjectionFromData(boolean value)
          Set the use projection from data flag
 void showProjectionManager()
          Show the projection manager.
protected  void updateProjection()
          If we are using a ProjectionImpl then see if it hsa
protected  void verticalScaleChanged()
          Handle a vertical scale change
 
Methods inherited from class ucar.unidata.idv.NavigatedViewManager
addPropertiesComponents, animationTimeChanged, applyPreferences, applyProperties, checkHistoryMatrix, destroy, doMakeViewPointToolBar, doMakeZoomPanToolBar, getClipping, getLabelsVisible, getNavigatedDisplay, getShowCursor, getTransectLabelsVisible, getVerticalRange, getVerticalRangeUnit, getViewpointControl, handleControlChanged, hasViewpointControl, matrixChanged, setClipping, setDisplayMaster, setLabelsVisible, setReadoutFormat, setShowCursor, setTransectLabelsVisible, setVerticalRange, setVerticalRangeUnit, setVerticalRangeUnitPreference, setWindow, verticalRangeChanged
 
Methods inherited from class ucar.unidata.idv.ViewManager
addBooleanProperty, addCommand, addContextMenuItems, addDisplayListener, addToolBar, addViewDescriptor, adjustSplitPane, animationOk, aspectSliderChanged, checkToolBarVisibility, clearDisplays, clearImageGrabber, controlChanged, createCBMI, displayControlChanged, displayControlVisibilityChanged, doClose, doDrop, doMakeMenuBar, doPrintImage, doPublishImage, doPublishImage, doSaveImage, doSaveImage, doSaveImageInThread, doSaveState, fillLegends, fillLegendsInner, fillLegendsLater, firstInitializeViewMenu, getAliases, getAnimation, getAnimationInfo, getAnimationStringVisible, getAnimationTimes, getAnimationWidget, getAniReadout, getAspectPropertiesComponent, getAspectRatio, getBackground, getBooleanPropertiesForPersistence, getBooleanProperty, getBp, getClickToFocus, getCommandManager, getComponent, getContents, getContentsBorder, getControls, getControlsForLegend, getDefaultBackground, getDefaultForeground, getDisplayBounds, getDisplayConventions, getDisplayInfos, getDisplayListColor, getDisplayListFont, getDisplayMatrix, getDisplayRenderer, getDisplayWindow, getExternalAnimation, getExternalAnimationWidget, getForeground, getFullScreenHeight, getFullScreenWidth, getHasWindow, getHaveInitialized, getHighlightBorder, getIdv, getIdvUIManager, getInitDone, getIsActive, getIsDestroyed, getIsShared, getLastFrameDoneTime, getLastTimeActivated, getLegendOnLeft, getLegendState, getMainPropertiesComponent, getMaster, getMySize, getName, getNormalBorder, getProjectionControl, getProjectionList, getProperties, getPropertiesComponent, getProperty, getPublishManager, getReallyHasWindow, getResourceManager, getShareViews, getShowAnimationBoxes, getShowBottomLegend, getShowControlLegend, getShowDisplayList, getShowSideLegend, getSideDividerLocation, getSideLegend, getSideLegendContainer, getSkinProperties, getSkinProperty, getStateManager, getStore, getTimelineComponent, getToolbarsFloatable, getUniqueId, getUseFastRendering, getViewDescriptor, getViewManager, getVMManager, getWaitMessageVisible, getWireframe, guiInitializationDone, hasBooleanProperty, hasDisplayMaster, initAfterUnPersistence, initBooleanProperties, initColorMenu, initDisplayMenu, initFromSkin, initUI, initViewStateMenu, initWith, initWith, insertSideLegend, isClassOk, isDefinedBy, isFullScreen, isInteractive, itemStateChanged, keyWasTyped, logException, makeColorMenu, makeDropPanel, makeFrames, makeSavedViewsMenu, makeViewMenu, makeViewStateMenu, notifyDisplayControls, parseProperties, putProperty, reallyFillLegends, removeColorPair, removeDisplayInfo, resetAspectSliders, resetFullScreen, resetProjectionControl, setAliases, setAnimatedVisibility, setAnimationInfo, setAnimationStringVisible, setAniReadout, setAspectRatio, setBackground, setBooleanProperties, setBooleanPropertiesForPersistence, setBp, setClickToFocus, setColors, setContentsBorder, setCursorInDisplay, setDisplayBounds, setDisplayListColor, setDisplayListFont, setDisplayMatrix, setExternalAnimation, setForeground, setFullScreen, setFullScreenHeight, setFullScreenWidth, setHasWindow, setHighlightBorder, setIdv, setInitialSplitPaneLocation, setIsShared, setLastActive, setLegendOnLeft, setLegendState, setLegendState, setMasterActive, setMasterActive, setMasterInactive, setName, setProperties, setShareViews, setShowControlLegend, setShowDisplayList, setShowToolBars, setSideDividerLocation, setSideLegend, setSideLegendPosition, setSize, setSkinProperties, setViewDescriptor, setWaitMessageVisible, setWindowBounds, setWireframe, showColorPairDialog, showHighlight, showLegend, showPropertiesDialog, showTimeline, showWindow, startImageCapture, toFront, toggleFullScreen, toString, turnOnOffAllDisplays, updateDisplayIfNeeded, updateDisplayList, updateNameLabel, useDisplay, useImages, useImages, writeImage, writeImage, writeImage, writeImage, writeImage, writeImage, writeImage, writeTestArchive
 
Methods inherited from class ucar.unidata.collab.SharableImpl
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getSharablePropertiesComponent, getShareGroup, getSharing, initSharable, removeSharable, setShareGroup, setSharing, setUniqueId, showSharableDialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PREF_ADDRESS_LIST

public static final String PREF_ADDRESS_LIST
_more_

See Also:
Constant Field Values

PREF_ADDRESS_REPROJECT

public static final String PREF_ADDRESS_REPROJECT
_more_

See Also:
Constant Field Values

PREF_AUTOROTATE

public static final String PREF_AUTOROTATE
Preference for autorotate in globe mode

See Also:
Constant Field Values

PREF_PERSPECTIVEVIEW

public static final String PREF_PERSPECTIVEVIEW
Preference for showing display in perspective view_

See Also:
Constant Field Values

PREF_PROJ_DFLT

public static final String PREF_PROJ_DFLT
Preference for default projection

See Also:
Constant Field Values

PREF_PROJ_USEFROMDATA

public static final String PREF_PROJ_USEFROMDATA
Preference for setting projection automatically from data_

See Also:
Constant Field Values

PREF_SHOWPIP

public static final String PREF_SHOWPIP
Preference for showing the pip

See Also:
Constant Field Values

PREF_SHOWEARTHNAVPANEL

public static final String PREF_SHOWEARTHNAVPANEL
Preference for showing the earth nav panel

See Also:
Constant Field Values

SHARE_PROJECTION

public static final String SHARE_PROJECTION
Defines the projection when sharing state

See Also:
Constant Field Values
Constructor Detail

MapViewManager

public MapViewManager()
Default constructor


MapViewManager

public MapViewManager(ViewContext viewContext)
Construct a MapViewManager from an IDV

Parameters:
viewContext - Really the IDV

MapViewManager

public MapViewManager(ViewContext viewContext,
                      ViewDescriptor desc,
                      String properties)
               throws VisADException,
                      RemoteException
Construct a MapViewManager with the specified params

Parameters:
viewContext - context in which this MVM exists
desc - ViewDescriptor
properties - semicolon separated list of properties (can be null)
Throws:
RemoteException - Java RMI problem
VisADException - Couldn't create the VisAD object
Method Detail

getDefaultProjection

public ucar.unidata.geoloc.ProjectionImpl getDefaultProjection()
Get the default projection to use

Returns:
The default projection

doMakeDisplayMaster

protected DisplayMaster doMakeDisplayMaster()
                                     throws VisADException,
                                            RemoteException
Make the DisplayMaster for this ViewManager

Overrides:
doMakeDisplayMaster in class ViewManager
Returns:
the DisplayMaster
Throws:
RemoteException - Java RMI problem
VisADException - Couldn't create the VisAD object

getScreenCenter

public EarthLocation getScreenCenter()
                              throws VisADException,
                                     RemoteException
Get the earth location of the screen center

Returns:
screen center
Throws:
RemoteException - On badness
VisADException - On badness

getScreenCoordinates

public List<TwoFacedObject> getScreenCoordinates()
                                          throws VisADException,
                                                 RemoteException
Get a list of named locations of the different points of the view rectangle. e.g., center, upper left, etc.

Returns:
list of locations
Throws:
RemoteException - On badness
VisADException - On badness

init

protected void init()
             throws VisADException,
                    RemoteException
Initialize this object.

Overrides:
init in class NavigatedViewManager
Throws:
RemoteException
VisADException

perspectiveViewChanged

protected void perspectiveViewChanged(boolean v)
Handle a perspective view change

Overrides:
perspectiveViewChanged in class NavigatedViewManager
Parameters:
v - the value

verticalScaleChanged

protected void verticalScaleChanged()
Handle a vertical scale change

Overrides:
verticalScaleChanged in class NavigatedViewManager

displayChanged

public void displayChanged(DisplayEvent de)
                    throws VisADException,
                           RemoteException
Handle the event

Specified by:
displayChanged in interface DisplayListener
Overrides:
displayChanged in class NavigatedViewManager
Parameters:
de - The event
Throws:
RemoteException - On badness
VisADException - On badness

canBe

public boolean canBe(ViewManager that)
Can this view manager be used in exchange for the given view manager

Overrides:
canBe in class ViewManager
Parameters:
that - The other view manager to check
Returns:
Can this be used in place of that

initWithInner

protected void initWithInner(ViewManager that,
                             boolean ignoreWindow)
                      throws VisADException,
                             RemoteException
Initialize this object's state with the state from that.

Overrides:
initWithInner in class NavigatedViewManager
Parameters:
that - The other obejct to get state from
ignoreWindow - If true then don't set the window size and location
Throws:
RemoteException - Java RMI problem
VisADException - Couldn't create the VisAD object

getInnerContents

public JComponent getInnerContents()
Get the JComponent for the VisAD display

Overrides:
getInnerContents in class ViewManager
Returns:
VisAD display's Component

setMapState

public void setMapState(String ms)
Leave this here for old bundles

Parameters:
ms - The map specification

initPreferences

public void initPreferences(IdvPreferenceManager preferenceManager)
Add in the different preference panels.

Overrides:
initPreferences in class ViewManager
Parameters:
preferenceManager - The preference manager to add things into

goToAddress

public void goToAddress()
Go the a street address


getMapDisplay

public NavigatedDisplay getMapDisplay()
Get the map display.

Returns:
The map display. This is the main display for thie view manager.

isDisplay3D

public boolean isDisplay3D()
Are we in 3d mode

Returns:
Is display in 3d?

receiveShareData

public void receiveShareData(Sharable from,
                             Object dataId,
                             Object[] data)
Handle the receipt of shared data

Specified by:
receiveShareData in interface Sharable
Overrides:
receiveShareData in class NavigatedViewManager
Parameters:
from - Who is it from
dataId - What is it
data - Here it is

getSideComponent

protected JComponent getSideComponent(JComponent sideLegend)
Add the PIP panel if needed

Overrides:
getSideComponent in class ViewManager
Parameters:
sideLegend - The side legend
Returns:
The side legend or the sidelegend coupled with the pip panel

doMakeContents

protected Container doMakeContents()
Make the GUI contents.

Overrides:
doMakeContents in class ViewManager
Returns:
The GUI contents

initToolBars

protected void initToolBars()
Initialize the toolbars for the GUI

Overrides:
initToolBars in class NavigatedViewManager

initializeViewMenu

public void initializeViewMenu(JMenu viewMenu)
Dynamically initialize the view menu

Overrides:
initializeViewMenu in class ViewManager
Parameters:
viewMenu - the view menu

doMakeMenuList

public ArrayList doMakeMenuList()
Create and return the list of menus for the menu bar. Just the map and view menu.

Overrides:
doMakeMenuList in class ViewManager
Returns:
List of menus.

makeShowMenu

protected JMenu makeShowMenu()
Create and return the show menu.

Overrides:
makeShowMenu in class NavigatedViewManager
Returns:
The Show menu

setProjectionFromFirstDisplay

public void setProjectionFromFirstDisplay()
Set the projection to the first projection found in the displays


updateProjection

protected void updateProjection()
                         throws RemoteException,
                                VisADException
If we are using a ProjectionImpl then see if it hsa

Throws:
RemoteException - On badness
VisADException - On badness

setProjectionByName

public void setProjectionByName(String projName)
Find and set the projection by name

Parameters:
projName - projection name

setProjection

public void setProjection(ucar.unidata.geoloc.ProjectionImpl p)
Set the current projection

Parameters:
p - The new projection.

setMapProjection

public void setMapProjection(MapProjection projection,
                             boolean fromWidget)
A wrapper aroung the setMapProjection call that takes a projection name. This passes in null.

Parameters:
projection - The projection
fromWidget - Is it from the projection selection widget

getMainProjection

public MapProjection getMainProjection()
Get the current projection.Used for xml encoding/decoding.

Returns:
The current projection

setMainProjection

public void setMainProjection(MapProjection projection)
Set the current projection. Used for xml encoding/decoding.

Parameters:
projection - The new projection

getMainProjectionName

public String getMainProjectionName()
The main projection name.Used for xml encoding/decoding.

Returns:
Projection name

setMainProjectionName

public void setMainProjectionName(String projectionName)
The main projection name.Used for xml encoding/decoding.

Parameters:
projectionName - Projection name

setMapProjection

public void setMapProjection(MapProjection projection,
                             boolean fromWidget,
                             String name)
Set map projection in the main display.

Parameters:
projection - a Projection
fromWidget - true if this was from a widget (ie. widget or menu item)
name - name to put in the history list (may be null)

setMapProjection

public void setMapProjection(MapProjection projection,
                             boolean fromWidget,
                             String name,
                             boolean checkDefault)
Set map projection in the main display.

Parameters:
projection - a Projection
fromWidget - true if this was from a widget (ie. widget or menu item)
name - name to put in the history list (may be null)
checkDefault - if true, check to see if we should call getUseProjectionFromData()

setMapProjection

public void setMapProjection(MapProjection projection,
                             boolean fromWidget,
                             String name,
                             boolean checkDefault,
                             boolean addToCommandHistory)
Set map projection in the main display.

Parameters:
projection - a Projection
fromWidget - true if this was from a widget (ie. widget or menu item)
name - name to put in the history list (may be null)
checkDefault - if true, check to see if we should call getUseProjectionFromData()
addToCommandHistory - Add this projection to the command history

setMapProjection

public void setMapProjection(MapProjection projection,
                             boolean fromWidget,
                             String name,
                             boolean checkDefault,
                             boolean addToCommandHistory,
                             boolean maintainViewpoint)
Set map projection in the main display.

Parameters:
projection - a Projection
fromWidget - true if this was from a widget (ie. widget or menu item)
name - name to put in the history list (may be null)
checkDefault - if true, check to see if we should call getUseProjectionFromData()
addToCommandHistory - Add this projection to the command history
maintainViewpoint - maintain the viewpoint

checkPipPanel

public void checkPipPanel()
Check the pip panel. If non-null have it reset its box


okToImportDisplay

public boolean okToImportDisplay(DisplayControl control)
_more_

Overrides:
okToImportDisplay in class ViewManager
Parameters:
control - _more_
Returns:
_more_

doneFirstFrame

protected void doneFirstFrame()
Received the first frame done event from the display

Overrides:
doneFirstFrame in class ViewManager

addDisplayInfo

public boolean addDisplayInfo(DisplayInfo displayInfo)
                       throws RemoteException,
                              VisADException
Reset projection of display based control's getDataProjection(). called by DisplayInfo.addDisplayable (), usually from control's init.

Overrides:
addDisplayInfo in class ViewManager
Parameters:
displayInfo - The new display info to add
Returns:
True if the addiiton worked. false otherwise
Throws:
RemoteException
VisADException

checkProjection

public void checkProjection(FieldImpl data,
                            DisplayControl display)
Deprecated. no substitute. Use setMapProjection()

Reset projection of display based on data.

Parameters:
data - The data form the display
display - The display

actionPerformed

public void actionPerformed(ActionEvent event)
Required interface for ActionEvents, to implement ActionListener for the UI objects such as JButton-s and MenuItem-s

Specified by:
actionPerformed in interface ActionListener
Overrides:
actionPerformed in class NavigatedViewManager
Parameters:
event - an ActionEvent

getVisibleGeoBounds

public GeoLocationInfo getVisibleGeoBounds()
Get the bounds that are visible

Overrides:
getVisibleGeoBounds in class ViewManager
Returns:
bounds

setCurrentAsProjection

public void setCurrentAsProjection()
Set the current viewpoint as the projection


showProjectionManager

public void showProjectionManager()
Show the projection manager.


setMapArea

public void setMapArea(ucar.unidata.geoloc.ProjectionRect mapArea)
Set or reset map area of view, using NavigatedDisplay method.

Parameters:
mapArea - ProjectionRect the map area of view

initializeProjectionMenu

public void initializeProjectionMenu(JMenu projectionsMenu)
Init menu

Parameters:
projectionsMenu - menu

initializeDisplaysProjectionMenu

public void initializeDisplaysProjectionMenu(