Class HovmollerViewManager

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

public class HovmollerViewManager extends ViewManager
A wrapper around a Hovmoller display master. Provides an interface for managing user interactions, gui creation, etc.
Author:
Don Murray - CU/CIRES
  • Field Details

  • Constructor Details

    • HovmollerViewManager

      public HovmollerViewManager()
      Default constructor.
    • HovmollerViewManager

      public HovmollerViewManager(ViewContext viewContext)
      Construct a HovmollerViewManager from an IDV.
      Parameters:
      viewContext - Really the IDV
    • HovmollerViewManager

      public HovmollerViewManager(ViewContext viewContext, ViewDescriptor desc, String properties) throws VisADException, RemoteException
      Construct a HovmollerViewManager with the specified params.
      Parameters:
      viewContext - context in which this MVM exists
      desc - ViewDescriptor
      properties - semicolon separated list of properties (can be null)
      Throws:
      VisADException - the VisAD exception
      RemoteException - the remote exception
  • Method Details

    • getHovmollerDisplay

      public HovmollerDisplay getHovmollerDisplay()
      Helper method.
      Returns:
      The time-height display_
    • doMakeDisplayMaster

      protected DisplayMaster doMakeDisplayMaster() throws VisADException, RemoteException
      Factory method to create the display master.
      Overrides:
      doMakeDisplayMaster in class ViewManager
      Returns:
      The HovmollerDisplay
      Throws:
      VisADException - On badness
      RemoteException - On badness
    • getUseFastRendering

      public boolean getUseFastRendering(boolean b)
      This is called by display controls and allows us to force fast rendering.
      Overrides:
      getUseFastRendering in class ViewManager
      Parameters:
      b - The displays fast rendering flag
      Returns:
      true
    • addDisplayInfo

      public boolean addDisplayInfo(DisplayInfo displayInfo) throws RemoteException, VisADException
      Override base class method to force setting fast rendering to true.
      Overrides:
      addDisplayInfo in class ViewManager
      Parameters:
      displayInfo - The display info to add.
      Returns:
      Was the addition successful
      Throws:
      RemoteException - the remote exception
      VisADException - the VisAD exception
    • handleBooleanPropertyChange

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

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

      public void applyPreferences()
      Some user preferences have changed.
      Overrides:
      applyPreferences in class ViewManager
    • makeShowMenu

      protected JMenu makeShowMenu()
      Create and return the show menu.
      Overrides:
      makeShowMenu in class ViewManager
      Returns:
      The Show menu
    • getInitialBooleanProperties

      protected void getInitialBooleanProperties(List props)
      Add to the intial Boolean properties.
      Overrides:
      getInitialBooleanProperties in class ViewManager
      Parameters:
      props - list to add to
    • doMakeContents

      protected Container doMakeContents()
      Make the GUI contents.
      Overrides:
      doMakeContents in class ViewManager
      Returns:
      The GUI contents
    • initBooleanProperties

      protected void initBooleanProperties()
      Set some properties.
      Overrides:
      initBooleanProperties in class ViewManager
    • initializeViewMenu

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

      public boolean getShowGridLines()
      Get the show cursor readout flag
      Returns:
      The flag value
    • setClipping

      public void setClipping(boolean value)
      Set the clipping flag.
      Parameters:
      value - The value
    • getClipping

      public boolean getClipping()
      Get the clipping flag.
      Returns:
      The flag value
    • animationOk

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

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