edu.wisc.ssec.mcidasv.data
Class GeoLatLonSelection

java.lang.Object
  extended by ucar.unidata.data.DataSelectionComponent
      extended by edu.wisc.ssec.mcidasv.data.GeoLatLonSelection
All Implemented Interfaces:
Constants, IdvConstants

public class GeoLatLonSelection
extends DataSelectionComponent
implements Constants


Field Summary
private static String[] ADVANCED_LABELS
          This is the list of labels used for the advanced gui
private static String[] ADVANCED_PROPS
          This is the list of properties that are used in the advanced gui
private  boolean amSettingProperties
          flag for setting properties
protected  boolean amUpdating
           
(package private)  double[][] areaEL
           
private  int areaElement
           
private  int areaLine
           
private  AREAnav areaNav
           
protected  double baseERes
           
protected  double baseLRes
           
private  double baseNumElements
          base number of elements
private  double baseNumLines
          base number of lines
private  double bERes
           
private  double bLRes
           
private  int centerEle
           
(package private)  JTextField centerElementFld
          Widget for the element center point in the advanced section
private  JLabel centerElementLbl
          Label used for the element center
private  JLabel centerLatLbl
          Label used for the center latitude
private  int centerLine
           
(package private)  JTextField centerLineFld
          Widget for the line center point in the advanced section
private  JLabel centerLineLbl
          Label used for the line center
private  JLabel centerLonLbl
          Label used for the center longitude
(package private)  JComboBox coordinateTypeComboBox
           
(package private)  String[] coordinateTypes
           
(package private)  DataChoice dataChoice
           
private  DataSourceImpl dataSource
           
private  int defaultElement
           
private  int defaultElementMag
           
private  double defaultLat
           
private  int defaultLine
           
private  int defaultLineMag
           
private  double defaultLon
           
private  int defaultNumEles
           
private  int defaultNumLines
           
private  String defaultPlace
           
private  String defaultType
          the place string
private  double dElementMag
           
(package private)  double[][] displayEL
           
private  double dLineMag
           
(package private)  JTextField eleMagFld
           
private  int elementMag
           
(package private)  JLabel elementMagLbl
          Label for the element mag. in the advanced section
protected  JSlider elementMagSlider
          Widget for the element magnfication in the advanced section
(package private)  JLabel elementResLbl
           
private  JPanel eMagPanel
           
private  double eRes
           
private  JButton fullResBtn
           
private  GeoLocationInfo geoLocInfo
           
protected static Insets GRID_INSETS
          Used by derived classes when they do a GuiUtils.doLayout
protected static int GRID_SPACING
          The spacing used in the grid layout
(package private)  double[][] imageEL
           
private  int imageElement
           
private  int imageLine
           
private  boolean isLineEle
           
private  String kmLbl
           
private static DataSourceImpl lastDataSource
           
private  double latitude
           
(package private)  double[][] latLon
           
private  List latLonLbls
           
private  JPanel latLonPanel
           
private  JPanel latLonReadoutPanel
           
protected  LatLonWidget latLonWidget
          Input for lat/lon center point
private  JPanel lineElementAreaReadoutPanel
           
private  JPanel lineElementImageReadoutPanel
           
private  JPanel lineElementPanel
           
private  List linEleAreaLbls
           
private  List linEleImageLbls
           
private  int lineMag
           
(package private)  JTextField lineMagFld
           
(package private)  JLabel lineMagLbl
          Label for the line mag. in the advanced section
protected  JSlider lineMagSlider
          Widget for the line magnfication in the advanced section
(package private)  JLabel lineResLbl
           
private  double linesToElements
          Keep track of the lines to element ratio
private  JPanel lMagPanel
           
(package private)  JComboBox locationComboBox
           
protected  GuiUtils.CardLayoutPanel locationPanel
          location panel
(package private)  String[] locations
           
private  JToggleButton lockBtn
          _more_
private static org.slf4j.Logger logger
           
private  double longitude
           
private  double lRes
           
private  int maxEles
           
private  int maxLines
           
(package private)  JTextField numElementsFld
          Widget to hold the number of elements in the advanced
private  int numEles
           
private  int numLines
           
(package private)  JTextField numLinesFld
          Widget to hold the number of lines in the advanced
private  String place
           
protected static String PLACE_CENTER
          flag for center
protected static String PLACE_ULEFT
          flag for upper left
private  AreaDirectory previewDir
           
private  int[] previewDirBlk
           
private  int previewEleRes
           
private  int previewLineRes
           
private  AREAnav previewNav
           
protected static String PROP_EMAG
           
protected static String PROP_ERES
          Property for element resolution
protected static String PROP_LATLON
          Property for image default value lat/lon
protected static String PROP_LINEELE
          Property for image default value line/ele
protected static String PROP_LMAG
           
protected static String PROP_LOC
          Property for image default value loc
protected static String PROP_LRES
          Property for line resolution
protected static String PROP_MAG
          Property for image default value mag
protected static String PROP_PERES
           
protected static String PROP_PLACE
          Property for image default value place
protected static String PROP_PLRES
           
protected static String PROP_READOUT
           
protected static String PROP_SIZE
          Property for image default value size
protected static String PROP_TYPE
          Property for image default value unit
private  Hashtable properties
           
private  Hashtable propToComps
          Maps the PROP_ property name to the gui component
(package private)  JLabel rawSizeLbl
           
private  List readoutAreaEleFld
           
private  List readoutAreaLinFld
           
private  List readoutImageEleFld
           
private  List readoutImageLinFld
           
private static String[] readoutLabels
           
private  List readoutLatFld
           
private  List readoutLLWidget
           
private  List readoutLonFld
           
private  GuiUtils.CardLayoutPanel readoutPanel
           
private  boolean resetLatLon
           
(package private)  MapProjection sampleProjection
           
(package private)  JLabel sizeLbl
          size label
private static int SLIDER_HEIGHT
           
private static int SLIDER_MAX
          limit of slider
private static int SLIDER_MIN
           
private static int SLIDER_WIDTH
           
protected static String TYPE_AREA
          area
protected static String TYPE_IMAGE
          image
protected static String TYPE_LATLON
          earth coordinates
private  int uLEle
           
private  int uLLine
           
 
Fields inherited from class ucar.unidata.data.DataSelectionComponent
dataSelection
 
Fields inherited from interface edu.wisc.ssec.mcidasv.Constants
BLANK_COMP_GROUP, COMP_MONITORPANEL, DATASELECTOR_NAME, DEFAULT_DOCPATH, DEFAULT_SERVERSTATE, DISPLAY_NAME, DISPLAYCONTROLLER_NAME, ELEMENT_DOUBLE_WIDTH, ELEMENT_DOUBLEDOUBLE_WIDTH, ELEMENT_HALF_WIDTH, ELEMENT_ONEHALF_WIDTH, ELEMENT_WIDTH, FILTER_MCV, FILTER_MCVMCVZ, FILTER_MCVZ, GAP_RELATED, GAP_UNRELATED, HOMEPAGE_URL, ICON_ACCEPT_SMALL, ICON_ADD_SMALL, ICON_APPLY_SMALL, ICON_BACKGROUND_SMALL, ICON_CANCEL, ICON_CANCEL_SMALL, ICON_CHECKVERSION_SMALL, ICON_COLORTABLE_SMALL, ICON_CONNECT_SMALL, ICON_CONSOLE_SMALL, ICON_DATAEXPLORER_SMALL, ICON_DEFAULTLAYOUT_SMALL, ICON_DEFAULTLAYOUTADD_SMALL, ICON_DEFAULTLAYOUTDELETE_SMALL, ICON_DELETE_SMALL, ICON_DISCONNECT_SMALL, ICON_ERROR_SMALL, ICON_EXCLAMATION_SMALL, ICON_FAVORITE_SMALL, ICON_FAVORITEMANAGE_SMALL, ICON_FAVORITESAVE_SMALL, ICON_FORUMS_SMALL, ICON_GETTINGSTARTED_SMALL, ICON_HELP, ICON_HELP_SMALL, ICON_HELPTIPS_SMALL, ICON_INFORMATION_SMALL, ICON_LAYOUTEDIT_SMALL, ICON_LOCALDATA_SMALL, ICON_LOCATION_SMALL, ICON_MCIDASV_SMALL, ICON_NEWTAB_SMALL, ICON_NEWWINDOW_SMALL, ICON_NEXT_SMALL, ICON_NOTE_SMALL, ICON_OPEN, ICON_OPEN_SMALL, ICON_PREFERENCES_SMALL, ICON_PREVIOUS_SMALL, ICON_RANDOM_SMALL, ICON_RANGEANDBEARING_SMALL, ICON_REDO_SMALL, ICON_REFRESH, ICON_REFRESH_SMALL, ICON_REMOVE_SMALL, ICON_REMOVEDATA_SMALL, ICON_REMOVELAYERS_SMALL, ICON_REMOVELAYERSDATA_SMALL, ICON_SAVE, ICON_SAVE_SMALL, ICON_SAVEAS_SMALL, ICON_SUPPORT_SMALL, ICON_UNDO_SMALL, ICON_UPDATE, ICON_USERSGUIDE_SMALL, LOCAL_ADDE_PORT, MACRO_BUILDDATE, MACRO_COPYRIGHT_YEAR, MACRO_IDV_VERSION, MACRO_VERSION, MACRO_VISAD_VERSION, MAX_MEMORY_32BIT, MCV_BLUE, MCV_BLUE_DARK, NOTICE_URL, OS_OSX, PANEL_NAME, PREF_AUTO_SAVE_DEFAULT_LAYOUT, PREF_CONFIRM_REMOVE_BOTH, PREF_CONFIRM_REMOVE_DATA, PREF_CONFIRM_REMOVE_LAYERS, PREF_IMAGE_PREVIEW, PREF_LIST_ADDE_SERVERS, PREF_LIST_ADVANCED, PREF_LIST_AVAILABLE_DISPLAYS, PREF_LIST_DATA_CHOOSERS, PREF_LIST_FORMATS_DATA, PREF_LIST_GENERAL, PREF_LIST_LOCAL_ADDE, PREF_LIST_NAV_CONTROLS, PREF_LIST_TOOLBAR, PREF_LIST_VIEW, PREF_OPEN_LIMIT_WIN, PREF_PRERELEASE_CHECK, PREF_SAVE_DASHBOARD_VIZ, PREF_SERVERSTATE, PREF_SYSTEMSERVERSIMG, PREF_TBM_SIZE, PREF_VERSION_CHECK, PRERELEASE_URL, PROP_ABOUTTEXT, PROP_APP_ICON, PROP_BUILD_DATE, PROP_CHAN, PROP_COPYRIGHT_YEAR, PROP_DASHBOARD_BOUNDS, PROP_HOMEPAGE, PROP_SERVERS, PROP_SERVERS_ALL, PROP_SYSMEM, PROP_TABBED_UI, PROP_VERSION_MAJOR, PROP_VERSION_MINOR, PROP_VERSION_RELEASE, PROP_VERSIONFILE, PROP_VISAD_DATE, PROP_VISAD_ORIGINAL, PROP_VISAD_PARSE_FAIL, PROP_VISAD_REVISION, PROP_VP_CATOPEN, PROP_VP_SHOWCATS, PROP_VP_SHOWPOPUP, PROPERTIES_FILE, SCRUB_STRINGS_FILE, SUFFIX_MCV, SUFFIX_MCVZ, USER_DIRECTORY_NAME, VERSION_HANDLER_URL, VERSION_URL
 
