public abstract class PlanViewControl extends GridDisplayControl
Modifier and Type | Class and Description |
---|---|
class |
PlanViewControl.VerticalRangeWidget
A widget for the control window for setting the vertical range properties
|
DisplayControlImpl.SideLegendLabel
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
currentLevel
current level
|
protected java.lang.Object[] |
currentLevels
list of current levels
|
protected visad.FieldImpl |
currentSlice
current slice
|
protected DataChoice |
datachoice
data choice for the data
|
protected boolean |
haveEnsemble
flag for ensembles
|
protected javax.swing.JLabel |
levelReadout
level readout label
|
static java.lang.String |
MACRO_LEVEL
Macro for the level for the label
|
static java.lang.String |
SHARE_LEVEL
property for sharing levels
|
CMD_CONTOURDIALOG, CMD_SETLEVELS, gridDataInstance, INITIAL_PROBE_EARTHLOCATION, log_, settingLevel
categories, colorScaleInfo, colorScales, contourInfo, contourInfoParams, contourWidget, controlContext, ctw, dataSelection, defaultView, defaultViewManager, DISPLAY_LIST_NAME, displayListTable, displayListUsesColor, displayMasters, displayUnit, helpUrl, initNoteText, instantiatedWithNoData, isProgressiveResolution, matchDisplayRegion, noteTextArea, noteWrapper, paramName, reloadFromBounds, requestProperties, resolutionReadout, selectRangeWidget, settingVisibility, sharables, showNoteText, skipSlider, version, viewManagers, ZFUDGE
APPEARANCE_DARK, APPEARANCE_IDV, APPEARANCE_LIGHT, CMD_BARBSIZE, CMD_COLORS, CMD_COLORTABLE, CMD_INTERVAL, CMD_LEVEL, CMD_LINEWIDTH, CMD_POPUP, CMD_REMOVE, DEFAULT_POINT_SIZE, DEFAULT_SAMPLING_MODE, FIND_ALL, FIND_CATEGORY, FIND_CLASS, FIND_SPECIAL, FIND_THIS, FIND_WITHDATA, FIND_WITHTHISDATA, FIND_WITHTHISFIELD, FIND_WITHTHISVIEW, FLAG_COLOR, FLAG_COLORTABLE, FLAG_COLORUNIT, FLAG_CONTOUR, FLAG_DATACONTROL, FLAG_DISPLAYUNIT, FLAG_GRIDTRAJECTORY, FLAG_LINEWIDTH, FLAG_NONE, FLAG_SELECTRANGE, FLAG_SKIPFACTOR, FLAG_SMOOTHING, FLAG_TEXTUREQUALITY, FLAG_TIMERANGE, FLAG_ZPOSITION, GRID_INSETS, ICON_LOCK, ICON_REMOVE, ICON_UNLOCK, LABEL_NONE, MACRO_DATASOURCENAME, MACRO_DISPLAYNAME, MACRO_DISPLAYUNIT, MACRO_FHOUR, MACRO_FHOUR2, MACRO_LONGNAME, MACRO_POSITION, MACRO_RESOLUTION, MACRO_SHORTNAME, MACRO_STATION, MACRO_TIMESTAMP, MACRO_VALUE, NEAREST_NEIGHBOR, PREF_DISPLAYLIST_TEMPLATE, PREF_EXTRALABEL_TEMPLATE, PREF_LEGENDLABEL_TEMPLATE, PROP_REMOVED, SETTINGS_GROUP_DISPLAY, SETTINGS_GROUP_FLAGS, SHARE_CHOICES, SHARE_COLOR, SHARE_COLORSCALE, SHARE_COLORTABLE, SHARE_DISPLAYUNIT, SHARE_POSITION, SHARE_SELECTRANGE, SHARE_SKIPVALUE, SHARE_TRANSECT, SHARE_VISIBILITY, WEIGHTED_AVERAGE
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 and Description |
---|
PlanViewControl()
Cstr; does nothing.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addDisplaySettings(DisplaySettingsDialog dsd)
Add DisplaySettings appropriate for this display
|
protected void |
addLabelMacros(java.lang.String template,
java.util.List patterns,
java.util.List values)
Add any macro name/value pairs.
|
protected void |
addParameterTopographyMap()
Add a topography map for the parameter
|
protected void |
addTopographyMap()
Wrapper around
GridDisplayControl.addTopographyMap(int) to allow subclasses
to set their own index. |
void |
addToRangeMenu(RangeWidget rw,
java.util.List items)
Add an entry into the range menu
|
protected void |
applySkipFactor()
Use the value of the skip factor to subset the data.
|
protected void |
applySmoothing()
Use the value of the smoothing type and weight to subset the data.
|
boolean |
canExportData()
Can this display control write out data.
|
protected boolean |
checkFlag(int f)
Test if the given flag is set in the attrbiuteFlags
|
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. |
protected void |
displayUnitChanged(visad.Unit oldUnit,
visad.Unit newUnit)
A hook that is called when the display unit is changed.
|
java.awt.Container |
doMakeContents()
Make some Plan view controls for the UI.
|
void |
doRemove()
Remove this control
|
protected java.lang.String |
formatLevel(java.lang.Object 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(java.util.List<ControlWidget> controlWidgets)
Add in any special control widgets to the current list of widgets.
|
protected visad.FieldImpl |
getCurrentSlice()
Get the current slice
|
protected visad.Data |
getCursorReadoutData()
Get the cursor readout data
|
protected java.util.List |
getCursorReadoutInner(visad.georef.EarthLocation el,
visad.Real animationValue,
int animationStep,
java.util.List<ReadoutInfo> samples)
Get the cursor data
|
protected java.lang.String |
getDataProjectionLabel()
Get the Data projection label
|
protected visad.Data |
getDisplayedData()
Get the DisplayedData
|
protected void |
getEditMenuItems(java.util.List items,
boolean forMenuBar)
Overwrite the base class method to add a Levels menu to the edit menu
|
float |
getForwardValue()
Needed for bundles/persistence - pressure levels dwell rate slider and text box
|
GridDisplayable |
getGridDisplayable()
Return the
Displayable of the Plan View as a
GridDisplayable . |
boolean |
getIgnoreVerticalDimension()
get the Ignore Vertical Dimension property
|
boolean |
getIs2D()
Get the property.
|
void |
getLegendLabels(java.util.List labels,
int legendType)
Append any label information to the list of labels.
|
java.lang.Object |
getLevel()
Return active level value.
|
protected Range |
getLevelColorRange()
Get the range for the current slice.
|
java.lang.String |
getLevelsLabel()
Get the label for the levels box.
|
protected void |
getMacroNames(java.util.List names,
java.util.List labels)
Add any macro name/label pairs
|
boolean |
getMultipleIsTopography()
Get the multiple is topography property.
|
boolean |
getParameterIsTopography()
Get the parameter is topography property.
|
DisplayableData |
getPlanDisplay()
Return the displayable of the Plan View as a DisplayableData.
|
int |
getPolygonMode()
Return the type of depiction for this display
|
protected javax.swing.JComboBox |
getPolyModeComboBox()
Create a jcombobox for setting the polygon mode.
|
protected visad.FieldImpl |
getSliceForDisplay(visad.FieldImpl slice)
Get the slice for the display
|
Range |
getVerticalRange()
Get the vertical range
|
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 |
initDone()
What to do when you are done.
|
void |
loadDataAtLevel(java.lang.Object level)
Load data at the level specified.
|
void |
projectionChanged()
Method to call if projection changes.
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
Handle property change
|
void |
receiveShareData(Sharable from,
java.lang.Object dataId,
java.lang.Object[] data)
Method called by other classes that share the selector.
|
void |
relocateDisplay(ucar.unidata.geoloc.LatLonRect originalBounds,
ucar.unidata.geoloc.LatLonRect newBounds,
boolean useDataProjection)
When we relocate a bundle this gets called to relocate the display
This method gets overwritten by the probe and cross section displays
so they can move their selection points to a new location
|
protected void |
setCurrentSlice(visad.FieldImpl slice)
Set the current slice
|
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(java.lang.Object level)
Set the level in the data selection
|
void |
setForwardValue(float forwardValue)
Needed for bundles/persistence - pressure levels dwell rate slider and text box
|
void |
setIgnoreVerticalDimension(boolean v)
Set the ignore Vertical Dimension property
|
void |
setIs2D(boolean v)
Set the property.
|
void |
setLevel(java.lang.Object pl)
Set the active level.
|
protected void |
setLevelFromUser(java.lang.Object pl)
Set the level from the user
|
void |
setLevelReadoutLabel(java.lang.String text)
Set the text for the level readout in the control window.
|
void |
setLevels(java.lang.Object[] 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 |
setParameterIsTopography(boolean v)
Set the parameter is topography property.
|
void |
setPointSize(float value)
Set the point size
|
void |
setPolygonMode(int v)
Set the type of depiction (solid, line, mesh) for this display
|
void |
setSettingsLevel(java.lang.Object level)
Set the active level.
|
void |
setVerticalRange(Range vertRange)
Set the range on the parameter topography ScalarMap
|
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.
|
actionPerformed, addTopographyMap, addTopographyMap, applyForecastHourMacro, canDoProgressiveResolution, convertColorRange, doExport, doMakeContourLevelControl, doMakeDataInstance, doMakeLevelControl, doMakeLevelControl, exportDisplayedData, getColorParamName, getColorRangeFromData, getColorUnit, getContourInfo, getDataProjection, getDataRangeInColorUnits, getDefaultContourInfo, getDisplayUnit, getGridDataInstance, getInitialColorTable, getInitialRange, getRawDataUnit, initializeDefaultContourInfo, isDisplayUnitAlsoColorUnit, normalizeRectangle, setLevel, shouldAddControlListener, shouldAddDisplayListener
activateDisplays, addAttributedDisplayable, addAttributedDisplayable, addAttributedDisplayable, addAttributeFlags, addCheckBoxSettings, addDataChoice, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayMaster, addNewData, addNoteText, addPropertiesComponents, addPropertyChangeListener, addRemovable, addSharable, addTimeModeWidget, addToControlContext, addToRangeMenu, addToRangeMenu, addViewManager, appendDataChoices, applyAttributesToDisplayables, applyColor, applyColorScaleInfo, applyColorTable, applyColorUnit, applyContourInfo, applyDisplaySetting, applyDisplayUnit, applyLineWidth, applyPreferences, applyProperties, applyProperties, applyPropertyValues, applyRange, applySelectRange, applyTextureQuality, applyTimeRange, applyZPosition, boundsClose, canBeDocked, canSaveDataInCache, captureWindow, centerOnDisplay, changeColorUnit, changeDisplayUnit, checkBoundsChange, checkIfDataOk, checkImageSize, clearDataInstance, clearPrototype, clearViewManagers, close, colorUnitChanged, controlChanged, convertColorRange, convertRange, createDisplayListDisplayable, createIdvWindow, dataChanged, deactivateDisplays, debug, displayableToFront, displayChanged, displayControlFailed, doApplyProperties, doInitialUpdateLegendAndList, doMakeBottomLegendComponent, doMakeChangeColorMenu, doMakeChangeColorMenu, doMakeChangeParameterMenuItem, doMakeColorControl, doMakeColorControl, doMakeColorScales, doMakeMenuBar, doMakeMenuBarMenus, doMakePointSizeWidget, doMakeRemoveControl, doMakeSideLegendComponent, doMakeSkipFactorSlider, doMakeSmoothingWidget, doMakeTextureSlider, doMakeVisibilityControl, doMakeWidgetComponent, doMakeWindow, doMakeZPositionSlider, findDisplayInfo, findDisplays, findDisplays, firePropertyChangeEvent, firstFrameDone, formatForCursorReadout, getActive, getAnimation, getAnimation, getAnimation, getAnimation, getAnimationInfo, getAnimationWidget, getAttributeFlags, getCachedData, getCanDoRemoveAll, getCategories, getChangeParameterLabel, getCollapseLegend, getColor, getColorDimness, getColorScaleInfo, getColorTable, getColorTableForDisplayable, getColorTableToApply, getColorTableWidget, getColorUnitName, getColorWidgetLabel, getComponentHolder, getContents, getControlChangeSleepTime, getControlContext, getControlMenus, getCursorReadout, getCursorReadoutInner, getData, getDataChoice, getDataChoices, getDataForDisplayList, getDataInstance, getDataInstance, getDataProjectionForMenu, getDataSelection, getDataSources, getDataTimeRange, getDataTimeRange, getDataTimeSet, getDebugDetails, getDefaultColorScaleInfo, getDefaultDisplayListTemplate, getDefaultDistanceUnit, getDefaultFastRendering, getDefaultSamplingMode, getDefaultSamplingModeValue, getDefaultView, getDefaultViewDescriptor, getDefaultViewManager, getDetailsContents, getDisplayAltitudeType, getDisplayCategory, getDisplayCenter, getDisplayConventions, getDisplayId, getDisplayInfos, getDisplayListColor, getDisplayListData, getDisplayListDisplayable, getDisplayListTemplate, getDisplayMaster, getDisplayName, getDisplayScale, getDisplayUnit, getDisplayUnitName, getDisplayVisibility, getDoCursorReadout, getEditMenuItems, getExpandedInTabs, getExtraLabelTemplate, getExtraLegendComponent, getExtraMenus, getFileMenuItems, getFileMenuItems, getGraphicsConfiguration, getGrid, getGrid, getHadDataChoices, getHaveInitialized, getHelpIds, getHelpMenuItems, getId, getIdv, getImage, getImage, getInitDataChoices, getInitialFastRendering, getInitialZPosition, getInternalAnimation, getInternalAnimation, getIsProgressiveResolution, getIsRaster, getIsTimeDriver, getLabel, getLastFileMenuItems, getLatLonPoints, getLegendButtons, getLegendComponent, getLegendLabel, getLegendLabelTemplate, getLegendToolTip, getLineWidth, getLineWidthWidget, getLineWidthWidgetLabel, getLockVisibilityToggle, getLongParamName, getMainPanel, getMainPanelSize, getMakeWindow, getMapDisplay, getMapViewManager, getMapViewProjection, getMatchDisplayRegion, getMenuLabel, getMyDataChoices, getNavigatedDisplay, getNoteText, getObjectStore, getOkToFireEvents, getOldColorTableOrInitialColorTable, getOriginalDataChoicesLabel, getOuterContents, getPointSize, getProperty, getProperty, getPropertyDisplayName, getRange, getRangeForColorTable, getRangeToApply, getRequestProperties, getSamplingModeName, getSamplingModeValue, getSamplingModeValue, getSaveMenuItems, getSelectRange, getSelectRangeEnabled, getSelectRangeWidget, getSettingsPanel, getShortParamName, getShoulDoProgressiveResolution, getShowInDisplayList, getShowInLegend, getShowInTabs, getShowNoteText, getSkipValue, getSkipWidgetLabel, getSmoothingFactor, getSmoothingType, getSomeAnimation, getStore, getTemplateName, getTextureQuality, getTextureQualityLabel, getTimeSet, getTitle, getTransientProperty, getUnitForColor, getUseFastRendering, getUsesTimeDriver, getUseTimesInAnimation, getVersion, getVerticalValue, getViewAnimation, getViewContext, getViewer, getViewManager, getViewManager, getViewManager, getViewManagerClassNames, getViewManagerForCapture, getViewManagers, getViewMenuItems, getViewMenuItems, getVisbilityAnimationPause, getWasUnPersisted, getWindow, getWindowSize, getWindowVisible, getWindowX, getWindowY, getZPosition, getZPositionSliderLabel, guiExported, guiImported, handleDisplayChanged, handleWindowClosing, hasForecastHourMacro, hasMapProjection, hasTimeMacro, haveDataTimes, haveParameterDefaults, hide, hyperlinkUpdate, inGlobeDisplay, init, init, init, initAfterUnPersistence, initAfterUnPersistence, initAsPrototype, initAsTemplate, initBasic, initializeWithNewData, initWindow, isDisplay3D, isGuiShown, isInitDone, isInTransectView, isInViewManager, itemStateChanged, loadDataFromViewBounds, makeChangeColorMenuItems, makeLegendLabel, makeLockButton, makeRemoveButton, moveTo, notifyViewManagersOfChange, parseProperties, popup, popupDataDialog, popupDataDialog, popupDataDialog, processRequestProperties, putTransientProperty, reallySetAttributeFlags, redoGuiLayout, reloadDataSource, reloadDataSourceInThread, relocateDisplay, removeDataChoice, removeDisplayable, removeDisplayables, removeDisplayables, removeOnWindowClose, removePropertyChangeListener, resetData, resetDimness, resetViewManager, revertToDefaultColorTable, revertToDefaultColorTable, revertToDefaultRange, revertToDefaultRange, saveAsFavorite, saveAsParameterDefaults, saveAsPrototype, saveAsTemplate, saveDataChoiceInCache, saveImage, saveProjection, selectDataChoices, setAnimationInfo, setAnimationSet, setAttributeFlags, setCachedData, setCanDoRemoveAll, setCategories, setCollapseLegend, setColor, setColorBrighter, setColorDimmer, setColorDimness, setColorScaleInfo, setColorScaleVisible, setColorTable, setColorTable, setColorTableName, setColorUnit, setColorUnitName, setComponentHolder, setContents, setContourInfo, setContourInfoParams, setData, setDataChoices, setDataInstance, setDataInstances, setDataSelection, setDataTimeRange, setDefaultSamplingMode, setDefaultView, setDisplayableVisibility, setDisplayableVisiblity, setDisplayActive, setDisplayAreaSubset, setDisplayCategory, setDisplayId, setDisplayInactive, setDisplayListColor, setDisplayListColor, setDisplayListProperties, setDisplayListTemplate, setDisplayListTimeZone, setDisplayName, setDisplayUnit, setDisplayUnitName, setDisplayVisibility, setDoCursorReadout, setExpandedInTabs, setExtraLabelTemplate, setHadDataChoices, setHelpUrl, setId, setInitDataChoices, setInitialSettings, setInitialViewManager, setIsProgressiveResolution, setIsRaster, setIsTimeDriver, setLabelAsPreference, setLegendBackground, setLegendForeground, setLegendLabel, setLegendLabelTemplate, setLineWidth, setLockVisibilityToggle, setMainPanelDimensions, setMainPanelSize, setMakeWindow, setMatchDisplayRegion, setName, setNameFromUser, setNewColorUnit, setNewDisplayUnit, setNoteText, setOkToFireEvents, setOriginalDataChoicesLabel, setParamName, setPersistedVisadData, setProjectionInView, setProjectionInView, setProjectionInView, setProperty, setRange, setRange, setSelectRange, setSelectRangeEnabled, setSettingsDisplayUnit, setSharedColorScaleInfo, setShowInDisplayList, setShowInLegend, setShowInTabs, setShowNoteText, setSkipValue, setSmoothingFactor, setSmoothingType, setTemplateName, setTextureQuality, setTitle, setUnitForColor, setUseFastRendering, setUsesTimeDriver, setUseTimesInAnimation, setVersion, setViewer, setViewManagerClassNames, setVisbilityAnimationPause, setWindowSize, setWindowVisible, setWindowX, setWindowY, setZPosition, setZPosition, shouldAddAnimationListener, shouldApplyFastRendering, shouldBeDocked, shouldWindowBeVisible, show, showColorControlWidget, showColorDialog, showColorDialog, showColorScaleDialog, showColorScales, showColorSwatches, showContourPropertiesDialog, showDetails, showDisplaySettingsDialog, showHelp, showLegendMenu, showNormalCursor, showProperties, showTimeRangeDialog, showWaitCursor, timeChanged, toFront, toggleNoteTextArea, toggleVisibilityForVectorGraphicsRendering, toggleWindow, toString, transectChanged, updateAnimation, updateDataInstance, updateDataSelection, updateDisplayList, updateGridDataInstance, updateLegendAndList, updateLegendLabel, updateLockButton, useSmoothingFactor, useZPosition, viewManagerChanged, viewManagerDestroyed, viewpointChanged, writeTestArchive, xxxsetDisplayActive, zSliderChanged
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
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTmpProperty, putTmpProperty, removeTmpProperty
getReceiveShareTime, getShareGroup, getSharing, getUniqueId, setReceiveShareTime
public static final java.lang.String MACRO_LEVEL
public static final java.lang.String SHARE_LEVEL
protected java.lang.Object[] currentLevels
protected javax.swing.JLabel levelReadout
protected visad.FieldImpl currentSlice
protected java.lang.Object currentLevel
protected DataChoice datachoice
protected boolean haveEnsemble
public PlanViewControl()
protected visad.Data getCursorReadoutData() throws java.lang.Exception
getCursorReadoutData
in class GridDisplayControl
java.lang.Exception
- problem getting dataprotected void setCurrentSlice(visad.FieldImpl slice) throws java.lang.Exception
slice
- the slicejava.lang.Exception
- problem setting the sliceprotected visad.FieldImpl getCurrentSlice() throws java.lang.Exception
java.lang.Exception
- problem getting the datapublic float getForwardValue()
public void setForwardValue(float forwardValue)
forwardValue
- protected java.util.List getCursorReadoutInner(visad.georef.EarthLocation el, visad.Real animationValue, int animationStep, java.util.List<ReadoutInfo> samples) throws java.lang.Exception
getCursorReadoutInner
in class GridDisplayControl
el
- earth locationanimationValue
- the animation valueanimationStep
- the animation stepsamples
- the list of samplesjava.lang.Exception
- problem getting the dataprotected java.lang.String getDataProjectionLabel()
getDataProjectionLabel
in class DisplayControlImpl
protected void addDisplaySettings(DisplaySettingsDialog dsd)
addDisplaySettings
in class DisplayControlImpl
dsd
- the dialog to add topublic void addToRangeMenu(RangeWidget rw, java.util.List items)
addToRangeMenu
in class DisplayControlImpl
rw
- The widget that manages the range dialogitems
- List of menu itemsprotected Range getLevelColorRange()
public boolean init(DataChoice dataChoice) throws visad.VisADException, java.rmi.RemoteException
init
in class DisplayControlImpl
dataChoice
- the DataChoice of the moment.java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD Errorpublic void initDone()
initDone
in class DisplayControlImpl
protected javax.swing.JComboBox getPolyModeComboBox()
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class DisplayControlImpl
evt
- The eventpublic void doRemove() throws java.rmi.RemoteException, visad.VisADException
doRemove
in interface DisplayControl
doRemove
in class DisplayControlImpl
java.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD data problemprotected boolean haveMultipleFields()
haveMultipleFields
in class GridDisplayControl
protected int getColorRangeIndex()
getColorRangeIndex
in class GridDisplayControl
protected boolean setData(DataChoice dataChoice) throws visad.VisADException, java.rmi.RemoteException
setData
in class DisplayControlImpl
dataChoice
- choice that describes the data to be loaded.java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD Errorprotected void addTopographyMap() throws visad.VisADException, java.rmi.RemoteException
GridDisplayControl.addTopographyMap(int)
to allow subclasses
to set their own index.java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD errorprotected void addParameterTopographyMap() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- Java RMI problemvisad.VisADException
- Unable to set the ScalarMappublic void setVerticalRange(Range vertRange)
vertRange
- the vertical rangepublic Range getVerticalRange()
public boolean haveLevels()
PlanViewControl
has levels or not.public void setLevels(java.lang.Object[] levels)
levels
- array of levelsprotected void getEditMenuItems(java.util.List items, boolean forMenuBar)
getEditMenuItems
in class DisplayControlImpl
items
- Menu items to add toforMenuBar
- Is this edit menu for the main menu barpublic DisplayableData getPlanDisplay()
DisplayableData
that is being used for the
main depiction of this PlanDisplay
public GridDisplayable getGridDisplayable()
Displayable
of the Plan View as a
GridDisplayable
.Displayable
cast to a GridDisplay
public void setPointSize(float value)
setPointSize
in class DisplayControlImpl
value
- the sizeprotected abstract DisplayableData createPlanDisplay() throws visad.VisADException, java.rmi.RemoteException
DisplayableData
object
that is the main depiction for the data controlled by this
PlanViewControl
; implemented by each subclass.DisplayableData
for the data depiction.java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD Errorpublic void projectionChanged()
projectionChanged
in interface DisplayControl
projectionChanged
in class DisplayControlImpl
public java.lang.Object getLevel()
public void setLevel(java.lang.Object pl)
setLevel
in class GridDisplayControl
pl
- present level.public void setSettingsLevel(java.lang.Object level)
level
- present level.public void setDataSelectionLevel(java.lang.Object level)
level
- The levelprotected void setLevelFromUser(java.lang.Object pl) throws visad.VisADException, java.rmi.RemoteException
setLevelFromUser
in class GridDisplayControl
pl
- leveljava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD Errorpublic void relocateDisplay(ucar.unidata.geoloc.LatLonRect originalBounds, ucar.unidata.geoloc.LatLonRect newBounds, boolean useDataProjection)
relocateDisplay
in class DisplayControlImpl
originalBounds
- The original bounds of the datasourcenewBounds
- The relocated bounds of the datasourcepublic void loadDataAtLevel(java.lang.Object level) throws visad.VisADException, java.rmi.RemoteException
level
- level to load atvisad.VisADException
- illegal level or other VisAD errorjava.rmi.RemoteException
- RMI errorprotected visad.FieldImpl getSliceForDisplay(visad.FieldImpl slice) throws visad.VisADException
slice
- slice to usevisad.VisADException
- problem subsetting the sliceprotected void applySmoothing() throws visad.VisADException, java.rmi.RemoteException
applySmoothing
in class DisplayControlImpl
java.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problemprotected boolean checkFlag(int f)
checkFlag
in class DisplayControlImpl
f
- The flag to checkprotected void getMacroNames(java.util.List names, java.util.List labels)
getMacroNames
in class DisplayControlImpl
names
- List of macro nameslabels
- List of macro labelsprotected void addLabelMacros(java.lang.String template, java.util.List patterns, java.util.List values)
addLabelMacros
in class DisplayControlImpl
template
- templatepatterns
- The macro namesvalues
- The macro valuespublic void getLegendLabels(java.util.List labels, int legendType)
getLegendLabels
in class DisplayControlImpl
labels
- in/out list of labelslegendType
- The type of legend, BOTTOM_LEGEND or SIDE_LEGENDprotected java.lang.String formatLevel(java.lang.Object level)
level
- level to formatpublic void receiveShareData(Sharable from, java.lang.Object dataId, java.lang.Object[] data)
receiveShareData
in interface Sharable
receiveShareData
in class DisplayControlImpl
from
- other class.dataId
- type of sharingdata
- Array of data being shared. In this case, the first
(and only?) object in the array is the levelpublic java.awt.Container doMakeContents()
doMakeContents
in class DisplayControlImpl
public void getControlWidgets(java.util.List<ControlWidget> controlWidgets) throws visad.VisADException, java.rmi.RemoteException
getControlWidgets
in class DisplayControlImpl
controlWidgets
- list of control widgetsvisad.VisADException
- VisAD errorjava.rmi.RemoteException
- RMI errorprotected void displayUnitChanged(visad.Unit oldUnit, visad.Unit newUnit)
displayUnitChanged
in class DisplayControlImpl
oldUnit
- The old color unitnewUnit
- The new color unitprotected boolean shouldShowLevelWidget()
protected boolean shouldShowZSelector()
protected boolean shouldUseZPosition()
public void setIs2D(boolean v)
v
- true if it is 2Dpublic boolean getIs2D()
public void setLevelReadoutLabel(java.lang.String text)
text
- text for the level readoutpublic void setMultipleIsTopography(boolean v)
v
- true if second parameter is topographypublic boolean getMultipleIsTopography()
public void setParameterIsTopography(boolean v)
v
- true if second parameter is topographypublic boolean getParameterIsTopography()
public void setIgnoreVerticalDimension(boolean v)
v
- true if vertical dimension should be ignoredpublic boolean getIgnoreVerticalDimension()
public java.lang.String getLevelsLabel()
public boolean canExportData()
canExportData
in class DisplayControlImpl
protected visad.Data getDisplayedData() throws visad.VisADException, java.rmi.RemoteException
getDisplayedData
in class DisplayControlImpl
java.rmi.RemoteException
- problem reading remote datavisad.VisADException
- problem gettting dataprotected void applySkipFactor()
applySkipFactor
in class DisplayControlImpl
public void setPolygonMode(int v)
v
- polygon mode. Used by XML persistence.public int getPolygonMode()