|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.unidata.data.DataSelectionComponent
edu.wisc.ssec.mcidasv.data.GeoLatLonSelection
public class GeoLatLonSelection
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 |
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 |
---|
private static final org.slf4j.Logger logger
private GeoLocationInfo geoLocInfo
protected static final int GRID_SPACING
protected static final Insets GRID_INSETS
DataChoice dataChoice
MapProjection sampleProjection
protected static final String TYPE_LATLON
protected static final String TYPE_IMAGE
protected static final String TYPE_AREA
protected static final String PLACE_CENTER
protected static final String PLACE_ULEFT
protected static final String PROP_LATLON
protected static final String PROP_LINEELE
protected static final String PROP_LOC
protected static final String PROP_MAG
protected static final String PROP_LMAG
protected static final String PROP_EMAG
protected static final String PROP_PLACE
protected static final String PROP_SIZE
protected static final String PROP_TYPE
protected static final String PROP_LRES
protected static final String PROP_PLRES
protected static final String PROP_ERES
protected static final String PROP_PERES
protected static final String PROP_READOUT
private static final String[] ADVANCED_PROPS
private static final String[] ADVANCED_LABELS
private static final String[] readoutLabels
private String kmLbl
protected LatLonWidget latLonWidget
JTextField numElementsFld
JTextField numLinesFld
JTextField centerLineFld
JTextField centerElementFld
JTextField lineMagFld
JTextField eleMagFld
private JLabel centerLineLbl
private JLabel centerElementLbl
private JLabel centerLatLbl
private JLabel centerLonLbl
private JToggleButton lockBtn
private JButton fullResBtn
private JPanel lMagPanel
private JPanel eMagPanel
protected JSlider lineMagSlider
JLabel lineMagLbl
JLabel lineResLbl
JLabel rawSizeLbl
protected JSlider elementMagSlider
JLabel elementMagLbl
JLabel elementResLbl
protected GuiUtils.CardLayoutPanel locationPanel
private boolean amSettingProperties
JComboBox coordinateTypeComboBox
JComboBox locationComboBox
String[] coordinateTypes
String[] locations
private String defaultType
private String place
private String defaultPlace
private int defaultNumLines
private int defaultNumEles
private int numLines
private int numEles
private double latitude
private double defaultLat
private double longitude
private double defaultLon
private boolean resetLatLon
private int imageLine
private int areaLine
private int defaultLine
private int imageElement
private int areaElement
private int defaultElement
private int lineMag
private double dLineMag
private int defaultLineMag
private int elementMag
private double dElementMag
private int defaultElementMag
private boolean isLineEle
private double lRes
protected double baseLRes
private double eRes
protected double baseERes
private Hashtable properties
private int uLLine
private int uLEle
private int centerLine
private int centerEle
protected boolean amUpdating
private Hashtable propToComps
JLabel sizeLbl
private double baseNumLines
private double baseNumElements
private DataSourceImpl dataSource
private static DataSourceImpl lastDataSource
private AreaDirectory previewDir
private AREAnav previewNav
private AREAnav areaNav
private List latLonLbls
private List linEleImageLbls
private List linEleAreaLbls
private JPanel latLonPanel
private JPanel lineElementPanel
private static final int SLIDER_MAX
private static final int SLIDER_MIN
private static final int SLIDER_WIDTH
private static final int SLIDER_HEIGHT
private double linesToElements
double[][] imageEL
double[][] areaEL
double[][] displayEL
double[][] latLon
private int[] previewDirBlk
private int previewLineRes
private int previewEleRes
private int maxLines
private int maxEles
private double bLRes
private double bERes
private List readoutLLWidget
private List readoutLatFld
private List readoutLonFld
private JPanel latLonReadoutPanel
private List readoutImageLinFld
private List readoutImageEleFld
private JPanel lineElementImageReadoutPanel
private List readoutAreaLinFld
private List readoutAreaEleFld
private JPanel lineElementAreaReadoutPanel
private GuiUtils.CardLayoutPanel readoutPanel
Constructor Detail |
---|
public GeoLatLonSelection(DataSourceImpl dataSource, DataChoice dataChoice, Hashtable initProps, MapProjection sample, AreaDirectory dir, AREAnav nav) throws VisADException, RemoteException
VisADException
RemoteException
Method Detail |
---|
protected JComponent doMakeContents()
doMakeContents
in class DataSelectionComponent
private void updateReadout()
private String formatIntegerCoord(int cols, double val)
private String formatDoubleCoord(int cols, double val)
protected void flipLocationPanel(int locPanel)
protected void flipReadoutPanel(int roPanel)
public void setToFullResolution()
public void applyToDataSelection(DataSelection dataSelection)
applyToDataSelection
in class DataSelectionComponent
public boolean getShowInControlProperties()
getShowInControlProperties
in class DataSelectionComponent
public GeoLocationInfo getGeoLocationInfo()
protected GeoLocationInfo getGeoLocationInfo(int lin, int ele)
private GeoLocationInfo makeGeoLocationInfo(int lin, int ele, int nlins, int neles, int linMag, int eleMag)
protected String[] getAdvancedProps()
protected String[] getAdvancedLabels()
public void cyclePlace()
protected JComponent addPropComp(String propId, JComponent comp)
propId
- The propertycomp
- The gui component that allows the user to set the property
protected String translatePlace(String thisPlace)
place
- raw name
private void setNumberOfLines(int val)
private void setNumberOfElements(int val)
public String getPlace()
public void setPlace(String str)
public int getNumLines()
public void setNumLines(int val)
public int getNumEles()
public void setNumEles(int val)
public int getLine()
protected void setLineElement()
public void setLine(int val)
public int getElement()
private double[][] getLineElement()
public void setElement(int val)
public int getLineMag()
private void setElementMag()
public void setLineMag(int val)
private void setLineMagSlider(int val)
public int getElementMag()
private void setLineMag()
public void setDLineMag(double val)
public double getDLineMag()
public void setDElementMag(double val)
private void setElementMagSlider(int val)
public double getDElementMag()
public void setElementMag(int val)
public double getLatitude()
private void setLatitude()
public void setLatitude(double val)
private void setLongitude()
public double getLongitude()
public void setLongitude(double val)
protected void convertToLineEle()
protected void convertToLatLon()
protected void convertToLatLon(int ele, int lin)
protected double[][] convertToDisplayCoords()
private double[][] displayCoordToAreaCoord(double[][] disp)
private double[][] areaCoordToDisplayCoord(double[][] area)
protected void convertToLinEle()
public String getCoordinateType()
protected void setCoordinateType(String type)
protected void setLockOn(boolean val)
public boolean getLockOn()
protected void setULCoords(double x, double y)
protected void setCenterCoords(int x, int y)
protected void elementMagSliderChanged(boolean recomputeLineEleRatio)
private void changeLineMagSlider(boolean autoSetSize)
private void changeEleMagSlider(boolean autoSetSize)
protected void lineMagSliderChanged(boolean autoSetSize)
evt
- the eventprotected int getLineMagValue()
protected int getElementMagValue()
private int getMagValue(JSlider slider)
slider
- The slider to get the value from
private JMenuItem makeLocationMenuItem(ucar.unidata.geoloc.LatLonPoint llp, String name)
el
- _more_name
- _more_listener
- _more_
public boolean getIsLineEle()
public void setIsLineEle(boolean val)
public double getLRes()
public void setLRes(double val)
public void setBLRes(double val)
public void setBERes(double val)
public double getBLRes()
public double getBERes()
public double getERes()
public void setERes(double val)
public int getPreviewLineRes()
public void setPreviewLineRes(int val)
public int getPreviewEleRes()
public void setPreviewEleRes(int val)
private String truncateNumericString(String str, int numDec)
public String getLatLonType()
protected double[][] getLatLonPoints()
protected double[][] getImagePoints()
protected double[][] getAreaPoints()
protected double[][] getDisplayELPoints()
protected double getBaseLRes()
protected double getBaseERes()
protected void setBaseNumLines(int val)
public void setDataChoice(DataChoice choice)
public DataChoice getDataChoice()
protected void setBaseNumElements(int val)
public void update(AreaDirectory dir, MapProjection sample, AREAnav nav, String coordType, double[] coords)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |