Package ucar.unidata.idv
Class TransectViewManager
java.lang.Object
ucar.unidata.collab.SharableImpl
ucar.unidata.idv.ViewManager
ucar.unidata.idv.NavigatedViewManager
ucar.unidata.idv.TransectViewManager
- All Implemented Interfaces:
ActionListener,ItemListener,EventListener,Sharable,ControlListener,DisplayListener
A wrapper around a TransectDisplay display master.
Provides an interface for managing user interactions, gui creation, etc.
- Author:
- IDV development team
-
Nested Class Summary
Nested classes/interfaces inherited from class ucar.unidata.idv.ViewManager
ViewManager.MatrixCommand -
Field Summary
FieldsFields inherited from class ucar.unidata.idv.NavigatedViewManager
CMD_NAV_DOWN, CMD_NAV_HOME, CMD_NAV_LEFT, CMD_NAV_RIGHT, CMD_NAV_ROTATELEFT, CMD_NAV_ROTATERIGHT, CMD_NAV_SMALLDOWN, CMD_NAV_SMALLLEFT, CMD_NAV_SMALLRIGHT, CMD_NAV_SMALLROTATELEFT, CMD_NAV_SMALLROTATERIGHT, CMD_NAV_SMALLTILTDOWN, CMD_NAV_SMALLTILTUP, CMD_NAV_SMALLUP, CMD_NAV_SMALLZOOMIN, CMD_NAV_SMALLZOOMOUT, CMD_NAV_UP, CMD_NAV_ZOOMIN, CMD_NAV_ZOOMOUT, cursorReadoutWindow, PROP_VERTICALRANGE, SHARE_MATRIX, SHARE_RUBBERBAND, TRANSLATE_FACTOR, ZOOM_FACTORFields inherited from class ucar.unidata.idv.ViewManager
animationHolder, animationMenu, borderHighlightColor, borderWidth, clickToFocus, displayBounds, fullScreenWindow, highlightBorder, innerContents, lastActive, lastTimeActivated, lastTimePolled, logoPoses, nameLabel, normalBorder, PREF_3DCLIP, PREF_ANIREADOUT, PREF_BGCOLOR, PREF_BORDERCOLOR, PREF_CONTOUR_LABELALIGN, PREF_CONTOUR_LABELFONT, PREF_CONTOUR_LABELSIZE, PREF_DIMENSION, PREF_DISPLAYLISTCOLOR, PREF_DISPLAYLISTFONT, PREF_FGCOLOR, PREF_LOGO, PREF_LOGO_POSITION_OFFSET, PREF_LOGO_SCALE, PREF_LOGO_VISIBILITY, PREF_PREFIX, PREF_SHAREVIEWS, PREF_SHOWANIMATIONBOXES, PREF_SHOWBOTTOMLEGEND, PREF_SHOWCURSOR, PREF_SHOWDISPLAYLIST, PREF_SHOWSCALES, PREF_SHOWSIDELEGEND, PREF_SHOWTOOLBAR, PREF_SHOWTRANSECTSCALES, PREF_TOOLBARSFLOATABLE, PREF_TOPBAR_VISIBLE, PREF_WAITMSG, PREF_WIREFRAME, PROP_COMPONENT_RESIZED, showControlLegend, showControlMenu, TAG_COLORPAIR, TAG_COLORPAIRS, toolbarIds, toolbarNames, toolbars, windowBounds -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorTransectViewManager(ViewContext viewContext) Construct aTransectViewManagerfrom an IDVTransectViewManager(ViewContext viewContext, ViewDescriptor desc, String properties) Construct aTransectViewManagerwith the specified params. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddDisplayInfo(DisplayInfo displayInfo) Override base class method to force setting fast rendering to true.protected voidaddPropertiesComponents(JTabbedPane tabbedPane) Add a properties componentbooleanApply properties specific to this ViewManagerprotected ContainerMake the GUI contents.protected DisplayMasterFactory method to create the display masterCreate and return the list of menus for the menu bar.protected voidWhen we have rendered the first frame tell any TransectDrawingControls to show the display transectvoidCreate, if needed, and show a TransectDrawingControlGet the Transect that is implicitly defined by the x axisprotected voidgetInitialBooleanProperties(List props) Add to the initial Boolean propertiesGet the MaxDataDistance property.booleanGet the show cursor readout flagGet the Transect property.getTransect(boolean force) Return the transectHelper methodWhat type of view is thisbooleangetUseFastRendering(boolean b) This is called by display controls and allows us to force fast renderingprotected voidhandleBooleanPropertyChange(String id, boolean value) The BooleanProperty identified by the given id has changed.protected voidSet some propertiesvoidinitializeTransectMenu(JMenu transectMenu) Add items to trasnect menuvoidinitializeViewMenu(JMenu viewMenu) Initialize the view menuprotected voidinitWithInner(ViewManager that, boolean ignoreWindow) Initialize this object's state with the state from that.voidkeyWasTyped(KeyEvent keyEvent) Process the key eventprotected JMenuCreate and return the show menu.protected voidWe've panned or zoomed.voidsetLastActive(boolean b) Set last activevoidsetMaxDataDistance(Real value) Set the MaxDataDistance property.voidsetTransect(Transect value) Set the Transect property.voidsetTransect(Transect value, boolean force) Sets the transect.protected voidUpdate the name jlabel.protected voidShow the display transectMethods inherited from class ucar.unidata.idv.NavigatedViewManager
actionPerformed, animationTimeChanged, applyPreferences, checkHistoryMatrix, destroy, displayChanged, doMakeViewPointToolBar, doMakeZoomPanToolBar, getClipping, getDisplayCoordinateSystem, getLabelsVisible, getNavigatedDisplay, getShowCursor, getTransectLabelsVisible, getVerticalRange, getVerticalRangeUnit, getViewpointControl, handleControlChanged, hasViewpointControl, init, initToolBars, mouseFlicked, perspectiveViewChanged, receiveShareData, rubberBandBoxChanged, setClipping, setDisplayMaster, setLabelsVisible, setReadoutFormat, setShowCursor, setTransectLabelsVisible, setVerticalRange, setVerticalRangeUnit, setVerticalRangeUnitPreference, setWindow, verticalScaleChangedMethods inherited from class ucar.unidata.idv.ViewManager
addBooleanProperty, addCommand, addContextMenuItems, addDisplayInfos, addDisplayListener, addRemovable, addToolBar, addViewDescriptor, animationDriverChanged, animationOk, aspectSliderChanged, brighter, canBe, captureIslImage, checkForKmlImageCapture, checkToolBarVisibility, clearDisplays, clearImageGrabber, controlChanged, controlMoved, createCBMI, displayControlChanged, displayControlVisibilityChanged, displayDataChanged, doClose, doDrop, doMakeMenuBar, doMakeViewState, doPrintImage, doPublishImage, doPublishImage, doSaveImage, doSaveImage, doSaveImageInThread, doSaveState, ensureOnlyOneTimeDriver, fillLegends, fillLegendsInner, fillLegendsLater, findLoc, firstInitializeViewMenu, getAliases, getAnimation, getAnimationInfo, getAnimationStringVisible, getAnimationTimes, getAnimationWidget, getAniReadout, getAspectPropertiesComponent, getAspectRatio, getBackground, getBooleanPropertiesForPersistence, getBooleanProperty, getBooleanProperty, getBp, getBp, getClickToFocus, getCommandManager, getComponent, getContents, getContentsBorder, getControls, getControlsForLegend, getDefaultBackground, getDefaultForeground, getDisplayBounds, getDisplayConventions, getDisplayInfos, getDisplayInitMatrix, getDisplayListColor, getDisplayListFont, getDisplayMatrix, getDisplayRenderer, getDisplayWindow, getExternalAnimation, getExternalAnimationWidget, getForeground, getFullScreenHeight, getFullScreenWidth, getHasWindow, getHaveInitialized, getHighlightBorder, getIdv, getIdvUIManager, getInitDone, getInitViewStateName, getInnerContents, getIsActive, getIsDestroyed, getIsShared, getLastFrameDoneTime, getLastTimeActivated, getLegendOnLeft, getLegends, getLegendState, getLights, getLogoFile, getLogoPosition, getLogoScale, getLogoVisibility, getMainPropertiesComponent, getMaster, getMySize, getName, getNormalBorder, getPerspectiveView, getProjectionControl, getProjectionList, getProperties, getPropertiesComponent, getProperty, getPublishManager, getReallyHasWindow, getResourceManager, getShareViews, getShowAnimationBoxes, getShowBottomLegend, getShowControlLegend, getShowDisplayList, getShowScales, getShowSideLegend, getSideComponent, getSideDividerLocation, getSideLegend, getSideLegendContainer, getSkinProperties, getSkinProperty, getSplitPaneLocation, getStateManager, getStore, getTimeDriverTimes, getTimelineComponent, getToolbarsFloatable, getTopBarVisible, getUniqueId, getViewDescriptor, getViewManager, getVisibleGeoBounds, getVMManager, getWaitMessageVisible, getWireframe, guiInitializationDone, hasBooleanProperty, hasDisplayMaster, initAfterUnPersistence, initColorMenu, initDisplayMenu, initFromSkin, initializeBooleanProperty, initPreferences, initUI, initViewState, initViewStateMenu, initWith, initWith, initWith, insertSideLegend, isClassOk, isCompatibleWith, isCompatibleWith, isDefinedBy, isFullScreen, isInteractive, isVectorGraphicsFile, itemStateChanged, logException, makeBufferedImage, makeColorMenu, makeDropPanel, makeFrames, makeLogoPosition, makeSavedViewsMenu, makeViewMenu, makeViewStateMenu, notifyDisplayControls, okToImportDisplay, paintDisplayList, parseLogoPosition, parseProperties, printAspect, putProperty, reallyFillLegends, removeColorPair, removeDisplayInfo, resetAspectSliders, resetFullScreen, resetProjectionControl, setAliases, setAnimatedVisibility, setAnimationInfo, setAnimationStringVisible, setAniReadout, setAspectRatio, setBackground, setBooleanProperties, setBooleanPropertiesForPersistence, setBp, setClickToFocus, setColors, setContentsBorder, setCursorInDisplay, setDisplayBounds, setDisplayListColor, setDisplayListFont, setDisplayMatrix, setExternalAnimation, setForeground, setFullScreen, setFullScreenHeight, setFullScreenWidth, setHasWindow, setHighlightBorder, setIdv, setInitialSplitPaneLocation, setInitViewStateName, setIsShared, setLegendOnLeft, setLegendState, setLegendState, setLights, setLogoFile, setLogoPosition, setLogoScale, setLogoVisibility, setMasterActive, setMasterActive, setMasterInactive, setName, setProjectionFromData, setProperties, setProperty, setShareViews, setShowControlLegend, setShowDisplayList, setShowScales, setShowToolBars, setSideDividerLocation, setSideLegend, setSideLegendPosition, setSize, setSkinProperties, setSplitPaneLocation, setTimeDriverTimes, setTopBarVisible, setView, setViewDescriptor, setWaitMessageVisible, setWindowBounds, setWireframe, shouldDoThingsRightAway, showColorPairDialog, showHighlight, showLegend, showPropertiesDialog, showTimeline, showWindow, startImageCapture, toFront, toggleFullScreen, toString, turnOnOffAllDisplays, updateAnnotations, updateDisplayIfNeeded, updateDisplayList, useDisplay, useImages, useImages, writeImage, writeImage, writeImage, writeImage, writeImage, writeImage, writeImage, writeTestArchiveMethods inherited from class ucar.unidata.collab.SharableImpl
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, initSharable, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
-
Field Details
-
PREF_GRIDLINES
Preference for grid lines or 2d _- See Also:
-
-
Constructor Details
-
TransectViewManager
public TransectViewManager()Default constructor -
TransectViewManager
Construct aTransectViewManagerfrom an IDV- Parameters:
viewContext- Really the IDV
-
TransectViewManager
public TransectViewManager(ViewContext viewContext, ViewDescriptor desc, String properties) throws VisADException, RemoteException Construct aTransectViewManagerwith the specified params.- Parameters:
viewContext- context in which this MVM existsdesc-ViewDescriptorproperties- semicolon separated list of properties (can be null)- Throws:
VisADException- the VisAD exceptionRemoteException- the remote exception
-
-
Method Details
-
getTransectDisplay
Helper method- Returns:
- The transect display_
-
doMakeDisplayMaster
Factory method to create the display master- Overrides:
doMakeDisplayMasterin classViewManager- Returns:
- The TransectDisplay
- Throws:
RemoteException- On badnessVisADException- On badness
-
getUseFastRendering
public boolean getUseFastRendering(boolean b) This is called by display controls and allows us to force fast rendering- Overrides:
getUseFastRenderingin classViewManager- Parameters:
b- The displays fast rendering flag- Returns:
- true
-
addDisplayInfo
Override base class method to force setting fast rendering to true.- Overrides:
addDisplayInfoin classViewManager- Parameters:
displayInfo- The display info to add.- Returns:
- Was the addition successful
- Throws:
RemoteException- the remote exceptionVisADException- the VisAD exception
-
initWithInner
protected void initWithInner(ViewManager that, boolean ignoreWindow) throws VisADException, RemoteException Initialize this object's state with the state from that.- Overrides:
initWithInnerin classNavigatedViewManager- Parameters:
that- The other obejct to get state fromignoreWindow- If true then don't set the window size and location- Throws:
RemoteException- On badnessVisADException- On badness
-
updateNameLabel
protected void updateNameLabel()Update the name jlabel. Override base class method to add the transect name- Overrides:
updateNameLabelin classViewManager
-
handleBooleanPropertyChange
The BooleanProperty identified by the given id has changed. Apply the change to the display.- Overrides:
handleBooleanPropertyChangein classNavigatedViewManager- Parameters:
id- Id of the changed BooleanPropertyvalue- Its new value- Throws:
Exception- problem handling the change
-
applyProperties
public boolean applyProperties()Apply properties specific to this ViewManager- Overrides:
applyPropertiesin classNavigatedViewManager- Returns:
- true if successful
-
addPropertiesComponents
Add a properties component- Overrides:
addPropertiesComponentsin classNavigatedViewManager- Parameters:
tabbedPane- the tabbed pane
-
makeShowMenu
Create and return the show menu.- Overrides:
makeShowMenuin classNavigatedViewManager- Returns:
- The Show menu
-
getInitialBooleanProperties
Add to the initial Boolean properties- Overrides:
getInitialBooleanPropertiesin classNavigatedViewManager- Parameters:
props- list to add to
-
doMakeContents
Make the GUI contents.- Overrides:
doMakeContentsin classViewManager- Returns:
- The GUI contents
-
doneFirstFrame
protected void doneFirstFrame()When we have rendered the first frame tell any TransectDrawingControls to show the display transect- Overrides:
doneFirstFramein classViewManager
-
matrixChanged
protected void matrixChanged()We've panned or zoomed. Show the display transect- Overrides:
matrixChangedin classNavigatedViewManager
-
verticalRangeChanged
protected void verticalRangeChanged()Show the display transect- Overrides:
verticalRangeChangedin classNavigatedViewManager
-
initBooleanProperties
protected void initBooleanProperties()Set some properties- Overrides:
initBooleanPropertiesin classViewManager
-
initializeViewMenu
Initialize the view menu- Overrides:
initializeViewMenuin classViewManager- Parameters:
viewMenu- The view menu
-
doMakeMenuList
Create and return the list of menus for the menu bar. Just the map and view menu.- Overrides:
doMakeMenuListin classViewManager- Returns:
- List of menus.
-
initializeTransectMenu
Add items to trasnect menu- Parameters:
transectMenu- menu
-
setLastActive
public void setLastActive(boolean b) Set last active- Overrides:
setLastActivein classViewManager- Parameters:
b- true to show last active
-
editTransects
public void editTransects()Create, if needed, and show a TransectDrawingControl -
setTransect
Set the Transect property.- Parameters:
value- The new value for Transect
-
setTransect
Sets the transect.- Parameters:
value- the valueforce- the force
-
getTransect
Get the Transect property.- Returns:
- The Transect
-
getAxisTransect
Get the Transect that is implicitly defined by the x axis- Returns:
- The Transect
-
getTransect
Return the transect- Parameters:
force- If true then create one- Returns:
- The transect
-
getShowGridLines
public boolean getShowGridLines()Get the show cursor readout flag- Returns:
- The flag value
-
keyWasTyped
Process the key event- Overrides:
keyWasTypedin classViewManager- Parameters:
keyEvent- The key event
-
setMaxDataDistance
Set the MaxDataDistance property.- Parameters:
value- The new value for MaxDataDistance
-
getMaxDataDistance
Get the MaxDataDistance property.- Returns:
- The MaxDataDistance
-
getTypeName
What type of view is this- Overrides:
getTypeNamein classViewManager- Returns:
- The type of view
-