Class WindBarbStaff

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible

public class WindBarbStaff extends JPanel implements PropertyChangeListener
Provides support for displaying a vertical profile of the horizontal wind as a set of wind arrows off a vertical staff.
Version:
$Id: WindBarbStaff.java,v 1.12 2005/05/13 18:33:40 jeffmc Exp $
Author:
Don Murray
See Also:
  • Constructor Details

    • WindBarbStaff

      public WindBarbStaff() throws VisADException, RemoteException
      Construct a new wind staff display using the default maximum and minimum heights.
      Throws:
      VisADException - necessary VisAD object could not be created.
      RemoteException - Java RMI exception
    • WindBarbStaff

      public WindBarbStaff(float minZ, float maxZ) throws VisADException, RemoteException
      Construct a new wind staff display using the default maximum and minimum heights.
      Parameters:
      minZ - Minimum geopotential height in meters
      maxZ - Maximum geopotential height in meters
      Throws:
      VisADException - necessary VisAD object could not be created.
      RemoteException - Java RMI exception
  • Method Details

    • setWindProfile

      public void setWindProfile(Field windProfile) throws VisADException, RemoteException
      Set the wind profile to be displayed.
      Parameters:
      windProfile - Field of wind profile. Must be an instance of a CartesianHorizontalWindProfile
      Throws:
      VisADException - necessary VisAD object could not be created, profile is not changed.
      RemoteException - Java RMI exception
    • setBarbOrientation

      public void setBarbOrientation(int orientation) throws VisADException, RemoteException
      Sets the orientation of the wind barbs
      Parameters:
      orientation - either FlowControl.NH_ORIENTATION or FlowControl.SH_ORIENTATION
      Throws:
      VisADException - necessary VisAD object could not be created, profile is not changed.
      RemoteException - Java RMI exception
    • resetWindProfile

      public void resetWindProfile() throws VisADException, RemoteException
      Set the wind profile to be displayed.
      Throws:
      VisADException - necessary VisAD object could not be created, profile is not changed.
      RemoteException - Java RMI exception
    • setWindProfileReference

      public void setWindProfileReference(DataReferenceImpl windProfileRef) throws VisADException, RemoteException
      Set the reference for the wind profile.
      Parameters:
      windProfileRef - data reference to the wind profile
      Throws:
      VisADException - reference has already been set
      RemoteException - if a Java RMI failure occurs.
    • setWindStaffVisible

      public void setWindStaffVisible(boolean value) throws VisADException, RemoteException
      Set the visibility of the line along which the barbs are plotted
      Parameters:
      value - if true, line is displayed, otherwise it is hidden
      Throws:
      VisADException - necessary VisAD object could not be created, visibility is not changed.
      RemoteException - Java RMI exception
    • propertyChange

      public void propertyChange(PropertyChangeEvent pce)
      Handles a change to a property that's being listened to.
      Specified by:
      propertyChange in interface PropertyChangeListener
      Parameters:
      pce - The property-change event.
    • main

      public static void main(String[] args) throws Exception
      Tests this class.
      Parameters:
      args - Invocation arguments. Ignored.
      Throws:
      Exception - A problem occurred.