|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.collab.SharableImpl
ucar.unidata.idv.control.DisplayControlBase
ucar.unidata.idv.control.DisplayControlImpl
ucar.unidata.idv.control.GridDisplayControl
ucar.unidata.idv.control.JythonControl
public class JythonControl
Allows for the creation of a display by an end user through the use of Jython
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
DisplayControlImpl.SideLegendLabel |
| Field Summary | |
|---|---|
static String |
PARAMNAME_PROBE
probe id for the parameter |
static String |
PARAMNAME_THIS
control id for the parameter |
static String |
PROBE_AREA
ID for the area probe |
static String |
PROBE_LEVEL
ID for the level probe |
static String[] |
PROBE_NAMES
list of probe names - does this need to be public? |
static String |
PROBE_NONE
Symbol for no probe |
static String |
PROBE_POINT
ID for the point probe |
static String |
PROBE_TRANSECT
ID for the transect probe |
static String |
PROBE_VERTICAL
ID for the line probe |
static String[] |
PROBES
list of probes - does this need to be public? |
protected CrossSectionSelector |
transectProbe
the transect probe |
| Fields inherited from class ucar.unidata.idv.control.GridDisplayControl |
|---|
CMD_CONTOURDIALOG, CMD_SETLEVELS, gridDataInstance, INITIAL_PROBE_EARTHLOCATION, log_, settingLevel |
| Fields inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
categories, colorScaleInfo, colorScales, contourInfo, contourInfoParams, controlContext, ctw, cw, dataSelection, defaultView, defaultViewManager, DISPLAY_LIST_NAME, displayListTable, displayMasters, displayUnit, helpUrl, initNoteText, instantiatedWithNoData, noteTextArea, noteWrapper, paramName, requestProperties, settingVisibility, sharables, showNoteText, skipSlider, srw, version, viewManagers |
| Fields inherited from interface ucar.unidata.idv.DisplayControl |
|---|
BOTTOM_LEGEND, DEFAULT_PROBEFORMAT, PREF_PREFIX, PREF_PROBEFORMAT, PREF_REMOVEONWINDOWCLOSE, PREF_SAMPLING_MODE, PREF_STANDALONE_REMOVEONCLOSE, PREF_STANDALONE_REMOVEONCLOSE_ASK, PROP_LEGENDICON, SIDE_LEGEND |
| Constructor Summary | |
|---|---|
JythonControl()
Ctor |
|
| Method Summary | |
|---|---|
void |
addData(String message)
Hook to allow jython to call to bring up data choice selector |
void |
addData(String message,
String callback)
Hook to allow jython to call to bring up data choice selector |
void |
addEditMenuItem(String name,
String method)
Hook to call from jython to add to menu |
void |
addFileMenuItem(String name,
String method)
Hook to call from jython to add to menu |
void |
addJythonComponent(Component comp)
Add a python component |
protected void |
addNewData(List newChoices)
Gets called whne user has chosen new data |
void |
addSaveMenuItem(String name,
String method)
Hook to call from jython to add to menu |
void |
addViewMenuItem(String name,
String method)
Hook to call from jython to add to menu |
Container |
doMakeContents()
Make some Plan view controls for the UI. |
void |
doRemove()
Remove this control. |
void |
execJython(String method)
Execute the jython method |
Real |
getAnimationTime()
Get current animation time or null of none |
List |
getAnimationTimes()
Get all animation times or null if none |
protected String |
getChangeParameterLabel()
Return the appropriate label text for the menu. |
Displayable |
getCurrentProbe()
Get the probe being used. |
String |
getDataCategories()
Get the CategoryString property. |
List |
getDataList()
Get the list of DataChoices |
boolean |
getDeveloperMode()
Get the DeveloperMode property. |
protected void |
getEditMenuItems(List items,
boolean forMenuBar)
add to menu |
protected JComponent |
getExtraLegendComponent(int legendType)
Return the extra legend component |
protected void |
getFileMenuItems(List items,
boolean forMenuBar)
add to menu |
String |
getJythonCode()
Get the JythonCode property. |
String |
getJythonDisplayCategory()
Get the DisplayCategory property. |
String |
getMyName()
Get the MyName property. |
EarthLocationTuple[] |
getProbeLocation()
Return an array that holds the location of the current probe. |
Object |
getProbePosition()
Get the probe's position |
String |
getProbeType()
Get the ProbeType property. |
double[][] |
getProbeXYZ()
Return the current probe position in X/Y space. |
protected void |
getSaveMenuItems(List items,
boolean forMenuBar)
Add the relevant file menu items into the list |
List |
getTimesFromData()
Get times from data |
Object |
getVar(Object varName)
Get a variable. |
protected void |
getViewMenuItems(List items,
boolean forMenuBar)
add to menu |
boolean |
init(DataChoice dataChoice)
Called to make this kind of Display Control; also calls code to made the Displayable. |
void |
initDone()
init done. |
void |
receiveShareData(Sharable from,
Object dataId,
Object[] data)
Method called by other classes that share the probe. |
void |
replaceData(String message)
Hook to allow jython to call to bring up data choice selector |
void |
replaceData(String message,
String callback)
Hook to allow jython to call to bring up data choice selector |
protected void |
resetData()
We have new data. |
Data |
sample()
Sample the first data at the probe position |
List |
sampleAll()
Sample all the data at the probe point |
List |
sampleAllAtTime()
Sample all the data at the probe point at the current animation time |
Data |
sampleAtTime()
Sample the first data at the probe position and at the current animation time |
Data |
sampleData(EarthLocationTuple[] loc,
FieldImpl field)
Sample at location |
Data |
sampleData(EarthLocationTuple[] loc,
FieldImpl field,
boolean atTime)
Sample the field at the location and maybe at the animation time |
Data |
sampleDataAtProbe(FieldImpl field)
Sample the field at the probe location |
Data |
sampleIndex(int index,
boolean atTime)
Sample the data at the index at the probe position |
void |
selectData(String message)
Hook to allow jython to call to bring up data choice selector |
void |
selectData(String message,
String callback,
boolean replace,
boolean multiples,
List categories)
Hook to allow jython to call to bring up data choice selector |
void |
setDataCategories(String value)
Set the CategoryString property. |
void |
setDeveloperMode(boolean value)
Set the DeveloperMode property. |
void |
setJythonCode(String value)
Set the JythonCode property. |
void |
setJythonComponent(Component comp)
Hook to call from jython to define gui |
void |
setJythonDisplayCategory(String value)
Set the DisplayCategory property. |
void |
setLegendComponent(Component comp)
Hook to call from jython to add in the legend component |
void |
setMyName(String value)
Set the MyName property. |
void |
setProbePosition(Object p)
Set the probe position property. |
void |
setProbeType(String value)
Set the ProbeType property. |
void |
setVar(Object varName,
Object value)
Set a variable. |
protected boolean |
shouldAddAnimationListener()
A hook to allow derived classes to tell us to add this as an animation listener |
protected void |
timeChanged(Real time)
Respond to a timeChange event |
void |
writeToPlugin()
Generate the control's XML |
| Methods inherited from class ucar.unidata.idv.control.DisplayControlBase |
|---|
boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToScreen, calculateRectangle, createStationTfo, earthToBox, earthToBox, earthToBoxTuple, earthToScreen, formatLevels, getScreenCenter, getSelectedStation, isLeftButtonDown, logException, logException, makeEarthLocation, screenToBox, screenToBox, screenToEarth, setStations, setStations, toBox, toEarth, userErrorMessage, userMessage |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, setShareGroup, setSharing, setUniqueId, showSharableDialog |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ucar.unidata.collab.Sharable |
|---|
getShareGroup, getSharing, getUniqueId |
| Field Detail |
|---|
public static final String PARAMNAME_THIS