public class AddeImageSelection extends DataSelectionComponent
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JComboBox |
bandComboBox
Widget for selecting the band
|
protected java.util.Hashtable |
bandTable
Mapping of area directory to list of BandInfos
|
protected javax.swing.JTextField |
centerElementFld
Widget for the element center point in the advanced section.
|
protected javax.swing.JTextField |
centerLineFld
Widget for the line center point in the advanced section.
|
protected static java.lang.String |
DEFAULT_DEBUG
Default value for the debug property
|
protected static java.lang.String |
DEFAULT_PORT
Default value for the port property
|
protected static java.lang.String |
DEFAULT_PROJ
Default value for the proj property
|
protected static java.lang.String |
DEFAULT_USER
Default value for the user property
|
protected static java.lang.String |
DEFAULT_VERSION
Default value for the version property
|
protected javax.swing.JComboBox |
descriptorComboBox
A widget for the list of dataset descriptors
|
protected java.util.Hashtable |
descriptorTable
Descriptor/name hashtable
|
protected static java.lang.String |
LABEL_SELECT
Selection label text
|
protected LatLonWidget |
latLonWidget
Input for lat/lon center point.
|
protected javax.swing.JComboBox |
navComboBox
Widget for selecting image nav type.
|
static java.lang.String |
PROP_ADDEPORT
property for the ADDE port
|
protected static java.lang.String |
PROP_COMPRESS
Property for image compress
|
protected static java.lang.String |
PROP_DEBUG
Property for image default value descriptor
|
protected static java.lang.String |
PROP_DESCR
Property for image default value descriptor
|
protected static java.lang.String |
PROP_KEY
Property for image default value key
|
protected static java.lang.String |
PROP_LATLON
Property for image default value lat/lon
|
protected static java.lang.String |
PROP_LINELE
Property for image default value lin/ele
|
protected static java.lang.String |
PROP_PORT
Property for the port
|
protected static java.lang.String |
PROP_PROJ
Property for the project
|
protected static java.lang.String |
PROP_SPAC
Property for image default value spac
|
protected static java.lang.String |
PROP_USER
Property for the user
|
protected static java.lang.String |
PROP_VERSION
Property for image default value version
|
protected javax.swing.JComboBox |
unitComboBox
Widget for selecting image units
|
dataSelection
Constructor and Description |
---|
AddeImageSelection(AddeImageDataSource addeImageDataSource)
Instantiates a new sat image selection.
|
Modifier and Type | Method and Description |
---|---|
protected javax.swing.JComponent |
addPropComp(java.lang.String propId,
javax.swing.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(java.lang.String newPlace)
Change the place.
|
void |
cyclePlace()
Cycle the place.
|
protected javax.swing.JComponent |
doMakeContents()
Hook method to make the contents
|
protected java.lang.String[] |
getAdvancedLabels()
Get the list of advanced property labels.
|
protected java.lang.String[] |
getAdvancedProps()
Get the list of advanced property names.
|
protected void |
getBottomComponents(java.util.List bottomComps)
Add the bottom advanced gui panel to the list
|
protected java.lang.String |
getDefaultPropValue(java.lang.String prop,
edu.wisc.ssec.mcidas.AreaDirectory ad,
boolean forDisplay)
Get the default property value for the adde request string
|
protected java.lang.String |
getDescriptor()
Get the selected descriptor.
|
protected java.lang.String |
getDescriptorFromSelection(java.lang.String selection)
Get the descriptor relating to the selection.
|
protected java.lang.String |
getPort()
Get the port to use.
|
protected java.lang.String |
getPropertiesDescription()
Get a description of the properties
|
java.lang.String |
getSelectedBandName()
Get the name of the selected band
|
java.lang.String |
getSelectedDescriptor()
Get the selected descriptor.
|
protected java.lang.String |
getSelectedUnit()
Get the selected calibration unit.
|
protected int[] |
getSize(edu.wisc.ssec.mcidas.AreaDirectory ad)
Get the size for the area directory
|
protected java.lang.String |
getUserPropValue(java.lang.String prop,
edu.wisc.ssec.mcidas.AreaDirectory ad)
Get the user supplied property value for the adde request string
|
javax.swing.JComponent |
padLabel(java.lang.String s) |
void |
setToFullResolution()
Set to full resolution.
|
getContents, getContents, getName, getShowInControlProperties
protected static final java.lang.String PROP_LATLON
protected static final java.lang.String PROP_LINELE
protected static final java.lang.String PROP_USER
protected static final java.lang.String DEFAULT_USER
protected static final java.lang.String PROP_PROJ
protected static final java.lang.String DEFAULT_PROJ
protected static final java.lang.String PROP_DESCR
protected static final java.lang.String PROP_VERSION
protected static final java.lang.String PROP_COMPRESS
protected static final java.lang.String PROP_PORT
protected static final java.lang.String DEFAULT_DEBUG
protected static final java.lang.String PROP_DEBUG
protected static final java.lang.String DEFAULT_VERSION
protected static final java.lang.String PROP_SPAC
protected static final java.lang.String LABEL_SELECT
public static final java.lang.String PROP_ADDEPORT
protected static final java.lang.String DEFAULT_PORT
protected static final java.lang.String PROP_KEY
protected java.util.Hashtable descriptorTable
protected javax.swing.JComboBox bandComboBox
protected java.util.Hashtable bandTable
protected javax.swing.JTextField centerElementFld
protected javax.swing.JTextField centerLineFld
protected LatLonWidget latLonWidget
protected javax.swing.JComboBox navComboBox
protected javax.swing.JComboBox descriptorComboBox
protected javax.swing.JComboBox unitComboBox
public AddeImageSelection(AddeImageDataSource addeImageDataSource)
addeImageDataSource
- the adde image data sourceprotected javax.swing.JComponent doMakeContents()
DataSelectionComponent
doMakeContents
in class DataSelectionComponent
public void applyToDataSelection(DataSelection dataSelection)
DataSelectionComponent
applyToDataSelection
in class DataSelectionComponent
dataSelection
- data selection to apply toprotected java.lang.String[] getAdvancedProps()
protected java.lang.String[] getAdvancedLabels()
public void changePlace(java.lang.String newPlace)
newPlace
- new placeprotected javax.swing.JComponent addPropComp(java.lang.String propId, javax.swing.JComponent comp)
propId
- The propertycomp
- The gui component that allows the user to set the propertypublic void cyclePlace()
public void setToFullResolution()
public javax.swing.JComponent padLabel(java.lang.String s)
protected int[] getSize(edu.wisc.ssec.mcidas.AreaDirectory ad)
ad
- the area directorypublic java.lang.String getSelectedDescriptor()
protected java.lang.String getDescriptor()
protected java.lang.String getDescriptorFromSelection(java.lang.String selection)
selection
- String name from the widgetprotected java.lang.String getSelectedUnit()
protected java.lang.String getPort()
protected java.lang.String getDefaultPropValue(java.lang.String prop, edu.wisc.ssec.mcidas.AreaDirectory ad, boolean forDisplay)
prop
- The propertyad
- The AreaDirectoryforDisplay
- Is this to display to the user in the guipublic java.lang.String getSelectedBandName()
protected java.lang.String getPropertiesDescription()
protected java.lang.String getUserPropValue(java.lang.String prop, edu.wisc.ssec.mcidas.AreaDirectory ad)
prop
- The propertyad
- The AreaDirectoryprotected void getBottomComponents(java.util.List bottomComps)
bottomComps
- the bottom components