Class FlowTimeHeightControl

All Implemented Interfaces:
ActionListener, ItemListener, PropertyChangeListener, EventListener, HyperlinkListener, Sharable, DataChangeListener, FlowDisplayControl, DisplayControl, Prototypable, ControlListener, DisplayListener

public class FlowTimeHeightControl extends TimeHeightControl implements FlowDisplayControl
A plan view control for flow data (vector or wind barbs)
Version:
$Revision: 1.6 $
Author:
Stu Wier\
  • Field Details

  • Constructor Details

    • FlowTimeHeightControl

      public FlowTimeHeightControl()
      Create a new FlowTimeHeightControl; set attribute flags
  • Method Details

    • getColorWidgetLabel

      public String getColorWidgetLabel()
      Get the color table widget label text.
      Overrides:
      getColorWidgetLabel in class DisplayControlImpl
      Returns:
      the label text.
    • createDataDisplay

      protected DisplayableData createDataDisplay() throws VisADException, RemoteException
      Create the Displayable for the data depiction.
      Overrides:
      createDataDisplay in class TimeHeightControl
      Returns:
      the Displayable.
      Throws:
      RemoteException - Java RMI error
      VisADException - VisAD error
    • initDone

      public void initDone()
      Method to call after init().
      Overrides:
      initDone in class TimeHeightControl
      See Also:
    • getControlWidgets

      public void getControlWidgets(List controlWidgets) throws VisADException, RemoteException
      Get control widgets special to this control.
      Overrides:
      getControlWidgets in class TimeHeightControl
      Parameters:
      controlWidgets - list of control widget from the superclass
      Throws:
      RemoteException - Java RMI error
      VisADException - VisAD error
    • getDataDisplayFlags

      protected int getDataDisplayFlags()
      Get the attribute flags for the data display
      Overrides:
      getDataDisplayFlags in class TimeHeightControl
      Returns:
      the flags
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Handle actions as an ActionListener
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class GridDisplayControl
      Parameters:
      e - action event to process
    • setStreamlines

      public void setStreamlines(boolean v)
      Set the streamline property. Used by XML persistence
      Parameters:
      v - true to use streamlines
    • getStreamlines

      public boolean getStreamlines()
      Get the streamline property. Used by XML persistence
      Returns:
      the current streamline property (true if streamlines)
    • setWindbarbs

      public void setWindbarbs(boolean v)
      Set the wind barb property. Used by XML persistence
      Parameters:
      v - true if you want to use wind barbs
    • getWindbarbs

      public boolean getWindbarbs()
      Get the wind barb property. Used by XML persistence
      Returns:
      true if wind barbs are being depicted
    • setIsThreeComponents

      public void setIsThreeComponents(boolean v)
      Set the use 3 components property. Used by XML persistence
      Parameters:
      v - true if using u, v and w
    • getIsThreeComponents

      public boolean getIsThreeComponents()
      Get the use 3 components property. Used by XML persistence
      Returns:
      true if using 3 components for wind
    • setScaleFactor

      public void setScaleFactor(float s)
      Set the scale factor. Used by XML persistence
      Parameters:
      s - the new factor
    • getFlowScale

      public float getFlowScale()
      Get the flow scale. Used by XML persistence
      Returns:
      the flow scale for this control
    • setFlowScale

      public void setFlowScale(float f)
      Set the flow scale. Used by XML persistence
      Parameters:
      f - new flow scale
    • loadProfile

      public void loadProfile(RealTuple position) throws VisADException, RemoteException
      Given the location of the profile SelectorPoint, create a data set for a profile at that location, and load it in display. Show lat-lon location on the control frame.
      Overrides:
      loadProfile in class TimeHeightControl
      Parameters:
      position - the location
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • displayTHForCoord

      protected void displayTHForCoord(FieldImpl fi, int NN) throws VisADException, RemoteException
      Make a 2D display of the range values against domain coordinate # NN.
      Overrides:
      displayTHForCoord in class TimeHeightControl
      Parameters:
      fi - a VisAD FlatField or seqence of FlatFields with 3 or more domain coordinates, manifold dimension 1.
      NN - an integer, the index number of the coordinate to use as profile or y axis of plot (0,1,2,...)
      Throws:
      RemoteException - Java RMI error
      VisADException - VisAD Error