Fields inherited from interface ucar.unidata.idv.IdvConstants
ARG_B64BUNDLE, ARG_B64ISL, ARG_BUNDLE, ARG_CATALOG, ARG_CHOOSER, ARG_CLEARDEFAULT, ARG_CODE, ARG_CONNECT, ARG_CURRENTTIME, ARG_DATA, ARG_DEBUG, ARG_DEFAULT, ARG_DISPLAY, ARG_DXML, ARG_FIXEDTIME, ARG_HELP, ARG_IMAGE, ARG_IMAGESERVER, ARG_INSTALLPLUGIN, ARG_ISLFILE, ARG_ISLINTERACTIVE, ARG_LISTRESOURCES, ARG_MAINCLASS, ARG_MOVIE, ARG_MSG_DEBUG, ARG_MSG_RECORD, ARG_NODEFAULT, ARG_NOERRORSINGUI, ARG_NOGUI, ARG_NOONEINSTANCE, ARG_NOPLUGINS, ARG_NOPREF, ARG_ONEINSTANCEPORT, ARG_PLUGIN, ARG_PORT, ARG_PRINTJNLP, ARG_PROPERTIES, ARG_SCRIPT, ARG_SERVER, ARG_SETFILES, ARG_SITEPATH, ARG_TEMPLATE, ARG_TEST, ARG_TESTEVAL, ARG_TRACE, ARG_TRACEONLY, ARG_USERPATH, DEFAULT_DATE_FORMAT, DEFAULT_MAX_PERMGENSIZE, DEFAULT_TIMEZONE, FILTER_CPT, FILTER_ISL, FILTER_JNLP, FILTER_XIDV, FILTER_XIDVZIDV, FILTER_XML, FILTER_ZIDV, ID_COMMANDSTORUN, ID_DATASOURCES, ID_DISPLAYCONTROLS, ID_IDV, ID_JYTHON, ID_MESSAGE, ID_MISCHASHTABLE, ID_NCIDV_VERSION, ID_VERSION, ID_VIEWMANAGERS, ID_WINDOWS, INITIAL_PROBE_EARTHLOCATION, NULL_DATA_SELECTION, NULL_STRING, PREF_ARCHIVEDIR, PREF_ARCHIVENAME, PREF_AUTODISPLAYS_ENABLE, PREF_AUTODISPLAYS_SHOWGUI, PREF_AUTOSELECTDATA, PREF_CACHESIZE, PREF_CONTROLSINTABS, PREF_DATAPREFIX, PREF_DATE_FORMAT, PREF_DISTANCEUNIT, PREF_DOCACHE, PREF_EMBEDDATACHOOSERINDASHBOARD, PREF_EMBEDFIELDSELECTORINDASHBOARD, PREF_EMBEDLEGENDINDASHBOARD, PREF_EMBEDQUICKLINKSINDASHBOARD, PREF_EVENT_KEYBOARDMAP, PREF_EVENT_MOUSEMAP, PREF_EVENT_WHEELMAP, PREF_FAST_RENDER, PREF_FIELD_CACHETHRESHOLD, PREF_FILEREADDIR, PREF_FILEWRITEDIR, PREF_GEOMETRY_BY_REF, PREF_HISTORY, PREF_IMAGE_BY_REF, PREF_LARGE_REMOTE_DATA_WARN, PREF_LASTVERSION, PREF_LATLON_FORMAT, PREF_LEGEND_SHOWICONS, PREF_LOCALE, PREF_LOOKANDFEEL, PREF_MAX_PERMGENSIZE, PREF_MAXIMAGESIZE, PREF_MEMORY, PREF_NPOT_IMAGE, PREF_OPEN_ASK, PREF_OPEN_MERGE, PREF_OPEN_REMOVE, PREF_PROJ_LIST, PREF_SAMPLINGMODE, PREF_SHOWCONTROLWINDOW, PREF_SHOWDASHBOARD, PREF_SHOWDECODEDIALOG, PREF_SHOWHIDDENFILES, PREF_SHOWQUITCONFIRM, PREF_SITEPATH, PREF_THREADS_DATA, PREF_THREADS_RENDER, PREF_TIMEZONE, PREF_VERTICALCS, PREF_VERTICALUNIT, PREF_WINDOW_SHOWTOOLBAR, PREF_ZIDV_ASK, PREF_ZIDV_DIRECTORY, PREF_ZIDV_SAVETOTMP, PROP_3DMODE, PROP_APPRESOURCEPATH, PROP_CHOOSERS, PROP_CHOOSERS_ALL, PROP_CONTROLDESCRIPTORS, PROP_CONTROLDESCRIPTORS_ALL, PROP_DATAHOLDERBOUNDS, PROP_DEFAULTLOCATIONS, PROP_DISPLAYLIST_GROUP, PROP_FIXFILELOCKUP, PROP_JNLPCODEBASE, PROP_JNLPTEMPLATE, PROP_JNLPTITLE, PROP_LOADINGXML, PROP_MAP_GLOBE_LEVEL, PROP_MAP_MAP_LEVEL, PROP_MINIMUMFRAMECYCLETIME, PROP_MONITORPORT, PROP_OLDCONTROLDESCRIPTORS, PROP_ONEINSTANCEPORT, PROP_PREFERENCES, PROP_PROJ_NAME, PROP_RESOURCEFILES, PROP_SHOWCLOCK, PROP_SHOWDASHBOARD, PROP_SHOWDATATREE, PROP_SHOWFORMULAS, PROP_SHOWSPLASH, PROP_SPLASHICON, PROP_UI_DESKTOP, PROP_USE_TIMEDRIVER, PROP_WINDOW_SCREENSIZEOFFSET, PROP_WINDOW_SIZEHEIGHT, PROP_WINDOW_SIZEWIDTH, PROP_WINDOW_USESCREENSIZE, SUFFIX_BAT, SUFFIX_CPT, SUFFIX_ISL, SUFFIX_JNLP, SUFFIX_RBI, SUFFIX_SH, SUFFIX_XIDV, SUFFIX_XML, SUFFIX_ZIDV
 
