|
||||||||||
| 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
edu.wisc.ssec.mcidasv.control.HydraControl
edu.wisc.ssec.mcidasv.control.LinearCombo
public class LinearCombo
| Nested Class Summary | |
|---|---|
private static class |
LinearCombo.AddCombination
|
static class |
LinearCombo.Combination
|
private static class |
LinearCombo.DivideCombination
|
private static class |
LinearCombo.ExponentCombination
|
static class |
LinearCombo.JythonThing
|
private static class |
LinearCombo.ModuloCombination
|
private static class |
LinearCombo.MultiplyCombination
|
private static class |
LinearCombo.NegateCombination
|
static class |
LinearCombo.Selector
|
private static class |
LinearCombo.SubtractCombination
|
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
DisplayControlImpl.SideLegendLabel |
| Field Summary | |
|---|---|
private ComboDataChoice |
comboChoice
|
private Console |
console
|
static String |
CONSOLE_CONTROL_OBJECT
Name used in Jython namespace to refer back to an instantiation of a linear combination control. |
static String |
CONSOLE_DATA_OBJECT
|
static String |
CONSOLE_IDV_OBJECT
Name used in Jython namespace to refer to the "IDV god object". |
static String |
CONSOLE_OBJECT
|
private DataChoice |
dataChoice
|
private MultiSpectralDisplay |
display
|
private DisplayMaster |
displayMaster
|
static String |
HYDRA_HELP_ID
Help topic identifier. |
static String |
HYDRA_SRC
Path to the Jython source code that allows for interaction with a linear combination display control. |
private List<String> |
jythonHistory
|
private Map<String,LinearCombo.Selector> |
jythonMap
|
private static org.slf4j.Logger |
logger
Trusty logging object. |
private Map<String,LinearCombo.Selector> |
selectorMap
|
private MultiSpectralDataSource |
source
|
private String |
sourceFile
|
| Fields inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
categories, colorScaleInfo, colorScales, contourInfo, contourInfoParams, contourWidget, controlContext, ctw, dataSelection, defaultView, defaultViewManager, DISPLAY_LIST_NAME, displayListTable, displayListUsesColor, displayMasters, displayUnit, helpUrl, initNoteText, instantiatedWithNoData, noteTextArea, noteWrapper, paramName, requestProperties, selectRangeWidget, settingVisibility, sharables, showNoteText, skipSlider, version, viewManagers, ZFUDGE |
| 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, RASTERMODE_SHOWALL, RASTERMODE_SHOWNONRASTER, RASTERMODE_SHOWRASTER, SIDE_LEGEND |
| Constructor Summary | |
|---|---|
LinearCombo()
|
|
| Method Summary | |
|---|---|
void |
addCombination(String name,
Data combo)
|
protected void |
addSelector(LinearCombo.Selector selector)
|
Container |
doMakeContents()
Make Gui contents |
void |
doRemove()
Remove this DisplayControl. |
org.python.core.PyDictionary |
getBandNameMappings()
|
private JComponent |
getConsoleTab()
|
MapProjection |
getDataProjection()
get MapProjection of data to display |
float |
getInitialWavenumber()
|
List<String> |
getJythonHistory()
|
protected MultiSpectralDisplay |
getMultiSpectralDisplay()
|
protected int |
getSelectorCount()
|
private Set<String> |
getSelectorIds(Map<String,Object> objMap)
|
boolean |
init(DataChoice choice)
Initialize this instance according to a data choice. |
void |
initDone()
Called after all initialization has been done. |
private Map<String,LinearCombo.Selector> |
mapNamesToThings(Map<String,Object> objMap)
|
void |
moveSelector(String id,
float wavenum)
|
void |
ranBlock(String line)
Called after Jython's internals have finished processing line
(and before control is given back to the user). |
void |
setJythonHistory(List<String> persistedHistory)
|
String |
toString()
The toString method. |
void |
updateSelector(String id,
float wavenum)
|
| Methods inherited from class edu.wisc.ssec.mcidasv.control.HydraControl |
|---|
handleChannelChange, updateRange |
| Methods inherited from class ucar.unidata.idv.control.DisplayControlBase |
|---|
boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToScreen, calculateRectangle, createStationTfo, earthToBox, earthToBox, earthToBoxTuple, earthToScreen, formatLevels, getLabeledReal, getLevelReal, getScreenCenter, getSelectedStation, getTmpProperty, isLeftButtonDown, logException, logException, makeEarthLocation, putTmpProperty, removeTmpProperty, screenToBox, screenToBox, screenToEarth, setStations, setStations, toBox, toEarth, userErrorMessage, userMessage |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, setReceiveShareTime, 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.idv.DisplayControl |
|---|
getTmpProperty, putTmpProperty, removeTmpProperty |
| Methods inherited from interface ucar.unidata.collab.Sharable |
|---|
getReceiveShareTime, getShareGroup, getSharing, getUniqueId, setReceiveShareTime |
| Field Detail |
|---|
private static final org.slf4j.Logger logger
public static final String HYDRA_HELP_ID
public static final String HYDRA_SRC
public static final String CONSOLE_IDV_OBJECT
public static final String CONSOLE_CONTROL_OBJECT
public static final String CONSOLE_OBJECT
public static final String CONSOLE_DATA_OBJECT
private Console console
private MultiSpectralDisplay display
private DisplayMaster displayMaster
private String sourceFile
private ComboDataChoice comboChoice
private MultiSpectralDataSource source
private List<String> jythonHistory
private Map<String,LinearCombo.Selector> selectorMap
private Map<String,LinearCombo.Selector> jythonMap
private DataChoice dataChoice
| Constructor Detail |
|---|
public LinearCombo()
| Method Detail |
|---|
public boolean init(DataChoice choice)
throws VisADException,
RemoteException
ucar.unidata.idv.control.DisplayControlImplInitialize this instance according to a data choice. Subclasses should
override this method. Overridding methods should probably invoke DisplayControlImpl.setData(DataChoice) as part of their initialization procedure --
although it is unclear when this is actually necessary.
This implementation simply returns true.
init in class DisplayControlImplchoice - A data choice or null.
true if and only if this instance
was correctly initialized by the data choice.
VisADException - if a VisAD Failure occurs.
RemoteException - if a Java RMI failure occurs.public void initDone()
ucar.unidata.idv.control.DisplayControlImpl
initDone in class DisplayControlImplpublic List<String> getJythonHistory()
public void setJythonHistory(List<String> persistedHistory)
public MapProjection getDataProjection()
ucar.unidata.idv.control.DisplayControlImpl
getDataProjection in interface DisplayControlgetDataProjection in class DisplayControlImplpublic Container doMakeContents()
ucar.unidata.idv.control.DisplayControlImpl
doMakeContents in class DisplayControlImplprivate JComponent getConsoleTab()
public void doRemove()
throws VisADException,
RemoteException
ucar.unidata.idv.control.DisplayControlImplControlContext
to removeDisplayControl.
Removes all Displayable-s from
their ViewManager-s, remove this object from its Sharable
group, and sets the visibility of the dialog window to false.
doRemove in interface DisplayControldoRemove in class DisplayControlImplVisADException
RemoteExceptionpublic String toString()
ucar.unidata.idv.control.DisplayControlImpl
toString in class DisplayControlImpl
public void moveSelector(String id,
float wavenum)
public void updateSelector(String id,
float wavenum)
protected void addSelector(LinearCombo.Selector selector)
throws Exception
Exceptionprotected MultiSpectralDisplay getMultiSpectralDisplay()
getMultiSpectralDisplay in class HydraControlprotected int getSelectorCount()
private Set<String> getSelectorIds(Map<String,Object> objMap)
private Map<String,LinearCombo.Selector> mapNamesToThings(Map<String,Object> objMap)
objMap -
public float getInitialWavenumber()
public org.python.core.PyDictionary getBandNameMappings()
public void addCombination(String name,
Data combo)
public void ranBlock(String line)
line
(and before control is given back to the user).
This is where LinearCombo controls map Jython names to Java
objects.
ranBlock in interface ConsoleCallbackline - The Jython block that was run.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||