|
||||||||||
| 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.ThreeDSurfaceControl
public class ThreeDSurfaceControl
A MetApps Display Control with Displayable and controls for one 3D isosurface display of one parameter.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
DisplayControlImpl.SideLegendLabel |
| Field Summary | |
|---|---|
static String |
SHARE_SURFACEVALUE
Property for sharing isosurface value |
static String |
SHARE_TRANSPARENCY
Deprecated. |
| 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 | |
|---|---|
ThreeDSurfaceControl()
Default constructor; does nothing. |
|
| Method Summary | |
|---|---|
protected void |
addDisplaySettings(DisplaySettingsDialog dsd)
_more_ |
protected void |
addLabelMacros(String template,
List patterns,
List values)
Add any macro name/value pairs. |
boolean |
canExportData()
Can this display control write out data. |
protected void |
displayUnitChanged(Unit oldUnit,
Unit newUnit)
Method called when display unit changes. |
float |
getAlpha()
Get the transparency property value. |
void |
getControlWidgets(List controlWidgets)
This gets called by the DisplayControlImpl.doMakeWidgetComponent (which is called by DisplayControlImpl.doMakeContents) to make the GUI contents of this Control, and allows this class to insert its own widgets as needed. |
protected Data |
getDisplayedData()
Get the DisplayedData |
void |
getLegendLabels(List labels,
int legendType)
Override the base class method to add the value readout. |
protected void |
getMacroNames(List names,
List labels)
Add any macro name/label pairs |
double |
getSurfaceValue()
Get the SurfaceValue property. |
boolean |
init(DataChoice dataChoice)
Call to help make this kind of Display Control; also calls code to made the Displayable (empty of data thus far). |
void |
initDone()
Called after init. |
void |
receiveShareData(Sharable from,
Object dataId,
Object[] data)
Method called by other classes that share the selector. |
void |
setAlpha(float alpha)
Set the transparency property value, 0.0 to 1.0 only. |
protected boolean |
setData(DataChoice choice)
Set the data in the display control from the data choice |
void |
setLevelSliderPercent(double level)
Set the surfaces's value as a percentage of the slider range. |
void |
setLevelWithRawValue(double rawLevel)
Set the level value on the isosurface display and update all of the UI widgets. |
void |
setSliderValues()
Set the initial state of the JSlider of isosurface value, with data limits, units, and labels. |
void |
setSurfaceValue(double value)
Set the SurfaceValue property. |
| 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 SHARE_SURFACEVALUE
public static final String SHARE_TRANSPARENCY
| Constructor Detail |
|---|
public ThreeDSurfaceControl()
| Method Detail |
|---|
public boolean init(DataChoice dataChoice)
throws VisADException,
RemoteException
init in class DisplayControlImpldataChoice - the DataChoice of the moment.
RemoteException - Java RMI error
VisADException - VisAD Errorpublic void initDone()
initDone in class DisplayControlImpl
protected void getMacroNames(List names,
List labels)
getMacroNames in class DisplayControlImplnames - List of macro nameslabels - List of macro labels
protected void addLabelMacros(String template,
List patterns,
List values)
addLabelMacros in class DisplayControlImpltemplate - The template to usepatterns - The macro namesvalues - The macro values
protected void displayUnitChanged(Unit oldUnit,
Unit newUnit)
displayUnitChanged in class DisplayControlImploldUnit - old unitnewUnit - new unit
protected boolean setData(DataChoice choice)
throws VisADException,
RemoteException
setData in class DisplayControlImplchoice - choice describing data
RemoteException - Java RMI error
VisADException - VisAD Error
public void getControlWidgets(List controlWidgets)
throws VisADException,
RemoteException
getControlWidgets in class DisplayControlImplcontrolWidgets - list of control widgets to populate
RemoteException - Java RMI error
VisADException - VisAD Error
public void setLevelWithRawValue(double rawLevel)
throws VisADException,
RemoteException
rawLevel - new isourface value
RemoteException - Java RMI error
VisADException - VisAD Error
public void receiveShareData(Sharable from,
Object dataId,
Object[] data)
receiveShareData in interface SharablereceiveShareData in class DisplayControlImplfrom - other class.dataId - type of sharingdata - Array of data being shared. In this case, the first
(and only?) object in the array is the level
public void getLegendLabels(List labels,
int legendType)
getLegendLabels in class DisplayControlImpllabels - labels to add tolegendType - The type of legend, BOTTOM_LEGEND or SIDE_LEGENDpublic float getAlpha()
public void setAlpha(float alpha)
alpha - the transparency property value.public void setLevelSliderPercent(double level)
level - the surfaces's value.
public void setSliderValues()
throws VisADException,
RemoteException
RemoteException - Java RMI error
VisADException - VisAD Errorprotected void addDisplaySettings(DisplaySettingsDialog dsd)
addDisplaySettings in class DisplayControlImpldsd - _more_public void setSurfaceValue(double value)
value - The new value for SurfaceValuepublic double getSurfaceValue()
public boolean canExportData()
canExportData in class DisplayControlImpl
protected Data getDisplayedData()
throws VisADException,
RemoteException
getDisplayedData in class DisplayControlImplRemoteException - problem reading remote data
VisADException - problem gettting data
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||