|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel edu.wisc.ssec.mcidas.adde.GetAreaGUI
public class GetAreaGUI
A GUI wrapper for whatever class/method tries to get image data via ADDE, but needs a way to let the user explore the availability of data. Possible defaults are written into the GetAreaGUI.properties file, and when the user indicates "use my defaults", these are employed when ever the correct combo of server/group/descr are chosen.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
GetAreaGUI(Frame owner,
boolean modal,
String s,
boolean multi,
boolean coa)
|
|
GetAreaGUI(Frame owner,
boolean modal,
String s,
boolean multi,
boolean coa,
boolean dodialog)
|
|
GetAreaGUI(String s)
|
|
GetAreaGUI(String s,
boolean multi)
|
|
GetAreaGUI(String s,
boolean multi,
boolean coa)
|
|
GetAreaGUI(String s,
boolean multi,
boolean coa,
boolean modal)
|
Method Summary | |
---|---|
void |
addActionListener(ActionListener o)
|
String |
getBand()
fetch the current band number |
String |
getCal()
fetch the current Calibration type |
String |
getCoordType()
fetch the current coordinate type |
String |
getDay()
return the day of the selected image |
String |
getDay(int index)
|
String |
getDescr()
fetch the name (abreviation) of the currently selected dataset (descr) |
String |
getDoc()
fetch the state of the doc request switch |
int |
getEleMag()
get the Element magnification |
String |
getGroup()
fetch the name of the currently selected ADDE group |
List |
getImageList()
|
int |
getLinMag()
fetch the current line magnification factor |
String |
getLocationString()
fetch the current locatoin string |
String |
getMag()
get the magnification factors (line element) |
String |
getNumLinesEles()
fetch the number of lines and elements defined |
String |
getProjectNumber()
fetch the currently defined project number |
String |
getServer()
fetch the name of the currently selected ADDE server |
String |
getTime()
get the time of the selected image |
String |
getTime(int index)
get the time of the index-th selected image |
String |
getUnit()
fetch the name of the units defined |
String |
getUserName()
fetch the currently defined user name |
static void |
main(String[] args)
|
void |
removeActionListener(ActionListener o)
|
void |
setBand(String c)
define the satellite band number to use |
void |
setCal(String c)
define the calibration type to use (e.g., "VISSR") |
void |
setCoordType(String c)
define the coodinate type for the centered location values |
void |
setDateTime(String d,
String t)
|
void |
setDay(String d)
set the day |
void |
setDescr(String s)
force the selection of a particular ADDE Descr (dataset). |
void |
setDoc(String v)
define whether the "documentation block" will be returned with the data. |
void |
setEleMag(int m)
set the element magnification factor. |
void |
setGroup(String s)
force a particular ADDE Group to be selected. |
void |
setLineMag(int m)
define the value of the line maginfication (-50 thru +50). |
void |
setLocationString(String c)
define the location(s) for the coodinate type. |
void |
setMag(String m)
set the maginification (line element) factors |
void |
setNumLinesEles(String c)
define the size of the image to get |
void |
setProjectNumber(String c)
define a project number, which is required by some ADDE servers |
void |
setServer(String s)
define the name of the ADDE server to select |
void |
setTime(String t)
set the time |
void |
setUnit(String c)
define the units of the data to get |
void |
setUserName(String c)
define a user name (required by some ADDE servers for accounting). |
void |
show()
|
void |
status(String m)
|
String |
toString()
|
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GetAreaGUI(String s)
s
- is the label for the action buttonpublic GetAreaGUI(String s, boolean multi)
s
- is the label for the action buttonmulti
- is true if multiple selection mode is to be used
(this does not work yet!!)public GetAreaGUI(String s, boolean multi, boolean coa)
s
- is the label for the action buttonmulti
- is true if multiple selection mode is to be used
(this does not work yet!!)coa
- is true if the Dialog should close the window after
the actionPerformed is done.public GetAreaGUI(String s, boolean multi, boolean coa, boolean modal)
s
- is the label for the action buttonmulti
- is true if multiple selection mode is to be used
(this does not work yet!!)coa
- is true if the Dialog should close the window after
the actionPerformed is done.modal
- is true if this should be a modal dialogpublic GetAreaGUI(Frame owner, boolean modal, String s, boolean multi, boolean coa)
owner
- is the top-level Frame that owns thismodal
- is true if this should be a modal dialogs
- is the label for the action buttonmulti
- is true if multiple selection mode is to be used
(this does not work yet!!)coa
- is true if the Dialog should close the window after
the actionPerformed is done.public GetAreaGUI(Frame owner, boolean modal, String s, boolean multi, boolean coa, boolean dodialog)
owner
- is the top-level Frame that owns thismodal
- is true if this should be a modal dialogs
- is the label for the action buttonmulti
- is true if multiple selection mode is to be used
(this does not work yet!!)coa
- is true if the Dialog should close the window after
the actionPerformed is done.dodialog
- is true if this should pop up a Dialog interface
box. If this is false, then owner and modal may be null.Method Detail |
---|
public void show()
show
in class Component
public void setServer(String s)
s
- - The ADDE server hostname.public String getServer()
public void setGroup(String s)
s
- The name of the ADDE data grouppublic String getGroup()
public void setDescr(String s)
s
- The name (abreviation) of the dataset (aka 'descr')public String getDescr()
public void setMag(String m)
public String getMag()
public void setLineMag(int m)
m
- The value of the line magnification (-50 thru +50).
Values of -1, 0, and 1 will be treated as 1.public int getLinMag()
public void setEleMag(int m)
m
- The element magnification factor (-50 thru +50).
Values of -1, 0, and 1 are treated as 1.public int getEleMag()
public void setCoordType(String c)
c
- coordinate = "E" for earth, "I" for image, "S" for radar
stationpublic String getCoordType()
public void setLocationString(String c)
c
- The coordinate locations. If two values, separate by
one of more blanks. For Earth coordinate, the latitude
and longitude (e.g., "43.1234 -89.2313"); for Image
coordinates, the line and element (e.g., "12345 23412"),
and for Radar Stations, the station name (e.g., "KMKX").public String getLocationString()
public void setBand(String c)
c
- the band number (as a String)public String getBand()
public void setNumLinesEles(String c)
c
- The number of lines and number of elements, in a string
with one or more blank spaces between (e.g., "480 640")public String getNumLinesEles()
public String getDay(int index)
public String getDay()
public void setDay(String d)
d
- the day in the form: yyyy-mm-ddpublic String getTime(int index)
public String getTime()
public void setTime(String t)
t
- is the time in the format: hh:mm:sspublic void setDateTime(String d, String t)
public void setUnit(String c)
c
- the name of the Units (e.g., "BRIT")public String getUnit()
public void setCal(String c)
c
- the calibration typepublic String getCal()
public void setDoc(String v)
v
- set to 'true' to return the history documentation.public String getDoc()
public void setUserName(String c)
c
- The user's ADDE identifier (e.g., "jack")public String getUserName()
public void setProjectNumber(String c)
c
- The project number to use (e.g., "12345")public String getProjectNumber()
public void status(String m)
public void addActionListener(ActionListener o)
public void removeActionListener(ActionListener o)
public List getImageList()
public String toString()
toString
in class Component
public static void main(String[] args)
args
- the command line arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |