Class WorldWindControl

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

public class WorldWindControl extends StationLocationControl
Class to display a set of locations
Version:
$Revision: 1.18 $ $Date: 2007/04/11 18:56:05 $
Author:
MetApps Development Team
  • Constructor Details

    • WorldWindControl

      public WorldWindControl()
      Default cstr;
  • Method Details

    • init

      public boolean init(DataChoice dataChoice) throws VisADException, RemoteException
      Called to make this kind of Display Control; also calls code to made the Displayable. This method is called from inside DisplayControlImpl.init(several args). This implementation gets the list of stationTables to be used.
      Overrides:
      init in class StationLocationControl
      Parameters:
      dataChoice - the DataChoice of the moment -
      Returns:
      true if successful
      Throws:
      VisADException - there was a VisAD error
      RemoteException - there was a remote error
    • loadData

      public void loadData()
      Loads the data into the StationModelDisplayable. Declutters the stations if necessary.
      Overrides:
      loadData in class StationLocationControl
      See Also:
    • doMakeStationListPanel

      protected void doMakeStationListPanel(List comps)
      Override base class method to make the station list panel
      Parameters:
      comps - Holds the components to put in the gui
    • setLayerOn

      public void setLayerOn(boolean b, ucar.unidata.idv.control.WorldWindControl.Layer layer)
      set visibility of the layer
      Parameters:
      b - on or off
      layer - the layer_
    • getLayerOn

      public boolean getLayerOn(ucar.unidata.idv.control.WorldWindControl.Layer layer)
      Is the layer visibile
      Parameters:
      layer - The layer
      Returns:
      is visible
    • getSaveMenuItems

      protected void getSaveMenuItems(List items, boolean forMenuBar)
      Add the relevant file menu items into the list
      Overrides:
      getSaveMenuItems in class StationLocationControl
      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
    • getViewMenuItems

      protected void getViewMenuItems(List items, boolean forMenuBar)
      Add the view menu items
      Overrides:
      getViewMenuItems in class StationLocationControl
      Parameters:
      items - List of items
      forMenuBar - for menubar
    • saveLocations

      public void saveLocations()
      Write out the current list of locations as a stations xml file
    • getStationList

      protected List getStationList()
      Get the station List.
      Overrides:
      getStationList in class StationLocationControl
      Returns:
      the station list
    • getLayerVisibility

      public Hashtable getLayerVisibility()
      set of visible layers
      Returns:
      set of visible layers
    • setLayerVisibility

      public void setLayerVisibility(Hashtable v)
      set of visible layers
      Parameters:
      v - set of visible layers
    • setOnlyShowVisible

      public void setOnlyShowVisible(boolean value)
      Set the OnlyShowVisible property.
      Parameters:
      value - The new value for OnlyShowVisible
    • getOnlyShowVisible

      public boolean getOnlyShowVisible()
      Get the OnlyShowVisible property.
      Returns:
      The OnlyShowVisible