Class ShapefileControl

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

public class ShapefileControl extends DisplayControlImpl
A MetApps Display Control with Displayable and controls for one 3D isosurface display of one parameter.
Version:
$Revision: 1.25 $
Author:
Jeff McWhirter
  • Field Details

    • filters

      protected List filters
      filters for showing data
    • allFields

      protected List allFields
      All of the field names
    • selectedFields

      protected List selectedFields
      Field names to show in the table
    • uniqueFields

      protected List uniqueFields
      Field names to show in the table
  • Constructor Details

    • ShapefileControl

      public ShapefileControl()
      Create a new ShapefileControl; set the attributes
  • Method Details

    • init

      public boolean init(DataChoice dataChoice) throws VisADException, RemoteException
      Call to help make this kind of Display Control; also calls code to made the Displayable (empty of data thus far). This method is called from inside DisplayControlImpl.init(several args).
      Overrides:
      init in class DisplayControlImpl
      Parameters:
      dataChoice - the DataChoice of the moment.
      Returns:
      true if successful
      Throws:
      RemoteException - Java RMI error
      VisADException - VisAD Error
    • doMakeContents

      protected Container doMakeContents() throws VisADException, RemoteException
      Make the gui
      Overrides:
      doMakeContents in class DisplayControlImpl
      Returns:
      The gui
      Throws:
      RemoteException - On badness
      VisADException - On badness
    • showFieldSelector

      public void showFieldSelector()
      Show the field selector window
    • shouldAddDisplayListener

      protected boolean shouldAddDisplayListener()
      Signal base class to add this as a display listener
      Overrides:
      shouldAddDisplayListener in class DisplayControlImpl
      Returns:
      Add as display listener
    • showUniqueSelector

      public void showUniqueSelector()
      Show the field selector window
    • 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
    • exportTable

      public void exportTable()
      Export the table as csv
    • exportShapes

      public void exportShapes()
      Export the displayed shapes as our own xml format.
    • handleFilterApply

      public void handleFilterApply()
      Handle the apply filter button
    • setData

      protected boolean setData(DataChoice choice) throws VisADException, RemoteException
      Set the data in this control.
      Overrides:
      setData in class DisplayControlImpl
      Parameters:
      choice - choice describing data
      Returns:
      true if successful
      Throws:
      RemoteException - Java RMI error
      VisADException - VisAD Error
    • getControlWidgets

      public void getControlWidgets(List controlWidgets) throws VisADException, RemoteException
      Get the control widgets for this control.
      Overrides:
      getControlWidgets in class DisplayControlImpl
      Parameters:
      controlWidgets - list of controls to add to
      Throws:
      RemoteException - Java RMI error
      VisADException - VisAD Error
    • getColorWidgetLabel

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

      public void setLineWidth(int width)
      Set the line width.
      Overrides:
      setLineWidth in class DisplayControlImpl
      Parameters:
      width - line width (pixels)
    • getLineWidth

      public int getLineWidth()
      Get the line width
      Overrides:
      getLineWidth in class DisplayControlImpl
      Returns:
      line width
    • setFiltersEnabled

      public void setFiltersEnabled(boolean value)
      Set the FiltersEnabled property.
      Parameters:
      value - The new value for FiltersEnabled
    • getFiltersEnabled

      public boolean getFiltersEnabled()
      Get the FiltersEnabled property.
      Returns:
      The FiltersEnabled
    • setFilters

      public void setFilters(List value)
      Set the Filters property.
      Parameters:
      value - The new value for Filters
    • getFilters

      public List getFilters()
      Get the Filters property.
      Returns:
      The Filters
    • setMatchAll

      public void setMatchAll(boolean value)
      Set the MatchAll property.
      Parameters:
      value - The new value for MatchAll
    • getMatchAll

      public boolean getMatchAll()
      Get the MatchAll property.
      Returns:
      The MatchAll
    • setSelectedFields

      public void setSelectedFields(List value)
      Set the SelectedFields property.
      Parameters:
      value - The new value for SelectedFields
    • getSelectedFields

      public List getSelectedFields()
      Get the SelectedFields property.
      Returns:
      The SelectedFields
    • setUniqueFields

      public void setUniqueFields(List value)
      Set the UniqueFields property.
      Parameters:
      value - The new value for UniqueFields
    • getUniqueFields

      public List getUniqueFields()
      Get the UniqueFields property.
      Returns:
      The UniqueFields
    • hasMapProjection

      public boolean hasMapProjection()
      We do have a map projection
      Overrides:
      hasMapProjection in class DisplayControlImpl
      Returns:
      Has map projection
    • getDataProjection

      public MapProjection getDataProjection()
      get MapProjection of data to display
      Specified by:
      getDataProjection in interface DisplayControl
      Overrides:
      getDataProjection in class DisplayControlImpl
      Returns:
      The native projection of the data