Package ucar.unidata.idv
Class CrossSectionViewManager
java.lang.Object
ucar.unidata.collab.SharableImpl
ucar.unidata.idv.ViewManager
ucar.unidata.idv.CrossSectionViewManager
- All Implemented Interfaces:
ActionListener
,ItemListener
,EventListener
,Sharable
,ControlListener
,DisplayListener
A wrapper around a Cross Section (XSDisplay) 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
FieldsModifier and TypeFieldDescriptionstatic final String
Preference for clipping at 3d box_static final String
Prefix for preferencesFields 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_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
ConstructorsConstructorDescriptionA paramterless ctor for XmlEncoder based decoding.CrossSectionViewManager
(ViewContext viewContext, ViewDescriptor desc, String properties) Create a CrossSectionViewManager with the given context, descriptor, object store and properties string.CrossSectionViewManager
(ViewContext viewContext, ViewDescriptor desc, String properties, AnimationInfo animationInfo) Create a CrossSectionViewManager with the given context, descriptor, object store, properties string and animation state. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Some user preferences have changed.protected Container
Create the GUI.protected DisplayMaster
Factory method for creating the display masterboolean
Get the 3d clipping flagprotected Color
Get the default background colorprotected Color
Get the default foreground colorprotected void
getInitialBooleanProperties
(List props) Get the intial BooleanProperty-sGet the component for setting properties on the display.boolean
Don't show the side legendWhat type of view is thisGet the cross section display that this view manager uses.protected void
handleBooleanPropertyChange
(String id, boolean value) The BooleanProperty identified byt he given id has changed.protected void
init()
Initialize this object.void
initializeViewMenu
(JMenu viewMenu) Initialize the view menuboolean
This was added to avoid calling doApplyProperties on this view if the Properties Dialog has not been instantiated.protected JMenu
Create and return the show menu.void
setClipping
(boolean value) Set the clipping flagvoid
setDisplayTitle
(String titlePart) Set the title shown in the gui by appending the given titlePart to the name of the XSDisplay.void
setNewDisplayTitle
(String newTitle) Make this String the new title on the displayMethods inherited from class ucar.unidata.idv.ViewManager
actionPerformed, addBooleanProperty, addCommand, addContextMenuItems, addDisplayInfo, addDisplayInfos, addDisplayListener, addPropertiesComponents, addRemovable, addToolBar, addViewDescriptor, animationDriverChanged, animationOk, animationTimeChanged, 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, 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, getProperty, getPublishManager, getReallyHasWindow, getResourceManager, getShareViews, getShowAnimationBoxes, getShowBottomLegend, getShowControlLegend, getShowDisplayList, getShowScales, getSideComponent, getSideDividerLocation, getSideLegend, getSideLegendContainer, getSkinProperties, getSkinProperty, getSplitPaneLocation, getStateManager, getStore, getTimeDriverTimes, getTimelineComponent, getToolbarsFloatable, getTopBarVisible, getUniqueId, getUseFastRendering, getViewDescriptor, getViewManager, getVisibleGeoBounds, getVMManager, getWaitMessageVisible, getWireframe, guiInitializationDone, handleControlChanged, hasBooleanProperty, hasDisplayMaster, initAfterUnPersistence, initBooleanProperties, 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, writeTestArchive
Methods 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_PREFIX
Prefix for preferences- See Also:
-
PREF_CLIP
Preference for clipping at 3d box_- See Also:
-
-
Constructor Details
-
CrossSectionViewManager
public CrossSectionViewManager()A paramterless ctor for XmlEncoder based decoding. -
CrossSectionViewManager
public CrossSectionViewManager(ViewContext viewContext, ViewDescriptor desc, String properties) throws VisADException, RemoteException Create a CrossSectionViewManager with the given context, descriptor, object store and properties string.- Parameters:
viewContext
- Provides a context for the VM to be in.desc
- The ViewDescriptor that identifies this VMproperties
- A set of ";" delimited name-value pairs.- Throws:
VisADException
- the VisAD exceptionRemoteException
- the remote exception
-
CrossSectionViewManager
public CrossSectionViewManager(ViewContext viewContext, ViewDescriptor desc, String properties, AnimationInfo animationInfo) throws VisADException, RemoteException Create a CrossSectionViewManager with the given context, descriptor, object store, properties string and animation state.- Parameters:
viewContext
- Provides a context for the VM to be in.desc
- The ViewDescriptor that identifies this VMproperties
- A set of ";" delimited name-value pairs.animationInfo
- Initial animation properties- Throws:
VisADException
- the VisAD exceptionRemoteException
- the remote exception
-
-
Method Details
-
initializeViewMenu
Initialize the view menu- Overrides:
initializeViewMenu
in classViewManager
- Parameters:
viewMenu
- the view menu
-
doMakeDisplayMaster
Factory method for creating the display master- Overrides:
doMakeDisplayMaster
in classViewManager
- Returns:
- The Display Master
- Throws:
RemoteException
- On badnessVisADException
- On badness
-
init
Initialize this object. This creates and initializes theXSDisplay
.- Overrides:
init
in classViewManager
- Throws:
VisADException
- the VisAD exceptionRemoteException
- the remote exception
-
isPropsComponentInstantiated
public boolean isPropsComponentInstantiated()This was added to avoid calling doApplyProperties on this view if the Properties Dialog has not been instantiated. This can happen for example if the user does Edit -> Change Display Unit- Returns:
- the propsComponentInstantiated
-
getPropertiesComponent
Get the component for setting properties on the display.- Overrides:
getPropertiesComponent
in classViewManager
- Returns:
- the component
-
getDefaultForeground
Get the default foreground color- Overrides:
getDefaultForeground
in classViewManager
- Returns:
- the color
-
getDefaultBackground
Get the default background color- Overrides:
getDefaultBackground
in classViewManager
- Returns:
- the color
-
applyPreferences
public void applyPreferences()Some user preferences have changed.- Overrides:
applyPreferences
in classViewManager
-
getXSDisplay
Get the cross section display that this view manager uses.- Returns:
- XSDisplay
-
setClipping
public void setClipping(boolean value) Set the clipping flag- Parameters:
value
- The value
-
getClipping
public boolean getClipping()Get the 3d clipping flag- Returns:
- The flag value
-
doMakeContents
Create the GUI. This is a titled border around the XSDisplay.- Overrides:
doMakeContents
in classViewManager
- Returns:
- The GUI
-
setDisplayTitle
Set the title shown in the gui by appending the given titlePart to the name of the XSDisplay.- Parameters:
titlePart
- The suffix
-
setNewDisplayTitle
Make this String the new title on the display- Parameters:
newTitle
- The new title
-
getShowSideLegend
public boolean getShowSideLegend()Don't show the side legend- Overrides:
getShowSideLegend
in classViewManager
- Returns:
- false
-
getTypeName
What type of view is this- Overrides:
getTypeName
in classViewManager
- Returns:
- The type of view
-
handleBooleanPropertyChange
The BooleanProperty identified byt he given id has changed. Apply the change to the display.- Overrides:
handleBooleanPropertyChange
in classViewManager
- Parameters:
id
- Id of the changed BooleanPropertyvalue
- Its new value- Throws:
Exception
- problem handeling the change
-
getInitialBooleanProperties
Get the intial BooleanProperty-s- Overrides:
getInitialBooleanProperties
in classViewManager
- Parameters:
props
- list to add them to.
-
makeShowMenu
Create and return the show menu.- Overrides:
makeShowMenu
in classViewManager
- Returns:
- The Show menu
-