Package ucar.unidata.data.imagery
Class AddeImageSelection
java.lang.Object
ucar.unidata.data.DataSelectionComponent
ucar.unidata.data.imagery.AddeImageSelection
The Class SatImageSelection.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JComboBox
Widget for selecting the bandprotected Hashtable
Mapping of area directory to list of BandInfosprotected JTextField
Widget for the element center point in the advanced section.protected JTextField
Widget for the line center point in the advanced section.protected static final String
Default value for the debug propertyprotected static final String
Default value for the port propertyprotected static final String
Default value for the proj propertyprotected static final String
Default value for the user propertyprotected static final String
Default value for the version propertyprotected JComboBox
A widget for the list of dataset descriptorsprotected Hashtable
Descriptor/name hashtableprotected static final String
Selection label textprotected LatLonWidget
Input for lat/lon center point.protected JComboBox
Widget for selecting image nav type.static final String
property for the ADDE portprotected static final String
Property for image compressprotected static final String
Property for image default value descriptorprotected static final String
Property for image default value descriptorprotected static final String
Property for image default value keyprotected static final String
Property for image default value lat/lonprotected static final String
Property for image default value lin/eleprotected static final String
Property for the portprotected static final String
Property for the projectprotected static final String
Property for image default value spacprotected static final String
Property for the userprotected static final String
Property for image default value versionprotected JComboBox
Widget for selecting image unitsFields inherited from class ucar.unidata.data.DataSelectionComponent
dataSelection
-
Constructor Summary
ConstructorsConstructorDescriptionAddeImageSelection
(AddeImageDataSource addeImageDataSource) Instantiates a new sat image selection. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 selectionvoid
changePlace
(String newPlace) Change the place.void
Cycle the place.protected JComponent
Hook method to make the contentsprotected String[]
Get the list of advanced property labels.protected String[]
Get the list of advanced property names.protected void
getBottomComponents
(List bottomComps) Add the bottom advanced gui panel to the listprotected String
getDefaultPropValue
(String prop, AreaDirectory ad, boolean forDisplay) Get the default property value for the adde request stringprotected String
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
Get a description of the propertiesGet the name of the selected bandGet the selected descriptor.protected String
Get the selected calibration unit.protected int[]
getSize
(AreaDirectory ad) Get the size for the area directoryprotected String
getUserPropValue
(String prop, AreaDirectory ad) Get the user supplied property value for the adde request stringvoid
Set to full resolution.Methods inherited from class ucar.unidata.data.DataSelectionComponent
getContents, getContents, getName, getShowInControlProperties
-
Field Details
-
PROP_LATLON
Property for image default value lat/lon- See Also:
-
PROP_LINELE
Property for image default value lin/ele- See Also:
-
PROP_USER
Property for the user- See Also:
-
DEFAULT_USER
Default value for the user property- See Also:
-
PROP_PROJ
Property for the project- See Also:
-
DEFAULT_PROJ
Default value for the proj property- See Also:
-
PROP_DESCR
Property for image default value descriptor- See Also:
-
PROP_VERSION
Property for image default value version- See Also:
-
PROP_COMPRESS
Property for image compress- See Also:
-
PROP_PORT
Property for the port- See Also:
-
DEFAULT_DEBUG
Default value for the debug property- See Also:
-
PROP_DEBUG
Property for image default value descriptor- See Also:
-
DEFAULT_VERSION
Default value for the version property- See Also:
-
PROP_SPAC
Property for image default value spac- See Also:
-
LABEL_SELECT
Selection label text- See Also:
-
PROP_ADDEPORT
property for the ADDE port- See Also:
-
DEFAULT_PORT
Default value for the port property- See Also:
-
PROP_KEY
Property for image default value key- See Also:
-
descriptorTable
Descriptor/name hashtable -
bandComboBox
Widget for selecting the band -
bandTable
Mapping of area directory to list of BandInfos -
centerElementFld
Widget for the element center point in the advanced section. -
centerLineFld
Widget for the line center point in the advanced section. -
latLonWidget
Input for lat/lon center point. -
descriptorComboBox
A widget for the list of dataset descriptors -
unitComboBox
Widget for selecting image units
-
-
Constructor Details
-
AddeImageSelection
Instantiates a new sat image selection.- Parameters:
addeImageDataSource
- the adde image data source
-
-
Method Details
-
doMakeContents
Description copied from class:DataSelectionComponent
Hook method to make the contents- Specified by:
doMakeContents
in classDataSelectionComponent
- Returns:
- gui contents
-
applyToDataSelection
Description copied from class:DataSelectionComponent
Apply settings to the data selection- Specified by:
applyToDataSelection
in classDataSelectionComponent
- Parameters:
dataSelection
- data selection to apply to
-
getAdvancedProps
Get the list of advanced property names.- Returns:
- array of advanced property names
-
getAdvancedLabels
Get the list of advanced property labels.- Returns:
- list of advanced property labels
-
changePlace
Change the place.- Parameters:
newPlace
- new place
-
addPropComp
Associates the goven JComponent with the PROP_ property identified by the given propId.- Parameters:
propId
- The propertycomp
- 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
-
getSize
Get the size for the area directory- Parameters:
ad
- the area directory- Returns:
- an array of lines,elements
-
getSelectedDescriptor
Get the selected descriptor.- Returns:
- the selected descriptor
-
getDescriptor
Get the selected descriptor.- Returns:
- the currently selected descriptor.
-
getDescriptorFromSelection
Get the descriptor relating to the selection.- Parameters:
selection
- String name from the widget- Returns:
- the descriptor
-
getSelectedUnit
Get the selected calibration unit.- Returns:
- the selected calibration unit
-
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
Get the default property value for the adde request string- Parameters:
prop
- The propertyad
- The AreaDirectoryforDisplay
- Is this to display to the user in the gui- Returns:
- The default of the property to use in the request string
-
getSelectedBandName
Get the name of the selected band- Returns:
- the name of the band
-
getPropertiesDescription
Get a description of the properties- Returns:
- a description
-
getUserPropValue
Get the user supplied property value for the adde request string- Parameters:
prop
- The propertyad
- The AreaDirectory- Returns:
- The value, supplied by the user, of the property to use in the request string
-
getBottomComponents
Add the bottom advanced gui panel to the list- Parameters:
bottomComps
- the bottom components
-