Class AddeImageSelection

java.lang.Object
ucar.unidata.data.DataSelectionComponent
ucar.unidata.data.imagery.AddeImageSelection

public class AddeImageSelection extends DataSelectionComponent
The Class SatImageSelection.
  • Field Details

    • PROP_LATLON

      protected static final String PROP_LATLON
      Property for image default value lat/lon
      See Also:
    • PROP_LINELE

      protected static final String PROP_LINELE
      Property for image default value lin/ele
      See Also:
    • PROP_USER

      protected static final String PROP_USER
      Property for the user
      See Also:
    • DEFAULT_USER

      protected static final String DEFAULT_USER
      Default value for the user property
      See Also:
    • PROP_PROJ

      protected static final String PROP_PROJ
      Property for the project
      See Also:
    • DEFAULT_PROJ

      protected static final String DEFAULT_PROJ
      Default value for the proj property
      See Also:
    • PROP_DESCR

      protected static final String PROP_DESCR
      Property for image default value descriptor
      See Also:
    • PROP_VERSION

      protected static final String PROP_VERSION
      Property for image default value version
      See Also:
    • PROP_COMPRESS

      protected static final String PROP_COMPRESS
      Property for image compress
      See Also:
    • PROP_PORT

      protected static final String PROP_PORT
      Property for the port
      See Also:
    • DEFAULT_DEBUG

      protected static final String DEFAULT_DEBUG
      Default value for the debug property
      See Also:
    • PROP_DEBUG

      protected static final String PROP_DEBUG
      Property for image default value descriptor
      See Also:
    • DEFAULT_VERSION

      protected static final String DEFAULT_VERSION
      Default value for the version property
      See Also:
    • PROP_SPAC

      protected static final String PROP_SPAC
      Property for image default value spac
      See Also:
    • LABEL_SELECT

      protected static final String LABEL_SELECT
      Selection label text
      See Also:
    • PROP_ADDEPORT

      public static final String PROP_ADDEPORT
      property for the ADDE port
      See Also:
    • DEFAULT_PORT

      protected static final String DEFAULT_PORT
      Default value for the port property
      See Also:
    • PROP_KEY

      protected static final String PROP_KEY
      Property for image default value key
      See Also:
    • descriptorTable

      protected Hashtable descriptorTable
      Descriptor/name hashtable
    • bandComboBox

      protected JComboBox bandComboBox
      Widget for selecting the band
    • bandTable

      protected Hashtable bandTable
      Mapping of area directory to list of BandInfos
    • centerElementFld

      protected JTextField centerElementFld
      Widget for the element center point in the advanced section.
    • centerLineFld

      protected JTextField centerLineFld
      Widget for the line center point in the advanced section.
    • latLonWidget

      protected LatLonWidget latLonWidget
      Input for lat/lon center point.
    • descriptorComboBox

      protected JComboBox descriptorComboBox
      A widget for the list of dataset descriptors
    • unitComboBox

      protected JComboBox unitComboBox
      Widget for selecting image units
  • Constructor Details

    • AddeImageSelection

      public AddeImageSelection(AddeImageDataSource addeImageDataSource)
      Instantiates a new sat image selection.
      Parameters:
      addeImageDataSource - the adde image data source
  • Method Details

    • doMakeContents

      protected JComponent doMakeContents()
      Description copied from class: DataSelectionComponent
      Hook method to make the contents
      Specified by:
      doMakeContents in class DataSelectionComponent
      Returns:
      gui contents
    • applyToDataSelection

      public void applyToDataSelection(DataSelection dataSelection)
      Description copied from class: DataSelectionComponent
      Apply settings to the data selection
      Specified by:
      applyToDataSelection in class DataSelectionComponent
      Parameters:
      dataSelection - data selection to apply to
    • getAdvancedProps

      protected String[] getAdvancedProps()
      Get the list of advanced property names.
      Returns:
      array of advanced property names
    • getAdvancedLabels

      protected String[] getAdvancedLabels()
      Get the list of advanced property labels.
      Returns:
      list of advanced property labels
    • changePlace

      public void changePlace(String newPlace)
      Change the place.
      Parameters:
      newPlace - new place
    • addPropComp

      protected JComponent addPropComp(String propId, JComponent comp)
      Associates the goven JComponent with the PROP_ property identified by the given propId.
      Parameters:
      propId - The property
      comp - The gui component that allows the user to set the property
      Returns:
      Just returns the given comp
    • cyclePlace

      public void cyclePlace()
      Cycle the place.
    • setToFullResolution

      public void setToFullResolution()
      Set to full resolution.
    • padLabel

      public JComponent padLabel(String s)
    • getSize

      protected int[] getSize(AreaDirectory ad)
      Get the size for the area directory
      Parameters:
      ad - the area directory
      Returns:
      an array of lines,elements
    • getSelectedDescriptor

      public String getSelectedDescriptor()
      Get the selected descriptor.
      Returns:
      the selected descriptor
    • getDescriptor

      protected String getDescriptor()
      Get the selected descriptor.
      Returns:
      the currently selected descriptor.
    • getDescriptorFromSelection

      protected String getDescriptorFromSelection(String selection)
      Get the descriptor relating to the selection.
      Parameters:
      selection - String name from the widget
      Returns:
      the descriptor
    • getSelectedUnit

      protected String getSelectedUnit()
      Get the selected calibration unit.
      Returns:
      the selected calibration unit
    • getPort

      protected String getPort()
      Get the port to use. Check the IDV for an adde.port property. If not null then use the IDV property. Else use DEFAULT_PORT
      Returns:
      the port to use
    • getDefaultPropValue

      protected String getDefaultPropValue(String prop, AreaDirectory ad, boolean forDisplay)
      Get the default property value for the adde request string
      Parameters:
      prop - The property
      ad - The AreaDirectory
      forDisplay - Is this to display to the user in the gui
      Returns:
      The default of the property to use in the request string
    • getSelectedBandName

      public String getSelectedBandName()
      Get the name of the selected band
      Returns:
      the name of the band
    • getPropertiesDescription

      protected String getPropertiesDescription()
      Get a description of the properties
      Returns:
      a description
    • getUserPropValue

      protected String getUserPropValue(String prop, AreaDirectory ad)
      Get the user supplied property value for the adde request string
      Parameters:
      prop - The property
      ad - The AreaDirectory
      Returns:
      The value, supplied by the user, of the property to use in the request string
    • getBottomComponents

      protected void getBottomComponents(List bottomComps)
      Add the bottom advanced gui panel to the list
      Parameters:
      bottomComps - the bottom components