|
||||||||||
| 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, 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 | |
|---|---|
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(Real[] levels)
Make and return a JComboBox with the supplied "levels" to choose from; see action commmand "levels". |
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()
|
protected List |
getCursorReadoutInner(EarthLocation el,
Real animationValue,
int animationStep)
Get the list of items, subclasses should override |
MapProjection |
getDataProjection()
Get MapProjection of data to display. |
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(Real r)
Does nothing yet. |
void |
setLevel(Real l,
JComboBox levelBox)
Set the value "l" in the level combo box "levelBox." |
protected void |
setLevelFromUser(Real 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, 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 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
protected List getCursorReadoutInner(EarthLocation el,
Real animationValue,
int animationStep)
throws Exception
DisplayControlImpl
getCursorReadoutInner in class DisplayControlImplel - location of cursoranimationValue - animation valueanimationStep - animation step
Exception - problem getting at the dataprotected 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 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(Real r)
r - level for data
protected void setLevelFromUser(Real 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(Real l,
JComboBox levelBox)
l - the levellevelBox - the level boxpublic JButton doMakeContourLevelControl()
public JComboBox doMakeLevelControl()
public JComboBox doMakeLevelControl(Real[] 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 DisplayControlImpl| < |