Class 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
  • Field Details

    • PROP_CLIPDISTANCE_GLOBE_FRONT

      public static final String PROP_CLIPDISTANCE_GLOBE_FRONT
      front globe clipping distance
      See Also:
    • PROP_CLIPDISTANCE_GLOBE_BACK

      public static final String PROP_CLIPDISTANCE_GLOBE_BACK
      back globe clipping distance
      See Also:
    • PROP_CLIPDISTANCE_MAP_FRONT

      public static final String PROP_CLIPDISTANCE_MAP_FRONT
      fron map clipping distance
      See Also:
    • PROP_CLIPDISTANCE_MAP_BACK

      public static final String PROP_CLIPDISTANCE_MAP_BACK
      back map clipping distance
      See Also:
    • CMD_FLY_LEFT

      public static final String CMD_FLY_LEFT
      flythrough command
      See Also:
    • CMD_FLY_RIGHT

      public static final String CMD_FLY_RIGHT
      flythrough command
      See Also:
    • CMD_FLY_FORWARD

      public static final String CMD_FLY_FORWARD
      flythrough command
      See Also:
    • CMD_FLY_BACK

      public static final String CMD_FLY_BACK
      flythrough command
      See Also:
    • PREF_ADDRESS_LIST

      public static final String PREF_ADDRESS_LIST
      preference id for the list of addresses in the geocode dialog
      See Also:
    • PREF_ADDRESS_REPROJECT

      public static final String PREF_ADDRESS_REPROJECT
      do we reproject when we go to an address
      See Also:
    • PREF_AUTOROTATE

      public static final String PREF_AUTOROTATE
      Preference for autorotate in globe mode
      See Also:
    • PREF_PERSPECTIVEVIEW

      public static final String PREF_PERSPECTIVEVIEW
      Preference for showing display in perspective view_
      See Also:
    • PREF_PROJ_DFLT

      public static final String PREF_PROJ_DFLT
      Preference for default projection
      See Also:
    • PREF_PROJ_USEFROMDATA

      public static final String PREF_PROJ_USEFROMDATA
      Preference for setting projection automatically from data_
      See Also:
    • PREF_SHOWPIP

      public static final String PREF_SHOWPIP
      Preference for showing the pip
      See Also:
    • PREF_USE_PROGRESSIVE_RESOLUTION

      public static final String PREF_USE_PROGRESSIVE_RESOLUTION
      Preference for progressive resolution
      See Also:
    • PR_LABEL

      public static final String PR_LABEL
      label for progressive resolution/disclosure/whatever we call it
      See Also:
    • PREF_SHOWGLOBEBACKGROUND

      public static final String PREF_SHOWGLOBEBACKGROUND
      Preference for showing the globe background
      See Also:
    • PREF_GLOBEBACKGROUND

      public static final String PREF_GLOBEBACKGROUND
      Preference for the globe background color
      See Also:
    • PREF_SHOWEARTHNAVPANEL

      public static final String PREF_SHOWEARTHNAVPANEL
      Preference for showing the earth nav panel
      See Also:
    • SHARE_PROJECTION

      public static final String SHARE_PROJECTION
      Defines the projection when sharing state
      See Also:
  • Constructor Details

    • 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 Details

    • 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:
      VisADException - the VisAD exception
      RemoteException - the remote exception
    • initUI

      protected void initUI()
      Initialize the UI
      Overrides:
      initUI in class ViewManager
    • fillLegends

      protected void fillLegends()
      Fill the legends
      Overrides:
      fillLegends in class ViewManager
    • 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 deprecated see verticalRangeChanged()
      Overrides:
      verticalScaleChanged in class NavigatedViewManager
    • verticalRangeChanged

      protected void verticalRangeChanged()
      Handle a vertical range change
      Overrides:
      verticalRangeChanged in class NavigatedViewManager
    • shouldAnimateViewChanges

      public boolean shouldAnimateViewChanges()
      Should we animate view changes
      Returns:
      true if not running ISL
    • displayChanged

      public void displayChanged(DisplayEvent event) throws VisADException, RemoteException
      Handle the event
      Specified by:
      displayChanged in interface DisplayListener
      Overrides:
      displayChanged in class NavigatedViewManager
      Parameters:
      event - The event
      Throws:
      RemoteException - On badness
      VisADException - On badness
    • mouseFlicked

      protected void mouseFlicked(Point startPoint, Point endPoint, double[] startMatrix, double[] endMatrix, double speed)
      Handle the mouse flicked
      Overrides:
      mouseFlicked in class NavigatedViewManager
      Parameters:
      startPoint - start point of flick
      endPoint - end point of flick
      startMatrix - the start matrix
      endMatrix - the end matrix
      speed - the speed of flicking
    • checkForKmlImageCapture

      protected boolean checkForKmlImageCapture()
      Check if its ok to capture a kmz file
      Overrides:
      checkForKmlImageCapture in class ViewManager
      Returns:
      ok to capture kmz
    • 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
    • initWith

      public void initWith(ViewState viewState) throws Exception
      Initialize with another view
      Overrides:
      initWith in class ViewManager
      Parameters:
      viewState - the view state
      Throws:
      Exception - problems
    • animationTimeChanged

      protected void animationTimeChanged()
      Handle the animation time changed
      Overrides:
      animationTimeChanged in class NavigatedViewManager
    • 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
    • initViewState

      public void initViewState(ViewState viewState)
      Initialize the ViewState
      Overrides:
      initViewState in class ViewManager
      Parameters:
      viewState - the ViewState
    • 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
    • setViewpointInfo

      public void setViewpointInfo(ViewpointInfo viewpointInfo)
      Set the viewpoint info
      Parameters:
      viewpointInfo - the viewpoint info
    • 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
    • center

      public void center(MapProjection mp) throws RemoteException, VisADException
      Center the display (animated) to the center of the given mapprojection
      Parameters:
      mp - map projection
      Throws:
      RemoteException - Java RMI problem
      VisADException - VisAD problem
    • 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
    • setDefaultProjectionName

      public void setDefaultProjectionName(String value)
      Set the DfltProjectionName property.
      Parameters:
      value - The new value for DfltProjectionName
    • getDefaultProjectionName

      public String getDefaultProjectionName()
      Get the DfltProjectionName property.
      Returns:
      The DfltProjectionName
    • setMapProjection

      public boolean 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)
      Returns:
      true if successful
    • setMapProjection

      public boolean 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()
      Returns:
      true if successful
    • setMapProjection

      public boolean 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
      Returns:
      true if successful
    • setMapProjection

      public boolean 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
      Returns:
      true if successful
    • checkPipPanel

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

      public boolean okToImportDisplay(DisplayControl control)
      can this viewmanager import the given display control
      Overrides:
      okToImportDisplay in class ViewManager
      Parameters:
      control - the control
      Returns:
      ok to import
    • doneFirstFrame

      protected void doneFirstFrame()
      Received the first frame done event from the display
      Overrides:
      doneFirstFrame in class ViewManager
    • applyProperties

      public boolean applyProperties()
      Apply the properties
      Overrides:
      applyProperties in class NavigatedViewManager
      Returns:
      true if successful
    • addPropertiesComponents

      protected void addPropertiesComponents(JTabbedPane tabbedPane)
      Add the properties components for this ViewManager
      Overrides:
      addPropertiesComponents in class NavigatedViewManager
      Parameters:
      tabbedPane - the tabbed pane to add to
    • destroy

      public void destroy()
      Destroy this ViewManager
      Overrides:
      destroy in class NavigatedViewManager
    • showFlythrough

      public void showFlythrough()
      Show the fly through
    • flythrough

      public void flythrough(float[][] pts)
      Do a flythrough
      Parameters:
      pts - the flythrough points
    • flythrough

      public void flythrough(List<FlythroughPoint> pts)
      Flythrough the points
      Parameters:
      pts - the List of points
    • initAfterUnPersistence

      public final void initAfterUnPersistence(IntegratedDataViewer idv) throws VisADException, RemoteException
      Initialize after unpersistence
      Overrides:
      initAfterUnPersistence in class ViewManager
      Parameters:
      idv - the IDV
      Throws:
      RemoteException - Java RMI exception
      VisADException - VisAD problem
    • displayDataChanged

      public void displayDataChanged(DisplayControl display)
      Handle a change to the data in a DisplayControl
      Overrides:
      displayDataChanged in class ViewManager
      Parameters:
      display - the DisplayControl
    • displayDataChanged

      public void displayDataChanged(DisplayControl display, boolean fromInitialLoad)
      Handle a change to the data in a DisplayControl
      Parameters:
      display - the DisplayControl
      fromInitialLoad - if this is from the initial load
    • addDisplayInfos

      public void addDisplayInfos(List<DisplayInfo> displayInfos) throws RemoteException, VisADException
      Reset projection of display based control's getDataProjection(). called by DisplayInfo.addDisplayable (), usually from control's init.
      Overrides:
      addDisplayInfos in class ViewManager
      Parameters:
      displayInfos - The List of new display infos to add
      Throws:
      RemoteException - Java RMI Exception
      VisADException - Problem creating VisAD object
    • checkProjection

      public void checkProjection(FieldImpl data, DisplayControl display)
      Reset projection of display based on data. deprecated no substitute. Use setMapProjection()
      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(JMenu displaysMenu)
      Init menu
      Parameters:
      displaysMenu - menu
    • makeProjectionsMenu

      public static void makeProjectionsMenu(JMenu projectionsMenu, List projections, Object object, String method)
      Make the projections menu. Call the method on the given object.
      Parameters:
      projectionsMenu - Menu to add to
      projections - List of projections
      object - object to call
      method - method to call
    • makeProjectionsMenu

      public static void makeProjectionsMenu(JMenu projectionsMenu, List projections, Object object, String method, ucar.unidata.geoloc.ProjectionImpl currentProjection)
      Make the projections menu
      Parameters:
      projectionsMenu - the menu to add to
      projections - list of projections
      object - object to call
      method - method to call
      currentProjection - current projection
    • initializeProjectionHistoryMenu

      public void initializeProjectionHistoryMenu(JMenu menu)
      Init menu
      Parameters:
      menu - menu
    • isCompatibleWith

      public boolean isCompatibleWith(ViewManager vm)
      Is this a compatible ViewManager
      Overrides:
      isCompatibleWith in class ViewManager
      Parameters:
      vm - the other
      Returns:
      true if compatible
    • isCompatibleWith

      public boolean isCompatibleWith(ViewState viewState)
      Is this compatible with the ViewState
      Overrides:
      isCompatibleWith in class ViewManager
      Parameters:
      viewState - the view state
      Returns:
      true if compatible
    • setMapConfigFile

      public void setMapConfigFile(String location)
      Have this so we don't get warnings on unpersisting old bundles
      Parameters:
      location - The location
    • setUseGlobeDisplay

      public void setUseGlobeDisplay(boolean use)
      Use globe display. Used for xml encoding/decoding.
      Parameters:
      use - The globe display value
    • getUseGlobeDisplay

      public boolean getUseGlobeDisplay()
      Get the globe display flag. Used for xml encoding/decoding.
      Returns:
      The globe display value
    • setUse3D

      public void setUse3D(boolean use)
      Use a 3D display. Used for xml encoding/decoding.
      Parameters:
      use - The use 3D display value
    • getUse3D

      public boolean getUse3D()
      Get the use 3D display flag. Used for xml encoding/decoding.
      Returns:
      The use 3D value
    • handleBooleanPropertyChange

      protected void handleBooleanPropertyChange(String id, boolean value) throws Exception
      The BooleanProperty identified byt he given id has changed. Apply the change to the display.
      Overrides:
      handleBooleanPropertyChange in class NavigatedViewManager
      Parameters:
      id - Id of the changed BooleanProperty
      value - Its new value
      Throws:
      Exception - problem handeling the change
    • applyPreferences

      public void applyPreferences()
      Apply preferences
      Overrides:
      applyPreferences in class NavigatedViewManager
    • getInitialBooleanProperties

      protected void getInitialBooleanProperties(List props)
      Create the set of BooleanPropertys. These hold all of the different flag based display state.
      Overrides:
      getInitialBooleanProperties in class NavigatedViewManager
      Parameters:
      props - the list of properties
    • setAutoRotate

      public void setAutoRotate(boolean value)
      Set the autorotate property
      Parameters:
      value - The value
    • getAutoRotate

      public boolean getAutoRotate()
      Get the autorotate flag
      Returns:
      The flag value
    • setPerspectiveView

      public void setPerspectiveView(boolean value)
      Set the perspective view flag
      Parameters:
      value - The value
    • getPerspectiveView

      public boolean getPerspectiveView()
      Get the perspective view flag
      Overrides:
      getPerspectiveView in class ViewManager
      Returns:
      The flag value
    • setShowMap

      public void setShowMap(boolean value)
      Dummy for old bundles
      Parameters:
      value - The value
    • setShowElevation

      public void setShowElevation(boolean value)
      Dummy for old bundles
      Parameters:
      value - The value
    • setProjectionFromData

      public void setProjectionFromData(boolean value)
      _more_
      Overrides:
      setProjectionFromData in class ViewManager
      Parameters:
      value - _more_
    • setUseProjectionFromData

      public void setUseProjectionFromData(boolean value)
      Set the use projection from data flag
      Parameters:
      value - The value
    • getUseProjectionFromData

      public boolean getUseProjectionFromData()
      Get the use projection from data flag
      Returns:
      The flag value
    • setBgColor

      public void setBgColor(boolean bgColor)
      Set the background color property. deprecated Keep this around for old bundles
      Parameters:
      bgColor - The value
    • setShowEarthNavPanel

      public void setShowEarthNavPanel(boolean value)
      Set the ShowEarthNavPanel property.
      Parameters:
      value - The new value for ShowEarthNavPanel
    • getShowEarthNavPanel

      public boolean getShowEarthNavPanel()
      Get the ShowEarthNavPanel property.
      Returns:
      The ShowEarthNavPanel
    • hidePip

      public void hidePip()
      Hide the pip panel
    • setShowPip

      public void setShowPip(boolean value)
      Set the ShowPipPanel property.
      Parameters:
      value - The new value for ShowPipPanel
    • getShowPip

      public boolean getShowPip()
      Get the ShowPipPanel property.
      Returns:
      The ShowPipPanel
    • setUseProgressiveResolution

      public void setUseProgressiveResolution(boolean value)
      Set the Progressive Resolution property.
      Parameters:
      value - The new value for Progressive Resolution
    • getUseProgressiveResolution

      public boolean getUseProgressiveResolution()
      Get the ProgressiveResolution property.
      Returns:
      The ProgressiveResolution
    • setInitialMapResources

      public void setInitialMapResources(String value)
      Set the InitialMapResources property. This gets set by the viewmanager properties and is a comma separated list of map resource paths.
      Parameters:
      value - The new value for InitialMapResources
    • getTypeName

      public String getTypeName()
      What type of view is this
      Overrides:
      getTypeName in class ViewManager
      Returns:
      The type of view
    • getDefaultMapPosition

      public float getDefaultMapPosition()
      Get the default map position from a property
      Returns:
      the value in the range of -1 to 1
    • setGlobeBackgroundColor

      public void setGlobeBackgroundColor(Color value)
      Set the GlobeBackgroundColor property.
      Parameters:
      value - The new value for GlobeBackgroundColor
    • getGlobeBackgroundColor

      public Color getGlobeBackgroundColor()
      Get the GlobeBackgroundColor property.
      Returns:
      The GlobeBackgroundColor
    • getGlobeBackgroundColorToUse

      public Color getGlobeBackgroundColorToUse()
      Get the GlobeBackgroundColor property to be used. If it has not been set then get the preference
      Returns:
      The GlobeBackgroundColor to use
    • setGlobeBackgroundShow

      public void setGlobeBackgroundShow(boolean value)
      Set the GlobeBackgroundShow property.
      Parameters:
      value - The new value for GlobeBackgroundShow
    • getGlobeBackgroundShow

      public boolean getGlobeBackgroundShow()
      Get the GlobeBackgroundShow property.
      Returns:
      The GlobeBackgroundShow
    • setGlobeBackgroundLevel

      public void setGlobeBackgroundLevel(double value)
      Set the GlobeBackgroundLevel property.
      Parameters:
      value - The new value for GlobeBackgroundLevel
    • getGlobeBackgroundLevel

      public double getGlobeBackgroundLevel()
      Get the GlobeBackgroundLevel property.
      Returns:
      The GlobeBackgroundLevel
    • setFlythrough

      public void setFlythrough(Flythrough value)
      Set the Flythrough property.
      Parameters:
      value - The new value for Flythrough
    • getFlythrough

      public Flythrough getFlythrough()
      Get the Flythrough property.
      Returns:
      The Flythrough
    • setShowMaps

      public void setShowMaps(boolean value)
      Set the ShowMaps property.
      Parameters:
      value - The new value for ShowMaps
    • getShowMaps

      public boolean getShowMaps()
      Get the ShowMaps property.
      Returns:
      The ShowMaps
    • setDisplayProjectionZoom

      public void setDisplayProjectionZoom(double value)
      Set the DisplayProjectionZoom property.
      Parameters:
      value - The new value for DisplayProjectionZoom
    • getDisplayProjectionZoom

      public double getDisplayProjectionZoom()
      Get the DisplayProjectionZoom property.
      Returns:
      The DisplayProjectionZoom
    • setInitMapPaths

      public void setInitMapPaths(String value)
      Set the InitMapPaths property.
      Parameters:
      value - The new value for InitMapPaths
    • getInitMapPaths

      public String getInitMapPaths()
      Get the InitMapPaths property.
      Returns:
      The InitMapPaths
    • setInitLatLonVisible

      public void setInitLatLonVisible(boolean v)
      Set the intial lat/lon visible
      Parameters:
      v - true or false
    • setInitLatLonColor

      public void setInitLatLonColor(Color v)
      Set the intial lat/lon color
      Parameters:
      v - the color
    • setInitLatLonWidth

      public void setInitLatLonWidth(int v)
      Set the initial lat/lon line width
      Parameters:
      v - the width
    • setInitLatLonSpacing

      public void setInitLatLonSpacing(float v)
      Set the initial lat/lon spacing
      Parameters:
      v - the spacing
    • setInitMapWidth

      public void setInitMapWidth(float value)
      Set the InitMapWidth property.
      Parameters:
      value - The new value for InitMapWidth
    • getInitMapWidth

      public float getInitMapWidth()
      Get the InitMapWidth property.
      Returns:
      The InitMapWidth
    • setInitMapColor

      public void setInitMapColor(Color value)
      Set the InitMapColor property.
      Parameters:
      value - The new value for InitMapColor
    • getInitMapColor

      public Color getInitMapColor()
      Get the InitMapColor property.
      Returns:
      The InitMapColor
    • setInitLatLonBounds

      public void setInitLatLonBounds(Rectangle2D.Float value)
      Set the InitLatLonBounds property.
      Parameters:
      value - The new value for InitLatLonBounds
    • getInitLatLonBounds

      public Rectangle2D.Float getInitLatLonBounds()
      Get the InitLatLonBounds property.
      Returns:
      The InitLatLonBounds
    • getLatAxisScaleInfo

      public LatLonAxisScaleInfo getLatAxisScaleInfo()
      Gets the lat axis scale info.
      Returns:
      the lat axis scale info
    • setLatAxisScaleInfo

      public void setLatAxisScaleInfo(LatLonAxisScaleInfo axisScaleInfo) throws RemoteException, VisADException
      Sets the lat axis scale info.
      Parameters:
      axisScaleInfo - the new lat axis scale info
      Throws:
      RemoteException - the remote exception
      VisADException - the VisAD exception
    • getLonAxisScaleInfo

      public LatLonAxisScaleInfo getLonAxisScaleInfo()
      Gets the lon axis scale info.
      Returns:
      the lon axis scale info
    • setLonAxisScaleInfo

      public void setLonAxisScaleInfo(LatLonAxisScaleInfo axisScaleInfo) throws RemoteException, VisADException
      Sets the lon axis scale info.
      Parameters:
      axisScaleInfo - the new lon axis scale info
      Throws:
      RemoteException - the remote exception
      VisADException - the vis ad exception