Class SoundingViewManager

All Implemented Interfaces:
ActionListener, ItemListener, EventListener, Sharable, AerologicalDisplayConstants, ControlListener, DisplayListener

public class SoundingViewManager extends ViewManager implements AerologicalDisplayConstants
A wrapper around a sounding display (AerologicalDisplay) like a Skew-T Provides an interface for managing user interactions, gui creation, etc.
Author:
IDV development team
  • Field Details

  • Constructor Details

    • SoundingViewManager

      public SoundingViewManager()
      A paramterless ctor for XmlEncoder based decoding.
    • SoundingViewManager

      public SoundingViewManager(ViewContext viewContext, ViewDescriptor desc, String properties) throws VisADException, RemoteException
      Create a SoundingViewManager with the given context, descriptor, object store and properties string.
      Parameters:
      viewContext - Provides a context for the VM to be in.
      desc - The ViewDescriptor that identifies this VM
      properties - A set of ";" delimited name-value pairs.
      Throws:
      VisADException - the VisAD exception
      RemoteException - the remote exception
    • SoundingViewManager

      public SoundingViewManager(ViewContext viewContext, ViewDescriptor desc, String properties, AnimationInfo animationInfo) throws VisADException, RemoteException
      Create a SoundingViewManager with the given context, descriptor, object store, properties string and animation state.
      Parameters:
      viewContext - Provides a context for the VM to be in.
      desc - The ViewDescriptor that identifies this VM
      properties - A set of ";" delimited name-value pairs.
      animationInfo - Initial animation properties
      Throws:
      VisADException - the VisAD exception
      RemoteException - the remote exception
    • SoundingViewManager

      public SoundingViewManager(ViewContext viewContext, DisplayMaster master, ViewDescriptor viewDescriptor, String properties) throws VisADException, RemoteException
      Create a SoundingViewManager with the given context, display, descriptor, properties string.
      Parameters:
      viewContext - Provides a context for the VM to be in.
      master - display master
      viewDescriptor - The ViewDescriptor that identifies this VM
      properties - A set of ";" delimited name-value pairs.
      Throws:
      VisADException - the VisAD exception
      RemoteException - the remote exception
  • Method Details

    • initializeViewMenu

      public void initializeViewMenu(JMenu viewMenu)
      Initialize the view menu
      Overrides:
      initializeViewMenu in class ViewManager
      Parameters:
      viewMenu - the view menu
    • doMakeDisplayMaster

      protected DisplayMaster doMakeDisplayMaster() throws VisADException, RemoteException
      Factory method for creating the display master
      Overrides:
      doMakeDisplayMaster in class ViewManager
      Returns:
      The Display Master
      Throws:
      RemoteException - On badness
      VisADException - On badness
    • setSoundingDisplay

      public void setSoundingDisplay(AerologicalDisplay ad)
      Set the sounding display
      Parameters:
      ad - the sounding display
    • getShowSideLegend

      public boolean getShowSideLegend()
      Don't show the side legend
      Overrides:
      getShowSideLegend in class ViewManager
      Returns:
      false
    • getTypeName

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

      public boolean animationOk()
      Do we support animation?
      Overrides:
      animationOk in class ViewManager
      Returns:
      false
    • addPropertiesComponents

      protected void addPropertiesComponents(JTabbedPane tabbedPane)
      Add a JTabbedPane to the properties component
      Overrides:
      addPropertiesComponents in class ViewManager
      Parameters:
      tabbedPane - the pane to add
    • applyProperties

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

      public static String getTypeLabel(String chartType)
      Get the label for the type of display
      Parameters:
      chartType - type name
      Returns:
      the label
    • getChartType

      public String getChartType()
      Get the chart type.
      Returns:
      chart type
    • setChartType

      public void setChartType(String value)
      Set the chart type.
      Parameters:
      value - chart type
    • getSaturationAdiabatVisibility

      public boolean getSaturationAdiabatVisibility()
      Get the saturated adiabat visibility
      Returns:
      true if visiable
    • setSaturationAdiabatVisibility

      public void setSaturationAdiabatVisibility(boolean value)
      Set the saturated adiabat visibility
      Parameters:
      value - true if visiable
    • getDryAdiabatVisibility

      public boolean getDryAdiabatVisibility()
      Get the dry adiabat visibility
      Returns:
      true if visiable
    • getIsobarsVisibility

      public boolean getIsobarsVisibility()
      Get the isobars visibility
      Returns:
      true if visiable
    • setDryAdiabatVisibility

      public void setDryAdiabatVisibility(boolean value)
      Set the dry adiabat visibility
      Parameters:
      value - true if visiable
    • setIsobarsVisibility

      public void setIsobarsVisibility(boolean value)
      Set the isobars visibility
      Parameters:
      value - true if visiable
    • getSaturationMixingRatioVisibility

      public boolean getSaturationMixingRatioVisibility()
      Get the saturation mixing ratio visibility
      Returns:
      true if visiable
    • setSaturationMixingRatioVisibility

      public void setSaturationMixingRatioVisibility(boolean value)
      Set the saturation mixing ratio visibility
      Parameters:
      value - true if visiable
    • getDisplayCoordinateSystem

      public CoordinateSystem getDisplayCoordinateSystem()
      Get the display side coordinate system, subclasses should implement if there is one.
      Overrides:
      getDisplayCoordinateSystem in class ViewManager
      Returns:
      CoordinateSystem or null