|
||||||||||
| 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
public abstract class GridDisplayControl
Class with methods used by a DisplayControlImpl. For gridded data.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
DisplayControlImpl.SideLegendLabel |
| Field Summary | |
|---|---|
static String |
CMD_CONTOURDIALOG
command for showing cont level dialog |
static String |
CMD_SETLEVELS
flag for the set levels command |
protected GridDataInstance |
gridDataInstance
Deprecated. Should use getGridDataInstance |
static String |
INITIAL_PROBE_EARTHLOCATION
Key for setting intial probe position |
protected static LogUtil.LogCategory |
log_
logging category |
protected boolean |
settingLevel
flag for setting levels |
| 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 | |
|---|---|
GridDisplayControl()
cstr does nothing yet; usually made from a subclass. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
Deal with action event commands from the levels and contours buttons made by this class. |
protected void |
addTopographyMap(int typeIndex)
Add a topography map for the parameter at the specified index |
Range |
convertColorRange(Range rawRange)
Utility to convert the given raw data range into the display units |
JButton |
doMakeContourLevelControl()
Deprecated. Don't use this, rely on the |
protected DataInstance |
doMakeDataInstance(DataChoice dataChoice)
Create the GridDataInstance from the dataChoice. |
JComboBox |
doMakeLevelControl()
Make and return a JComboBox with all native raw grid levels to choose, from the current getGridDataInstance(), if any. |
JComboBox |
doMakeLevelControl(Object[] levels)
Make and return a JComboBox with the supplied "levels" to choose from; see action commmand "levels". |
void |
exportDisplayedData(String type)
Export displayed data to file |
protected String |
getColorParamName()
Get the parameter name for color. |
Range |
getColorRangeFromData()
Return the range attribute of the colorTable (if non-null) else return null; |
protected int |
getColorRangeIndex()
Returns the index to use in the GridDataInstance array of ranges for color ranges. |
protected Unit |
getColorUnit()
By default we color by the second index (if it is defined) |
ContourInfo |
getContourInfo()
Get the contour information for any contours |
protected Data |
getCursorReadoutData()
Get the cursor readout data |
protected List |
getCursorReadoutInner(EarthLocation el,
Real animationValue,
int animationStep,
List<ReadoutInfo> samples)
Get cursor readout |
MapProjection |
getDataProjection()
Get MapProjection of data to display. |
protected Range |
getDataRangeInColorUnits()
Get the range of the data in color units. |
protected ContourInfo |
getDefaultContourInfo()
Get the default contour info to use |
Unit |
getDisplayUnit()
Get the unit for the data display. |
GridDataInstance |
getGridDataInstance()
A utility to cast the getDataInstance as a GridDataInstance |
protected ColorTable |
getInitialColorTable()
Override superclass method to get the initial color table. |
protected Range |
getInitialRange()
Return the default range |
Unit |
getRawDataUnit()
Get the raw data unit. |
protected boolean |
haveMultipleFields()
Return whether the Data held by this display control contains multiple fields (e.g., for the isosurface colored by another parameter |
protected void |
initializeDefaultContourInfo(ContourInfo contourInfo)
A hook for derived classes to set any state. |
protected boolean |
isDisplayUnitAlsoColorUnit()
See if the display unit is also the color unit |
void |
setLevel(Object r)
Does nothing yet. |
void |
setLevel(Object l,
JComboBox levelBox)
Set the value "l" in the level combo box "levelBox." |
protected void |
setLevelFromUser(Object pl)
The user has changed the level |
| 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 |
|---|
public static final String CMD_SETLEVELS
public static final String CMD_CONTOURDIALOG
protected static LogUtil.LogCategory log_
protected boolean settingLevel
public static final String INITIAL_PROBE_EARTHLOCATION
protected GridDataInstance gridDataInstance
| Constructor Detail |
|---|
public GridDisplayControl()
| Method Detail |
|---|
public GridDataInstance getGridDataInstance()
protected Data getCursorReadoutData()
throws Exception
Exception - problem getting data
protected List getCursorReadoutInner(EarthLocation el,
Real animationValue,
int animationStep,
List<ReadoutInfo> samples)
throws Exception
getCursorReadoutInner in class DisplayControlImplel - earth locationanimationValue - animation valueanimationStep - animation stepsamples - the list of samples
Exception - problem getting valuesprotected ColorTable getInitialColorTable()
getInitialColorTable in class DisplayControlImplprotected boolean haveMultipleFields()
protected boolean isDisplayUnitAlsoColorUnit()
isDisplayUnitAlsoColorUnit in class DisplayControlImplprotected String getColorParamName()
protected Range getInitialRange()
throws RemoteException,
VisADException
getInitialRange in class DisplayControlImplRemoteException - Java RMI error
VisADException - VisAD Error
protected Range getDataRangeInColorUnits()
throws RemoteException,
VisADException
RemoteException - Java RMI error
VisADException - VisAD Error
protected DataInstance doMakeDataInstance(DataChoice dataChoice)
throws RemoteException,
VisADException
doMakeDataInstance in class DisplayControlImpldataChoice - data choice defining the data
RemoteException - Java RMI error
VisADException - VisAD Errorprotected int getColorRangeIndex()
public Unit getRawDataUnit()
getRawDataUnit in class DisplayControlImplprotected ContourInfo getDefaultContourInfo()
protected void initializeDefaultContourInfo(ContourInfo contourInfo)
contourInfo - The contour info to initializepublic ContourInfo getContourInfo()
getContourInfo in class DisplayControlImplprotected Unit getColorUnit()
getColorUnit in class DisplayControlImplpublic Unit getDisplayUnit()
getDisplayUnit in class DisplayControlImplpublic void setLevel(Object r)
r - level for data
protected void setLevelFromUser(Object pl)
throws VisADException,
RemoteException
pl - The new level
RemoteException - On badness
VisADException - On badnesspublic Range getColorRangeFromData()
public Range convertColorRange(Range rawRange)
rawRange - Raw data range
public void setLevel(Object l,
JComboBox levelBox)
l - the levellevelBox - the level boxpublic JButton doMakeContourLevelControl()
public JComboBox doMakeLevelControl()
public JComboBox doMakeLevelControl(Object[] levels)
levels - the levels to populat the combo box with
protected void addTopographyMap(int typeIndex)
throws VisADException,
RemoteException
typeIndex - index of the RealType to use
RemoteException - Java RMI problem
VisADException - Unable to set the ScalarMappublic void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListeneractionPerformed in class DisplayControlImplevent - event to handlepublic MapProjection getDataProjection()
getDataProjection in interface DisplayControlgetDataProjection in class DisplayControlImplpublic void exportDisplayedData(String type)
exportDisplayedData in class DisplayControlImpltype - type of data
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||