Constructor Summary
GeoLatLonSelection(DataSourceImpl dataSource, DataChoice dataChoice, Hashtable initProps, MapProjection sample, AreaDirectory dir, AREAnav nav)
           
 
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)
           
private  double[][] areaCoordToDisplayCoord(double[][] area)
           
private  void changeEleMagSlider(boolean autoSetSize)
           
private  void changeLineMagSlider(boolean autoSetSize)
           
protected  double[][] convertToDisplayCoords()
           
protected  void convertToLatLon()
           
protected  void convertToLatLon(int ele, int lin)
           
protected  void convertToLineEle()
           
protected  void convertToLinEle()
           
 void cyclePlace()
          Cycle the place
private  double[][] displayCoordToAreaCoord(double[][] disp)
           
protected  JComponent doMakeContents()
           
protected  void elementMagSliderChanged(boolean recomputeLineEleRatio)
           
protected  void flipLocationPanel(int locPanel)
          Change coordinate type panel
protected  void flipReadoutPanel(int roPanel)
          Change readout type panel
private  String formatDoubleCoord(int cols, double val)
           
private  String formatIntegerCoord(int cols, double val)
           
protected  String[] getAdvancedLabels()
          Get the list of advanced property labels
protected  String[] getAdvancedProps()
          Get the list of advanced property names
