Class TimeHeightViewManager

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

public class TimeHeightViewManager extends ViewManager
A wrapper around a TimeHeight display master. Provides an interface for managing user interactions, gui creation, etc.
Author:
IDV development team
  • Field Details

  • Constructor Details

    • TimeHeightViewManager

      public TimeHeightViewManager()
      Default constructor
    • TimeHeightViewManager

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

      public TimeHeightViewManager(ViewContext viewContext, ViewDescriptor desc, String properties) throws VisADException, RemoteException
      Construct a TimeHeightViewManager 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

    • getTimeHeightDisplay

      public TimeHeightDisplay getTimeHeightDisplay()
      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 TimeHeightDisplay
      Throws:
      RemoteException - On badness
      VisADException - 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
    • 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