Package ucar.unidata.idv
Class TimeHeightViewManager
java.lang.Object
ucar.unidata.collab.SharableImpl
ucar.unidata.idv.ViewManager
ucar.unidata.idv.TimeHeightViewManager
- All Implemented Interfaces:
ActionListener,ItemListener,EventListener,Sharable,ControlListener,DisplayListener
A wrapper around a TimeHeight 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.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 constructorTimeHeightViewManager(ViewContext viewContext) Construct aTimeHeightViewManagerfrom an IDVTimeHeightViewManager(ViewContext viewContext, ViewDescriptor desc, String properties) Construct aTimeHeightViewManagerwith the specified params. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddDisplayInfo(DisplayInfo displayInfo) Override base class method to force setting fast rendering to true.booleanDo we support animation?protected ContainerMake the GUI contents.protected DisplayMasterFactory method to create the display masterbooleanGet the clipping flagprotected voidgetInitialBooleanProperties(List props) Add to the intial Boolean propertiesbooleanGet the show cursor readout flagbooleanDon't show the side legendHelper methodbooleangetUseFastRendering(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 propertiesvoidinitializeViewMenu(JMenu viewMenu) Initialize the view menuprotected JMenuCreate and return the show menu.voidsetClipping(boolean value) Set the clipping flagMethods inherited from class ucar.unidata.idv.ViewManager
actionPerformed, addBooleanProperty, addCommand, addContextMenuItems, addDisplayInfos, addDisplayListener, addPropertiesComponents, addRemovable, addToolBar, addViewDescriptor, animationDriverChanged, animationTimeChanged, applyPreferences, applyProperties, aspectSliderChanged, brighter, canBe, captureIslImage, checkForKmlImageCapture, checkToolBarVisibility, clearDisplays, clearImageGrabber, controlChanged, controlMoved, createCBMI, destroy, displayChanged, displayControlChanged, displayControlVisibilityChanged, displayDataChanged, doClose, doDrop, doMakeMenuBar, doMakeMenuList, doMakeViewState, doneFirstFrame, 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, getDisplayCoordinateSystem, 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, getSideComponent, getSideDividerLocation, getSideLegend, getSideLegendContainer, getSkinProperties, getSkinProperty, getSplitPaneLocation, getStateManager, getStore, getTimeDriverTimes, getTimelineComponent, getToolbarsFloatable, getTopBarVisible, getTypeName, getUniqueId, getViewDescriptor, getViewManager, getVisibleGeoBounds, getVMManager, getWaitMessageVisible, getWireframe, guiInitializationDone, handleControlChanged, hasBooleanProperty, hasDisplayMaster, init, initAfterUnPersistence, initColorMenu, initDisplayMenu, initFromSkin, initializeBooleanProperty, initPreferences, initToolBars, initUI, initViewState, initViewStateMenu, initWith, initWith, initWith, initWithInner, insertSideLegend, isClassOk, isCompatibleWith, isCompatibleWith, isDefinedBy, isFullScreen, isInteractive, isVectorGraphicsFile, itemStateChanged, keyWasTyped, 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, setDisplayMaster, setDisplayMatrix, setExternalAnimation, setForeground, setFullScreen, setFullScreenHeight, setFullScreenWidth, setHasWindow, setHighlightBorder, setIdv, setInitialSplitPaneLocation, setInitViewStateName, setIsShared, setLastActive, 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, setWindow, setWindowBounds, setWireframe, shouldDoThingsRightAway, showColorPairDialog, showHighlight, showLegend, showPropertiesDialog, showTimeline, showWindow, startImageCapture, toFront, toggleFullScreen, toString, turnOnOffAllDisplays, updateAnnotations, updateDisplayIfNeeded, updateDisplayList, updateNameLabel, 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, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
-
Field Details
-
PREF_GRIDLINES
Preference for grid lines or 2d _- See Also:
-
-
Constructor Details
-
TimeHeightViewManager
public TimeHeightViewManager()Default constructor -
TimeHeightViewManager
Construct aTimeHeightViewManagerfrom an IDV- Parameters:
viewContext- Really the IDV
-
TimeHeightViewManager
public TimeHeightViewManager(ViewContext viewContext, ViewDescriptor desc, String properties) throws VisADException, RemoteException Construct aTimeHeightViewManagerwith 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
-
getTimeHeightDisplay
Helper method- Returns:
- The time-height display_
-
doMakeDisplayMaster
Factory method to create the display master- Overrides:
doMakeDisplayMasterin classViewManager- Returns:
- The TimeHeightDisplay
- 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
-
handleBooleanPropertyChange
The BooleanProperty identified by the given id has changed. Apply the change to the display.- Overrides:
handleBooleanPropertyChangein classViewManager- Parameters:
id- Id of the changed BooleanPropertyvalue- Its new value- Throws:
Exception- problem handling the change
-
makeShowMenu
Create and return the show menu.- Overrides:
makeShowMenuin classViewManager- Returns:
- The Show menu
-
getInitialBooleanProperties
Add to the intial Boolean properties- Overrides:
getInitialBooleanPropertiesin classViewManager- Parameters:
props- list to add to
-
doMakeContents
Make the GUI contents.- Overrides:
doMakeContentsin classViewManager- Returns:
- The GUI contents
-
initBooleanProperties
protected void initBooleanProperties()Set some properties- Overrides:
initBooleanPropertiesin classViewManager
-
initializeViewMenu
Initialize the view menu- Overrides:
initializeViewMenuin classViewManager- Parameters:
viewMenu- The view menu
-
getShowGridLines
public boolean getShowGridLines()Get the show cursor readout flag- Returns:
- The flag value
-
setClipping
public void setClipping(boolean value) Set the clipping flag- Parameters:
value- The value
-
getClipping
public boolean getClipping()Get the clipping flag- Returns:
- The flag value
-
animationOk
public boolean animationOk()Do we support animation?- Overrides:
animationOkin classViewManager- Returns:
- false
-
getShowSideLegend
public boolean getShowSideLegend()Don't show the side legend- Overrides:
getShowSideLegendin classViewManager- Returns:
- false
-