Class VerticalProfileControl

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

public class VerticalProfileControl extends LineProbeControl
Given a VisAD Field, make a 2D plot of the range data against one of the 3 domain coordinates.
Version:
$Revision: 1.16 $Date: 2007/07/24 15:59:26 $
Author:
IDV Development Team
  • Field Details

  • Constructor Details

    • VerticalProfileControl

      public VerticalProfileControl()
      Default constructor; set attribute flags
  • Method Details

    • init

      public boolean init(DataChoice dataChoice) throws VisADException, RemoteException
      Construct the vertical profile display and control buttons
      Overrides:
      init in class DisplayControlImpl
      Parameters:
      dataChoice - data description
      Returns:
      true if successful
      Throws:
      VisADException - couldn't create a VisAD object needed
      RemoteException - couldn't create a remote object needed
    • init

      public boolean init(List choices) throws VisADException, RemoteException
      Construct the vertical profile display and control buttons
      Overrides:
      init in class DisplayControlImpl
      Parameters:
      choices - data choices
      Returns:
      true if successful
      Throws:
      VisADException - couldn't create a VisAD object needed
      RemoteException - couldn't create a remote object needed
    • initDone

      public void initDone()
      Called after init(). Load profile into display.
      Overrides:
      initDone in class DisplayControlImpl
    • getExtraLegendComponent

      protected JComponent getExtraLegendComponent(int legendType)
      Assume that any display controls that have a color table widget will want the color table to show up in the legend.
      Overrides:
      getExtraLegendComponent in class DisplayControlImpl
      Parameters:
      legendType - type of legend
      Returns:
      The extra JComponent to use in legend
    • timeChanged

      protected void timeChanged(Real time)
      Respond to a timeChange event
      Overrides:
      timeChanged in class DisplayControlImpl
      Parameters:
      time - new time
    • doMakeContents

      protected Container doMakeContents() throws VisADException, RemoteException
      Make the UI contents for this control.
      Overrides:
      doMakeContents in class DisplayControlImpl
      Returns:
      container for UI
      Throws:
      RemoteException - Java RMI error
      VisADException - VisAD Error
    • processNewData

      protected void processNewData(List newChoices) throws VisADException, RemoteException
      Override base class method which is called when the user has selected new data choices.
      Parameters:
      newChoices - new list of choices
      Throws:
      RemoteException - Java RMI error
      VisADException - VisAD Error
    • resetData

      protected void resetData() throws VisADException, RemoteException
      Override base class method to just trigger a redisplay of the data.
      Overrides:
      resetData in class DisplayControlImpl
      Throws:
      RemoteException - Java RMI error
      VisADException - VisAD Error
    • doMoveProbe

      protected void doMoveProbe()
      Method called when probe is moved.
      Overrides:
      doMoveProbe in class LineProbeControl
    • addNewData

      protected void addNewData(List newChoices) throws VisADException, RemoteException
      Override base class method which is called when the user has selected new data choices.
      Overrides:
      addNewData in class DisplayControlImpl
      Parameters:
      newChoices - new list of choices
      Throws:
      RemoteException - Java RMI error
      VisADException - VisAD Error
    • getDataChoiceAtRow

      public DataChoice getDataChoiceAtRow(int row)
      Get the DataChoice associated with the parameter at a particular row.
      Parameters:
      row - row index
      Returns:
      the associated DataChoice
    • getChangeParameterLabel

      protected String getChangeParameterLabel()
      Return the appropriate label text for the menu.
      Overrides:
      getChangeParameterLabel in class DisplayControlImpl
      Returns:
      the label text
    • probePositionChanged

      protected void probePositionChanged(RealTuple position)
      This gets called by the base class LineProbeControl class when the probe positon has changed (either through user interaction or through the sharing framework.
      Overrides:
      probePositionChanged in class LineProbeControl
      Parameters:
      position - new position
    • reSetProfileAltitudeUnit

      protected void reSetProfileAltitudeUnit(Unit aUnit)
      This gets called by changing the altitude unit
      Parameters:
      aUnit - _more_
    • loadProfile

      public void loadProfile(RealTuple position) throws VisADException, RemoteException
      Given the location of the profile SelectorPoint, and a FieldImpl for one or more times for animation, create a data set for a profile at the profile's SP location. Create a vertical line showing where profile is in the data.
      Parameters:
      position - new position for profile
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • getSaveMenuItems

      protected void getSaveMenuItems(List items, boolean forMenuBar)
      Add the relevant file menu items into the list
      Overrides:
      getSaveMenuItems in class DisplayControlImpl
      Parameters:
      items - List of menu items
      forMenuBar - Is this for the menu in the window's menu bar or for a popup menu in the legend
    • exportCsv

      public void exportCsv()
      Export the current time as csv
    • exportCsvAllTimes

      public void exportCsvAllTimes()
      Export all times as csv
    • exportToCsv

      public void exportToCsv(Real[] times)
      Export all times as csv
      Parameters:
      times - export given times as csv
    • getViewMenuItems

      protected void getViewMenuItems(List items, boolean forMenuBar)
      Make the view menu items
      Overrides:
      getViewMenuItems in class DisplayControlImpl
      Parameters:
      items - List of menu items
      forMenuBar - forMenuBar
    • getAltUnit

      public Unit getAltUnit()
      _more_
      Returns:
      _more_
    • setAltUnit

      public void setAltUnit(Unit unit)
      _more_
      Parameters:
      unit - _more_
    • setAltCoord

      public void setAltCoord(String cname)
      _more_
      Parameters:
      cname - _more_
    • getAltCoord

      public String getAltCoord()
      _more_
      Returns:
      _more_
    • showLineProperties

      public void showLineProperties(VerticalProfileInfo vpInfo)
      Show the line properties editor
      Parameters:
      vpInfo - the VerticalProfileInfo
    • setShowThumbNail

      public void setShowThumbNail(boolean value)
      Set the ShowThumbNail property.
      Parameters:
      value - The new value for ShowThumbNail
    • setShowTable

      public void setShowTable(boolean value)
      Set the ShowTable property.
      Parameters:
      value - The new value for ShowTable
    • getShowTable

      public boolean getShowTable()
      Get the ShowTable property.
      Returns:
      The ShowTable
    • setInfos

      public void setInfos(List value)
      Set the Infos property.
      Parameters:
      value - The new value for Infos
    • getInfos

      public List getInfos()
      Get the Infos property.
      Returns:
      The Infos
    • getChart

      public VerticalProfileChart getChart()
      Get the chart
      Returns:
      The chart
    • setVerticalProfileChart

      public void setVerticalProfileChart(VerticalProfileChart value)
      Set the Chart property.
      Parameters:
      value - The new value for Chart
    • getVerticalProfileChart

      public VerticalProfileChart getVerticalProfileChart()
      Get the Chart property.
      Returns:
      The Chart
    • relocateDisplay

      public void relocateDisplay(ucar.unidata.geoloc.LatLonRect originalBounds, ucar.unidata.geoloc.LatLonRect newBounds, boolean useDataProjection)
      Description copied from class: LineProbeControl
      When we relocate a bundle this gets called to relocate the display This method gets overwritten by the probe and cross section displays so they can move their selection points to a new location
      Overrides:
      relocateDisplay in class LineProbeControl
      Parameters:
      originalBounds - The original bounds of the datasource
      newBounds - The relocated bounds of the datasource
    • canExportData

      public boolean canExportData()
      Description copied from class: DisplayControlImpl
      Can this display control write out data.
      Overrides:
      canExportData in class DisplayControlImpl
      Returns:
      true if it can