public abstract class LineProbeControl extends GridDisplayControl
DisplayControlImpl.SideLegendLabel| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HEIGHT_COORD
profile sharing property
|
protected java.lang.String |
positionText
Keep around for the label macros
|
static java.lang.String |
PRESSURE_COORD
profile sharing property
|
static java.lang.String |
SHARE_PROFILE
profile sharing property
|
CMD_CONTOURDIALOG, CMD_SETLEVELS, gridDataInstance, INITIAL_PROBE_EARTHLOCATION, log_, settingLevelcategories, 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, ZFUDGEAPPEARANCE_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_AVERAGEBOTTOM_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 |
|---|
LineProbeControl()
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addLabelMacros(java.lang.String template,
java.util.List patterns,
java.util.List values)
Add any macro name/value pairs.
|
protected boolean |
canDoProgressiveResolution()
Does this control support progressive resolution? Subclasses should
override.
|
void |
decreaseProbeSize()
Decrease the probe size
|
void |
doMakeProbe()
Default doMakeProbe method.
|
void |
doMakeProbe(java.awt.Color c)
Make the probe with the specific
Color. |
void |
doMakeProbe(java.awt.Color probeColor,
ViewDescriptor view)
Make the probe with the specific
Color and
ViewDescriptor. |
void |
doMakeProbe(ViewDescriptor view)
Make the probe with the specific
ViewDescriptor. |
javax.swing.JMenu |
doMakeProbeMenu(javax.swing.JMenu probeMenu)
Make a menu for controlling the probe size, shape and position.
|
protected void |
doMoveProbe()
Method called when probe is moved.
|
protected void |
getEditMenuItems(java.util.List items,
boolean forMenuBar)
Get edit menu items
|
visad.RealTuple |
getGridCenterPosition()
Get initial XY position from grid data.
|
visad.RealTuple |
getInitialLinePosition()
Get initial XY position from the screen
|
visad.RealTuple |
getInitialPosition()
Get the initial position of the probe set during unpersistence.
|
void |
getLegendLabels(java.util.List labels,
int legendType)
Append any label information to the list of labels.
|
protected void |
getMacroNames(java.util.List names,
java.util.List labels)
Add any macro name/label pairs
|
java.lang.String |
getMarker()
Get the Marker property.
|
visad.RealTuple |
getPosition()
Get the position of the probe.
|
boolean |
hasMapProjection()
_more_
|
void |
increaseProbeSize()
Increase the probe size
|
protected void |
probePositionChanged(visad.RealTuple position)
This gets called when either the user moves the probe point or
when we get a sharable event to move the probe point.
|
void |
projectionChanged()
Respond to a change in the display's projection.
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
Handle changes
|
void |
receiveShareData(Sharable from,
java.lang.Object dataId,
java.lang.Object[] data)
Method called when sharing is enabled.
|
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
|
void |
resetProbePosition()
Reset the position of the probe to the center.
|
void |
setMarker(java.lang.String value)
Set the Marker property.
|
void |
setPointSize(float value)
Set the PointSize property.
|
void |
setPosition(visad.RealTuple p)
Set the initial position of the probe.
|
void |
setProbePosition(double x,
double y)
Set the probe position from display x and y positions.
|
void |
setProbePosition(visad.RealTuple xy)
Set the probe position.
|
protected boolean |
shouldAddControlListener()
Signal base class to add this as a control listener
|
protected void |
updateLegendLabel()
This method is called to update the legend labels when
some state has changed in this control that is reflected in the labels.
|
void |
viewpointChanged()
_more_
|
actionPerformed, addTopographyMap, addTopographyMap, applyForecastHourMacro, convertColorRange, doExport, doMakeContourLevelControl, doMakeDataInstance, doMakeLevelControl, doMakeLevelControl, exportDisplayedData, getColorParamName, getColorRangeFromData, getColorRangeIndex, getColorUnit, getContourInfo, getCursorReadoutData, getCursorReadoutInner, getDataProjection, getDataRangeInColorUnits, getDefaultContourInfo, getDisplayUnit, getGridDataInstance, getInitialColorTable, getInitialRange, getRawDataUnit, haveMultipleFields, initializeDefaultContourInfo, isDisplayUnitAlsoColorUnit, normalizeRectangle, setLevel, setLevel, setLevelFromUser, shouldAddDisplayListeneractivateDisplays, addAttributedDisplayable, addAttributedDisplayable, addAttributedDisplayable, addAttributeFlags, addCheckBoxSettings, addDataChoice, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayMaster, addDisplaySettings, addNewData, addNoteText, addPropertiesComponents, addPropertyChangeListener, addRemovable, addSharable, addTimeModeWidget, addToControlContext, addToRangeMenu, addToRangeMenu, addToRangeMenu, addViewManager, appendDataChoices, applyAttributesToDisplayables, applyColor, applyColorScaleInfo, applyColorTable, applyColorUnit, applyContourInfo, applyDisplaySetting, applyDisplayUnit, applyLineWidth, applyPreferences, applyProperties, applyProperties, applyPropertyValues, applyRange, applySelectRange, applySkipFactor, applySmoothing, applyTextureQuality, applyTimeRange, applyZPosition, boundsClose, canBeDocked, canExportData, canSaveDataInCache, captureWindow, centerOnDisplay, changeColorUnit, changeDisplayUnit, checkBoundsChange, checkFlag, checkIfDataOk, checkImageSize, clearDataInstance, clearPrototype, clearViewManagers, close, colorUnitChanged, controlChanged, convertColorRange, convertRange, createDisplayListDisplayable, createIdvWindow, dataChanged, deactivateDisplays, debug, displayableToFront, displayChanged, displayControlFailed, displayUnitChanged, doApplyProperties, doInitialUpdateLegendAndList, doMakeBottomLegendComponent, doMakeChangeColorMenu, doMakeChangeColorMenu, doMakeChangeParameterMenuItem, doMakeColorControl, doMakeColorControl, doMakeColorScales, doMakeContents, doMakeMenuBar, doMakeMenuBarMenus, doMakePointSizeWidget, doMakeRemoveControl, doMakeSideLegendComponent, doMakeSkipFactorSlider, doMakeTextureSlider, doMakeVisibilityControl, doMakeWidgetComponent, doMakeWindow, doMakeZPositionSlider, doRemove, 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, getControlWidgets, getCursorReadout, getCursorReadoutInner, getData, getDataChoice, getDataChoices, getDataForDisplayList, getDataInstance, getDataInstance, getDataProjectionForMenu, getDataProjectionLabel, getDataSelection, getDataSources, getDataTimeRange, getDataTimeRange, getDataTimeSet, getDebugDetails, getDefaultColorScaleInfo, getDefaultDisplayListTemplate, getDefaultDistanceUnit, getDefaultFastRendering, getDefaultSamplingMode, getDefaultSamplingModeValue, getDefaultView, getDefaultViewDescriptor, getDefaultViewManager, getDetailsContents, getDisplayAltitudeType, getDisplayCategory, getDisplayCenter, getDisplayConventions, getDisplayedData, 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, hasTimeMacro, haveDataTimes, haveParameterDefaults, hide, hyperlinkUpdate, inGlobeDisplay, init, init, init, init, initAfterUnPersistence, initAfterUnPersistence, initAsPrototype, initAsTemplate, initBasic, initDone, 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, 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, updateLockButton, useSmoothingFactor, useZPosition, viewManagerChanged, viewManagerDestroyed, writeTestArchive, xxxsetDisplayActive, zSliderChangedboxToEarth, 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, userMessageapplySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialogclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTmpProperty, putTmpProperty, removeTmpPropertygetReceiveShareTime, getShareGroup, getSharing, getUniqueId, setReceiveShareTimepublic static final java.lang.String SHARE_PROFILE
public static final java.lang.String PRESSURE_COORD
public static final java.lang.String HEIGHT_COORD
protected java.lang.String positionText
public void doMakeProbe()
throws visad.VisADException,
java.rmi.RemoteException
java.rmi.RemoteException - Java RMI errorvisad.VisADException - VisAD Errorpublic void doMakeProbe(java.awt.Color c)
throws visad.VisADException,
java.rmi.RemoteException
Color.c - color for probe.java.rmi.RemoteException - Java RMI errorvisad.VisADException - VisAD Errorpublic void doMakeProbe(ViewDescriptor view) throws visad.VisADException, java.rmi.RemoteException
ViewDescriptor.view - view descriptorjava.rmi.RemoteException - Java RMI errorvisad.VisADException - VisAD Errorpublic void doMakeProbe(java.awt.Color probeColor,
ViewDescriptor view)
throws visad.VisADException,
java.rmi.RemoteException
Color and
ViewDescriptor.probeColor - color for the probeview - view descriptorjava.rmi.RemoteException - Java RMI errorvisad.VisADException - VisAD Errorpublic void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerpropertyChange in class DisplayControlImplevt - The eventpublic void resetProbePosition()
protected void getEditMenuItems(java.util.List items,
boolean forMenuBar)
getEditMenuItems in class DisplayControlImplitems - list of menu itemsforMenuBar - true if for the menu barpublic void setProbePosition(visad.RealTuple xy)
throws visad.VisADException,
java.rmi.RemoteException
xy - X and Y position of the probe.visad.VisADException - problem setting probe positionjava.rmi.RemoteException - problem setting probe position on remote displaypublic void setProbePosition(double x,
double y)
throws visad.VisADException,
java.rmi.RemoteException
x - X position of the probe.y - Y position of the probe.visad.VisADException - problem setting probe positionjava.rmi.RemoteException - problem setting probe position on remote displaypublic void setPosition(visad.RealTuple p)
p - positionpublic visad.RealTuple getPosition()
throws visad.VisADException,
java.rmi.RemoteException
java.rmi.RemoteException - Java RMI errorvisad.VisADException - VisAD Errorpublic visad.RealTuple getInitialPosition()
null if not set during
initialization.public void receiveShareData(Sharable from, java.lang.Object dataId, java.lang.Object[] data)
receiveShareData in interface SharablereceiveShareData in class DisplayControlImplfrom - Sharable that send the data.dataId - identifier for data to be shareddata - data to be shared.protected void doMoveProbe()
protected void probePositionChanged(visad.RealTuple position)
position - new position for the probe.public void projectionChanged()
projectionChanged in interface DisplayControlprojectionChanged in class DisplayControlImplpublic javax.swing.JMenu doMakeProbeMenu(javax.swing.JMenu probeMenu)
probeMenu - The menu to add topublic void increaseProbeSize()
public void decreaseProbeSize()
public void setPointSize(float value)
setPointSize in class DisplayControlImplvalue - The new value for PointSizepublic visad.RealTuple getGridCenterPosition()
throws visad.VisADException,
java.rmi.RemoteException
java.rmi.RemoteException - Java RMI problemvisad.VisADException - VisAD problempublic visad.RealTuple getInitialLinePosition()
throws visad.VisADException,
java.rmi.RemoteException
java.rmi.RemoteException - Java RMI problemvisad.VisADException - VisAD problempublic void setMarker(java.lang.String value)
value - The new value for Markerpublic java.lang.String getMarker()
protected void getMacroNames(java.util.List names,
java.util.List labels)
getMacroNames in class DisplayControlImplnames - 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 DisplayControlImpltemplate - templatepatterns - The macro namesvalues - The macro valuesprotected void updateLegendLabel()
updateLegendLabel in class DisplayControlImplpublic void getLegendLabels(java.util.List labels,
int legendType)
getLegendLabels in class DisplayControlImpllabels - in/out list of labelslegendType - The type of legend, BOTTOM_LEGEND or SIDE_LEGENDprotected boolean canDoProgressiveResolution()
DisplayControlImplcanDoProgressiveResolution in class GridDisplayControlprotected boolean shouldAddControlListener()
GridDisplayControlshouldAddControlListener in class GridDisplayControlpublic void viewpointChanged()
viewpointChanged in class DisplayControlImplpublic boolean hasMapProjection()
hasMapProjection in class DisplayControlImplpublic void relocateDisplay(ucar.unidata.geoloc.LatLonRect originalBounds,
ucar.unidata.geoloc.LatLonRect newBounds,
boolean useDataProjection)
relocateDisplay in class DisplayControlImploriginalBounds - The original bounds of the datasourcenewBounds - The relocated bounds of the datasource