protected  double[][] getAreaPoints()
           
protected  double getBaseERes()
           
protected  double getBaseLRes()
           
 double getBERes()
           
 double getBLRes()
           
 String getCoordinateType()
           
 DataChoice getDataChoice()
           
 double getDElementMag()
           
protected  double[][] getDisplayELPoints()
           
 double getDLineMag()
           
 int getElement()
           
 int getElementMag()
           
protected  int getElementMagValue()
          Get the value of the element magnification slider.
 double getERes()
           
 GeoLocationInfo getGeoLocationInfo()
           
protected  GeoLocationInfo getGeoLocationInfo(int lin, int ele)
           
protected  double[][] getImagePoints()
           
 boolean getIsLineEle()
           
 double getLatitude()
           
protected  double[][] getLatLonPoints()
           
 String getLatLonType()
           
 int getLine()
           
private  double[][] getLineElement()
           
 int getLineMag()
           
protected  int getLineMagValue()
          Get the value of the line magnification slider.
 boolean getLockOn()
           
 double getLongitude()
           
 double getLRes()
           
private  int getMagValue(JSlider slider)
          Get the value of the given magnification slider.
 int getNumEles()
           
 int getNumLines()
           
 String getPlace()
           
 int getPreviewEleRes()
           
 int getPreviewLineRes()
           
 boolean getShowInControlProperties()
           
protected  void lineMagSliderChanged(boolean autoSetSize)
          Handle the line mag slider changed event
private  GeoLocationInfo makeGeoLocationInfo(int lin, int ele, int nlins, int neles, int linMag, int eleMag)
           
private  JMenuItem makeLocationMenuItem(ucar.unidata.geoloc.LatLonPoint llp, String name)
          _more_
protected  void setBaseNumElements(int val)
           
protected  void setBaseNumLines(int val)
           
 void setBERes(double val)
           
 void setBLRes(double val)
           
protected  void setCenterCoords(int x, int y)
           
protected  void setCoordinateType(String type)
           
 void setDataChoice(DataChoice choice)
           
 void setDElementMag(double val)
           
 void setDLineMag(double val)
           
 void setElement(int val)
           
private  void setElementMag()
           
 void setElementMag(int val)
           
private  void setElementMagSlider(int val)
           
 void setERes(double val)
           
 void setIsLineEle(boolean val)
           
private  void setLatitude()
           
 void setLatitude(double val)
           
 void setLine(int val)
           
protected  void setLineElement()
           
private  void setLineMag()
           
 void setLineMag(int val)
           
private  void setLineMagSlider(int val)
           
protected  void setLockOn(boolean val)
           
private  void setLongitude()
           
 void setLongitude(double val)
           
 void setLRes(double val)
           
private  void setNumberOfElements(int val)
           
private  void setNumberOfLines(int val)
           
 void setNumEles(int val)
           
 void setNumLines(int val)
           
 void setPlace(String str)
           
 void setPreviewEleRes(int val)
           
 void setPreviewLineRes(int val)
           
 void setToFullResolution()
          Set to full resolution
protected  void setULCoords(double x, double y)
           
protected  String translatePlace(String thisPlace)
          Translate a place name into a human readable form
private  String truncateNumericString(String str, int numDec)
           
 void update(AreaDirectory dir, MapProjection sample, AREAnav nav, String coordType, double[] coords)
           
private  void updateReadout()
           
 
Methods inherited from class ucar.unidata.data.DataSelectionComponent
getContents, getContents, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final org.slf4j.Logger logger

geoLocInfo

private GeoLocationInfo geoLocInfo

GRID_SPACING

protected static final int GRID_SPACING
The spacing used in the grid layout

See Also:
Constant Field Values

GRID_INSETS

protected static final Insets GRID_INSETS
Used by derived classes when they do a GuiUtils.doLayout


dataChoice

DataChoice dataChoice

sampleProjection

MapProjection sampleProjection

TYPE_LATLON

protected static final String TYPE_LATLON
earth coordinates

See Also:
Constant Field Values

TYPE_IMAGE

protected static final String TYPE_IMAGE
image

See Also:
Constant Field Values

TYPE_AREA

