|
||||||||||
| 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.PlanViewControl
public abstract class PlanViewControl
Class to handle all kinds of PlanViews. A plan view is a horizontal slice at a level.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
DisplayControlImpl.SideLegendLabel |
| Field Summary | |
|---|---|
protected Real |
currentLevel
current level |
protected Real[] |
currentLevels
list of current levels |
protected FieldImpl |
currentSlice
current slice |
protected DataChoice |
datachoice
data choice for the data |
protected JLabel |
levelReadout
level readout label |
static String |
MACRO_LEVEL
Macro for the short parameter name for the label |
static String |
SHARE_LEVEL
property for sharing levels |
| 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 | |
|---|---|
PlanViewControl()
Cstr; does nothing. |
|
| Method Summary | |
|---|---|
protected void |
addDisplaySettings(DisplaySettingsDialog dsd)
Add DisplaySettings appropriate for this display |
protected void |
addLabelMacros(String template,
List patterns,
List values)
Add any macro name/value pairs. |
protected void |
addTopographyMap()
Wrapper around GridDisplayControl.addTopographyMap(int) to allow subclasses
to set their own index. |
void |
addToRangeMenu(RangeWidget rw,
List items)
Add an entry into the range menu |
protected void |
applySkipFactor()
Use the value of the skip factor to subset the data. |
boolean |
canExportData()
Can this display control write out data. |
protected abstract DisplayableData |
createPlanDisplay()
Method for creating the DisplayableData object
that is the main depiction for the data controlled by this
PlanViewControl; implemented by each subclass. |
Container |
doMakeContents()
Make some Plan view controls for the UI. |
protected DataInstance |
doMakeDataInstance(DataChoice dataChoice)
Make a DataInstance |
protected String |
formatLevel(Real level)
Format the level for labelling. |
protected int |
getColorRangeIndex()
Returns the index to use in the GridDataInstance array of ranges for color ranges. |
void |
getControlWidgets(List controlWidgets)
Add in any special control widgets to the current list of widgets. |
protected Data |
getCursorReadoutData()
_more_ |
protected List |
getCursorReadoutInner(EarthLocation el,
Real animationValue,
int animationStep)
_more_ |
protected String |
getDataProjectionLabel()
Get the Data projection label |
protected Data |
getDisplayedData()
Get the DisplayedData |
protected void |
getEditMenuItems(List items,
boolean forMenuBar)
Overwrite the base class method to add a Levels menu to the edit menu |
GridDisplayable |
getGridDisplayable()
Return the Displayable of the Plan View as a
GridDisplayable. |
boolean |
getIgnoreVerticalDimension()
get the Ignore Vertical Dimension property |
void |
getLegendLabels(List labels,
int legendType)
Append any label information to the list of labels. |
Real |
getLevel()
Return active level value. |
protected Range |
getLevelColorRange()
Get the range for the current slice. |
String |
getLevelsLabel()
Get the label for the levels box. |
protected void |
getMacroNames(List names,
List labels)
Add any macro name/label pairs |
boolean |
getMultipleIsTopography()
Get the multiple is topography property. |
DisplayableData |
getPlanDisplay()
Return the displayable of the Plan View as a DisplayableData. |
protected FieldImpl |
getSliceForDisplay(FieldImpl slice)
Get the slice for the display |
boolean |
haveLevels()
Determine whether the data in this PlanViewControl
has levels or not. |
protected boolean |
haveMultipleFields()
Return whether the Data held by this display control contains multiple fields (e.g., for the isosurface colored by another parameter |
boolean |
init(DataChoice dataChoice)
Called to make this kind of Display Control; also calls code to made the Displayable. |
void |
loadDataAtLevel(Real level)
Load data at the level specified. |
void |
projectionChanged()
Method to call if projection changes. |
void |
propertyChange(PropertyChangeEvent evt)
Handle property change |
void |
receiveShareData(Sharable from,
Object dataId,
Object[] data)
Method called by other classes that share the selector. |
protected boolean |
setData(DataChoice dataChoice)
Called to initialize this control from the given dataChoice; sets levels controls to match data; make data slice at first level; set display's color table and display units. |
void |
setDataSelectionLevel(Real level)
Set the level in the data selection |
void |
setIgnoreVerticalDimension(boolean v)
Set the ignore Vertical Dimension property |
void |
setLevel(Real pl)
Set the active level. |
protected void |
setLevelFromUser(Real pl)
Set the level from the user |
void |
setLevelReadoutLabel(String text)
Set the text for the level readout in the control window. |
void |
setLevels(Real[] levels)
If there are, or are not, some levels in the data, set the controls accordingly. |
void |
setMultipleIsTopography(boolean v)
Set the other is topography property. |
void |
setSettingsLevel(Real level)
Set the active level. |
protected boolean |
shouldShowLevelWidget()
This allows for derived classes to turn this off. |
protected boolean |
shouldShowZSelector()
This allows for derived classes to turn this off. |
protected boolean |
shouldUseZPosition()
Determine if the display and gui should have a z position. |
| 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 MACRO_LEVEL
public static final String SHARE_LEVEL
protected Real[] currentLevels
protected JLabel levelReadout
protected FieldImpl currentSlice
protected Real currentLevel
protected DataChoice datachoice
| Constructor Detail |
|---|
public PlanViewControl()
| Method Detail |
|---|
protected Data getCursorReadoutData()
throws Exception
getCursorReadoutData in class GridDisplayControlException - _more_
protected List getCursorReadoutInner(EarthLocation el,
Real animationValue,
int animationStep)
throws Exception
getCursorReadoutInner in class GridDisplayControlel - _more_animationValue - _more_animationStep - _more_
Exception - _more_protected String getDataProjectionLabel()
getDataProjectionLabel in class DisplayControlImplprotected void addDisplaySettings(DisplaySettingsDialog dsd)
addDisplaySettings in class DisplayControlImpldsd - the dialog to add to
public void addToRangeMenu(RangeWidget rw,
List items)
addToRangeMenu in class DisplayControlImplrw - The widget that manages the range dialogitems - List of menu itemsprotected Range getLevelColorRange()
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 propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerpropertyChange in class DisplayControlImplevt - The eventprotected boolean haveMultipleFields()