ucar.unidata.data.imagery
Class AddeImageSelection

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

public class AddeImageSelection
extends DataSelectionComponent

The Class SatImageSelection.


Field Summary
protected  JComboBox bandComboBox
          Widget for selecting the band
protected  Hashtable bandTable
          Mapping of area directory to list of BandInfos
protected  JTextField centerElementFld
          Widget for the element center point in the advanced section.
protected  JTextField centerLineFld
          Widget for the line center point in the advanced section.
protected static String DEFAULT_DEBUG
          Default value for the debug property
protected static String DEFAULT_PORT
          Default value for the port property
protected static String DEFAULT_PROJ
          Default value for the proj property
protected static String DEFAULT_USER
          Default value for the user property
protected static String DEFAULT_VERSION
          Default value for the version property
protected  JComboBox descriptorComboBox
          A widget for the list of dataset descriptors
protected  Hashtable descriptorTable
          Descriptor/name hashtable
protected static String LABEL_SELECT
          Selection label text
protected  LatLonWidget latLonWidget
          Input for lat/lon center point.
protected  JComboBox navComboBox
          Widget for selecting image nav type.
static String PROP_ADDEPORT
          property for the ADDE port
protected static String PROP_COMPRESS
          Property for image compress
protected static String PROP_DEBUG
          Property for image default value descriptor
protected static String PROP_DESCR
          Property for image default value descriptor
protected static String PROP_KEY
          Property for image default value key
protected static String PROP_LATLON
          Property for image default value lat/lon
protected static String PROP_LINELE
          Property for image default value lin/ele
protected static String PROP_PORT
          Property for the port
protected static String PROP_PROJ
          Property for the project
protected static String PROP_SPAC
          Property for image default value spac
protected static String PROP_USER
          Property for the user
protected static String PROP_VERSION
          Property for image default value version
protected  JComboBox unitComboBox
          Widget for selecting image units
 
Fields inherited from class ucar.unidata.data.DataSelectionComponent
dataSelection
 
Constructor Summary
AddeImageSelection(AddeImageDataSource addeImageDataSource)
          Instantiates a new sat image selection.
 
Method Summary
protected  JComponent addPropComp(String propId, JComponent comp)
          Associates the goven JComponent with the PROP_ property identified by the given propId.
 void applyToDataSelection(DataSelection dataSelection)
          Apply settings to the data selection
 void changePlace(String newPlace)
          Change the place.
 void cyclePlace()
          Cycle the place.
protected  JComponent doMakeContents()
          Hook method to make the contents
protected  String[] getAdvancedLabels()
          Get the list of advanced property labels.
protected  String[] getAdvancedProps()
          Get the list of advanced property names.
protected  void getBottomComponents(List bottomComps)
          Add the bottom advanced gui panel to the list
protected  String getDefaultPropValue(String prop, AreaDirectory ad, boolean forDisplay)
          Get the default property value for the adde request string
protected  String getDescriptor()
          Get the selected descriptor.
protected  String getDescriptorFromSelection(String selection)
          Get the descriptor relating to the selection.
protected  String getPort()
          Get the port to use.
protected  String getPropertiesDescription()
          Get a description of the properties
 String getSelectedBandName()
          Get the name of the selected band
 String getSelectedDescriptor()
          Get the selected descriptor.
protected  String getSelectedUnit()
          Get the selected calibration unit.
protected  int[] getSize(AreaDirectory ad)
          Get the size for the area directory
protected  String getUserPropValue(String prop, AreaDirectory ad)
          Get the user supplied property value for the adde request string
 JComponent padLabel(String s)
           
 void setToFullResolution()
          Set to full resolution.
 
Methods inherited from class ucar.unidata.data.DataSelectionComponent
getContents, getContents, getName, getShowInControlProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_LATLON

protected static final String PROP_LATLON
Property for image default value lat/lon

See Also:
Constant Field Values

PROP_LINELE

protected static final String PROP_LINELE
Property for image default value lin/ele

See Also:
Constant Field Values

PROP_USER

protected static final String PROP_USER
Property for the user

See Also:
Constant Field Values

DEFAULT_USER

protected static final String DEFAULT_USER
Default value for the user property

See Also:
Constant Field Values

PROP_PROJ

protected static final String PROP_PROJ
Property for the project

See Also:
Constant Field Values

DEFAULT_PROJ

protected static final String DEFAULT_PROJ
Default value for the proj property

See Also:
Constant Field Values

PROP_DESCR

protected static final String PROP_DESCR
Property for image default value descriptor

See Also:
Constant Field Values

PROP_VERSION

protected static final String PROP_VERSION
Property for image default value version

See Also:
Constant Field Values

PROP_COMPRESS

protected static final String PROP_COMPRESS
Property for image compress

See Also:
Constant Field Values

PROP_PORT

protected static final String PROP_PORT
Property for the port

See Also:
Constant Field Values

DEFAULT_DEBUG

protected static final String DEFAULT_DEBUG
Default value for the debug property

See Also:
Constant Field Values

PROP_DEBUG

protected static final String PROP_DEBUG
Property for image default value descriptor

See Also:
Constant Field Values

DEFAULT_VERSION

protected static final String DEFAULT_VERSION
Default value for the version property

See Also:
Constant Field Values

PROP_SPAC

protected static final String PROP_SPAC
Property for image default value spac

See Also:
Constant Field Values

LABEL_SELECT

protected static final String LABEL_SELECT
Selection label text

See Also:
Constant Field Values

PROP_ADDEPORT

public static final String PROP_ADDEPORT
property for the ADDE port

See Also:
Constant Field Values

DEFAULT_PORT

protected static final String DEFAULT_PORT
Default value for the port property

See Also:
Constant Field Values

PROP_KEY

protected static final String PROP_KEY
Property for image default value key

See Also:
Constant Field Values

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.


navComboBox

protected JComboBox navComboBox
Widget for selecting image nav type.


descriptorComboBox

protected JComboBox descriptorComboBox
A widget for the list of dataset descriptors


unitComboBox

protected JComboBox unitComboBox
Widget for selecting image units

Constructor Detail

AddeImageSelection

public AddeImageSelection(AddeImageDataSource addeImageDataSource)
Instantiates a new sat image selection.

Parameters:
addeImageDataSource - the adde image data source
Method Detail

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