protected static final String TYPE_AREA
area

See Also:
Constant Field Values

PLACE_CENTER

protected static final String PLACE_CENTER
flag for center

See Also:
Constant Field Values

PLACE_ULEFT

protected static final String PLACE_ULEFT
flag for upper left

See Also:
Constant Field Values

PROP_LATLON

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

See Also:
Constant Field Values

PROP_LINEELE

protected static final String PROP_LINEELE
Property for image default value line/ele

See Also:
Constant Field Values

PROP_LOC

protected static final String PROP_LOC
Property for image default value loc

See Also:
Constant Field Values

PROP_MAG

protected static final String PROP_MAG
Property for image default value mag

See Also:
Constant Field Values

PROP_LMAG

protected static final String PROP_LMAG
See Also:
Constant Field Values

PROP_EMAG

protected static final String PROP_EMAG
See Also:
Constant Field Values

PROP_PLACE

protected static final String PROP_PLACE
Property for image default value place

See Also:
Constant Field Values

PROP_SIZE

protected static final String PROP_SIZE
Property for image default value size

See Also:
Constant Field Values

PROP_TYPE

protected static final String PROP_TYPE
Property for image default value unit

See Also:
Constant Field Values

PROP_LRES

protected static final String PROP_LRES
Property for line resolution

See Also:
Constant Field Values

PROP_PLRES

protected static final String PROP_PLRES
See Also:
Constant Field Values

PROP_ERES

protected static final String PROP_ERES
Property for element resolution

See Also:
Constant Field Values

PROP_PERES

protected static final String PROP_PERES
See Also:
Constant Field Values

PROP_READOUT

protected static final String PROP_READOUT
See Also:
Constant Field Values

ADVANCED_PROPS

private static final String[] ADVANCED_PROPS
This is the list of properties that are used in the advanced gui


ADVANCED_LABELS

private static final String[] ADVANCED_LABELS
This is the list of labels used for the advanced gui


readoutLabels

private static final String[] readoutLabels

kmLbl

private String kmLbl

latLonWidget

protected LatLonWidget latLonWidget
Input for lat/lon center point


numElementsFld

JTextField numElementsFld
Widget to hold the number of elements in the advanced


numLinesFld

JTextField numLinesFld
Widget to hold the number of lines in the advanced


centerLineFld

JTextField centerLineFld
Widget for the line center point in the advanced section


centerElementFld

JTextField centerElementFld
Widget for the element center point in the advanced section


lineMagFld

JTextField lineMagFld

eleMagFld

JTextField eleMagFld

centerLineLbl

private JLabel centerLineLbl
Label used for the line center


centerElementLbl

private JLabel centerElementLbl
Label used for the element center


centerLatLbl

private JLabel centerLatLbl
Label used for the center latitude


centerLonLbl

private JLabel centerLonLbl
Label used for the center longitude


lockBtn

private JToggleButton lockBtn
_more_


fullResBtn

private JButton fullResBtn

lMagPanel

private JPanel lMagPanel

eMagPanel

private JPanel eMagPanel

lineMagSlider

protected JSlider lineMagSlider
Widget for the line magnfication in the advanced section


lineMagLbl

JLabel lineMagLbl
Label for the line mag. in the advanced section


lineResLbl

JLabel lineResLbl

rawSizeLbl

JLabel rawSizeLbl

elementMagSlider

protected JSlider elementMagSlider
Widget for the element magnfication in the advanced section


elementMagLbl

JLabel elementMagLbl
Label for the element mag. in the advanced section


elementResLbl

JLabel elementResLbl

locationPanel

protected GuiUtils.CardLayoutPanel locationPanel
location panel


amSettingProperties

private boolean amSettingProperties
flag for setting properties


coordinateTypeComboBox

JComboBox coordinateTypeComboBox

locationComboBox

JComboBox locationComboBox

coordinateTypes

String[] coordinateTypes

locations

String[] locations

defaultType

private String defaultType
the place string


place

private String place

defaultPlace

private String defaultPlace

defaultNumLines

private int defaultNumLines

defaultNumEles

private int defaultNumEles

numLines

private int numLines

numEles

private int numEles

latitude

private double latitude

defaultLat

private double defaultLat

longitude

private double longitude

defaultLon

private double defaultLon

resetLatLon

private boolean resetLatLon

imageLine

private int imageLine

areaLine

private int areaLine

defaultLine

private int defaultLine

imageElement

private int imageElement

areaElement

private int areaElement

defaultElement

private int defaultElement

lineMag

private int lineMag

dLineMag

private double dLineMag

defaultLineMag

private int defaultLineMag

elementMag

private int elementMag

dElementMag

