Class ProfilerControl

All Implemented Interfaces:
ActionListener, ItemListener, PropertyChangeListener, EventListener, HyperlinkListener, Sharable, DataChangeListener, DisplayControl, Prototypable, ControlListener, DisplayListener
Direct Known Subclasses:
ProfilerMultiStationControl, WindTimeHeightControl

public abstract class ProfilerControl extends DisplayControlImpl
An abstract class that provides common services for Profiler display related controls.
Author:
MetApps/Unidata
  • Field Details

    • scaleFactor

      protected final float scaleFactor
      scale factor for the wind barbs
      See Also:
    • flowScaleValue

      protected float flowScaleValue
      flow scale
    • verticalIntervalValue

      protected float verticalIntervalValue
      vertical spacing interval
  • Constructor Details

    • ProfilerControl

      public ProfilerControl()
      Default constructor; does nothing. See init() for creation actions.
  • Method Details

    • doMakeExtraComponent

      protected JComponent doMakeExtraComponent()
      Make any extra components for the UI.
      Returns:
      extra components wrapped in a Component
    • doMakeVerticalIntervalComponent

      protected JComponent doMakeVerticalIntervalComponent()
      Make a combo box to select vertical separation of wind barbs, in m
      Returns:
      component for vertical interval selection
    • getControlWidgets

      public void getControlWidgets(List controlWidgets) throws VisADException, RemoteException
      Make the control widgets
      Overrides:
      getControlWidgets in class DisplayControlImpl
      Parameters:
      controlWidgets - list of control widgets
      Throws:
      RemoteException - Java RMI error
      VisADException - VisAD Error
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Override the base class method to catch any events.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class DisplayControlImpl
      Parameters:
      e - The action event.
    • initDone

      public void initDone()
      Method called after initialization.
      Overrides:
      initDone in class DisplayControlImpl
    • setVerticalInterval

      public void setVerticalInterval(float value)
      Use the value of the factor in the vert interval box to set a different vertical interval.
      Parameters:
      value - new vertical interval value (meters)
    • getVerticalInterval

      public float getVerticalInterval()
      Get the vertical interval value
      Returns:
      vertical interval in meters
    • setFlowScale

      public void setFlowScale(float f)
      Set the length of the wind barb
      Parameters:
      f - the length of the wind barb
    • getFlowScale

      public float getFlowScale()
      Return the value of the barb size.
      Returns:
      The value of the barb size.