private double dElementMag

defaultElementMag

private int defaultElementMag

isLineEle

private boolean isLineEle

lRes

private double lRes

baseLRes

protected double baseLRes

eRes

private double eRes

baseERes

protected double baseERes

properties

private Hashtable properties

uLLine

private int uLLine

uLEle

private int uLEle

centerLine

private int centerLine

centerEle

private int centerEle

amUpdating

protected boolean amUpdating

propToComps

private Hashtable propToComps
Maps the PROP_ property name to the gui component


sizeLbl

JLabel sizeLbl
size label


baseNumLines

private double baseNumLines
base number of lines


baseNumElements

private double baseNumElements
base number of elements


dataSource

private DataSourceImpl dataSource

lastDataSource

private static DataSourceImpl lastDataSource

previewDir

private AreaDirectory previewDir

previewNav

private AREAnav previewNav

areaNav

private AREAnav areaNav

latLonLbls

private List latLonLbls

linEleImageLbls

private List linEleImageLbls

linEleAreaLbls

private List linEleAreaLbls

latLonPanel

private JPanel latLonPanel

lineElementPanel

private JPanel lineElementPanel

SLIDER_MAX

private static final int SLIDER_MAX
limit of slider

See Also:
Constant Field Values

SLIDER_MIN

private static final int SLIDER_MIN
See Also:
Constant Field Values

SLIDER_WIDTH

private static final int SLIDER_WIDTH
See Also:
Constant Field Values

SLIDER_HEIGHT

private static final int SLIDER_HEIGHT
See Also:
Constant Field Values

linesToElements

private double linesToElements
Keep track of the lines to element ratio


imageEL

double[][] imageEL

areaEL

double[][] areaEL

displayEL

double[][] displayEL

latLon

double[][] latLon

previewDirBlk

private int[] previewDirBlk

previewLineRes

private int previewLineRes

previewEleRes

private int previewEleRes

maxLines

private int maxLines

maxEles

private int maxEles

bLRes

private double bLRes

bERes

private double bERes

readoutLLWidget

private List readoutLLWidget

readoutLatFld

private List readoutLatFld

readoutLonFld

private List readoutLonFld

latLonReadoutPanel

private JPanel latLonReadoutPanel

readoutImageLinFld

private List readoutImageLinFld

readoutImageEleFld

private List readoutImageEleFld

lineElementImageReadoutPanel

private JPanel lineElementImageReadoutPanel

readoutAreaLinFld

private List readoutAreaLinFld

readoutAreaEleFld

private List readoutAreaEleFld

lineElementAreaReadoutPanel

private JPanel lineElementAreaReadoutPanel

readoutPanel

private GuiUtils.CardLayoutPanel readoutPanel
Constructor Detail

GeoLatLonSelection

public GeoLatLonSelection(DataSourceImpl dataSource,
                          DataChoice dataChoice,
                          Hashtable initProps,
                          MapProjection sample,
                          AreaDirectory dir,
                          AREAnav nav)
                   throws VisADException,
                          RemoteException
Throws:
VisADException
RemoteException
Method Detail

doMakeContents

protected JComponent doMakeContents()
Specified by:
doMakeContents in class DataSelectionComponent

updateReadout

private void updateReadout()

formatIntegerCoord

private String formatIntegerCoord(int cols,
                                  double val)

formatDoubleCoord

private String formatDoubleCoord(int cols,
                                 double val)

flipLocationPanel

protected void flipLocationPanel(int locPanel)
Change coordinate type panel


flipReadoutPanel

protected void flipReadoutPanel(int roPanel)
Change readout type panel


setToFullResolution

public void setToFullResolution()
Set to full resolution


applyToDataSelection

public void applyToDataSelection(DataSelection dataSelection)
Specified by:
applyToDataSelection in class DataSelectionComponent

getShowInControlProperties

public boolean getShowInControlProperties()
Overrides:
getShowInControlProperties in class DataSelectionComponent

getGeoLocationInfo

public GeoLocationInfo getGeoLocationInfo()

getGeoLocationInfo

protected GeoLocationInfo getGeoLocationInfo(int lin,
                                             int ele)

makeGeoLocationInfo

private GeoLocationInfo makeGeoLocationInfo(int lin,
                                            int ele,
                                            int nlins,
                                            int neles,
                                            int linMag,
                                            int eleMag)

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

cyclePlace

public void cyclePlace()
Cycle the 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

translatePlace

protected String translatePlace(String thisPlace)
Translate a place name into a human readable form

Parameters:
place - raw name
Returns:
human readable name

setNumberOfLines

private void setNumberOfLines(int val)

setNumberOfElements

private void setNumberOfElements(int val)

getPlace

public String getPlace()

setPlace

public void setPlace(String str)

getNumLines

public int getNumLines()

setNumLines

public void setNumLines(int val)

getNumEles

public int getNumEles()

setNumEles

public void setNumEles(int val)

getLine

public int getLine()

setLineElement

protected void setLineElement()

setLine

public void setLine(int val)

getElement

public int getElement()

getLineElement

private double[][] getLineElement()

setElement

public void setElement(int val)

getLineMag

public int getLineMag()

setElementMag

private void setElementMag()

setLineMag

public void setLineMag(int val)

setLineMagSlider

private void setLineMagSlider(int val)

getElementMag

public int getElementMag()

setLineMag

private void setLineMag()

setDLineMag

public void setDLineMag(double val)

getDLineMag

public double getDLineMag()

setDElementMag

public void setDElementMag(double val)

setElementMagSlider

private void setElementMagSlider(int val)

getDElementMag

public double getDElementMag()

setElementMag

public void setElementMag(int val)

getLatitude

public double getLatitude()

setLatitude

private void setLatitude()

setLatitude

public void setLatitude(double val)

setLongitude

private void setLongitude()

getLongitude

public double getLongitude()

setLongitude

public void setLongitude(double val)

convertToLineEle

protected void convertToLineEle()

convertToLatLon

protected void convertToLatLon()

convertToLatLon

protected void convertToLatLon(int ele,
                               int lin)

convertToDisplayCoords

protected double[][] convertToDisplayCoords()

displayCoordToAreaCoord

private double[][] displayCoordToAreaCoord(double[][] disp)

areaCoordToDisplayCoord

private double[][] areaCoordToDisplayCoord(double[][] area)

convertToLinEle

protected void convertToLinEle()

getCoordinateType

public String getCoordinateType()

setCoordinateType

protected void setCoordinateType(String type)

setLockOn

protected void setLockOn(boolean val)

getLockOn

public boolean getLockOn()

setULCoords

protected void setULCoords(double x,
                           double y)

setCenterCoords

protected void setCenterCoords(int x,
                               int y)

elementMagSliderChanged

protected void elementMagSliderChanged(boolean recomputeLineEleRatio)

changeLineMagSlider

private void changeLineMagSlider(boolean autoSetSize)

changeEleMagSlider

private void changeEleMagSlider(boolean autoSetSize)

lineMagSliderChanged

protected void lineMagSliderChanged(boolean autoSetSize)
Handle the line mag slider changed event

Parameters:
evt - the event

getLineMagValue

protected int getLineMagValue()
Get the value of the line magnification slider.

Returns:
The magnification value for the line

getElementMagValue

protected int getElementMagValue()
Get the value of the element magnification slider.

Returns:
The magnification value for the element

getMagValue

private int getMagValue(JSlider slider)
Get the value of the given magnification slider.

Parameters:
slider - The slider to get the value from
Returns:
The magnification value

makeLocationMenuItem

private JMenuItem makeLocationMenuItem(ucar.unidata.geoloc.LatLonPoint llp,
                                       String name)
_more_

Parameters:
el - _more_
name - _more_
listener - _more_
Returns:
_more_

getIsLineEle

public boolean getIsLineEle()

setIsLineEle

public void setIsLineEle(boolean val)

getLRes

public double getLRes()

setLRes

public void setLRes(double val)

setBLRes

public void setBLRes(double val)

setBERes

public void setBERes(double val)

getBLRes

public double getBLRes()

getBERes

public double getBERes()

getERes

public double getERes()

setERes

public void setERes(double val)

getPreviewLineRes

public int getPreviewLineRes()

setPreviewLineRes

public void setPreviewLineRes(int val)

getPreviewEleRes

public int getPreviewEleRes()

setPreviewEleRes

public void setPreviewEleRes(int val)

truncateNumericString

private String truncateNumericString(String str,
                                     int numDec)

getLatLonType

public String getLatLonType()

getLatLonPoints

protected double[][] getLatLonPoints()

getImagePoints

protected double[][] getImagePoints()

getAreaPoints

protected double[][] getAreaPoints()

getDisplayELPoints

protected double[][] getDisplayELPoints()

getBaseLRes

protected double getBaseLRes()

getBaseERes

protected double getBaseERes()

setBaseNumLines

protected void setBaseNumLines(int val)

setDataChoice

public void setDataChoice(DataChoice choice)

getDataChoice

public DataChoice getDataChoice()

setBaseNumElements

protected void setBaseNumElements(int val)

update

public void update(AreaDirectory dir,
                   MapProjection sample,
                   AREAnav nav,
                   String coordType,
                   double[] coords)