public class CrossSectionViewManager extends ViewManager
ViewManager.MatrixCommand
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PREF_CLIP
Preference for clipping at 3d box_
|
static java.lang.String |
PREF_PREFIX
Prefix for preferences
|
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 and Description |
---|
CrossSectionViewManager()
A paramterless ctor for XmlEncoder based decoding.
|
CrossSectionViewManager(ViewContext viewContext,
ViewDescriptor desc,
java.lang.String properties)
Create a CrossSectionViewManager with the given context, descriptor, object store
and properties string.
|
CrossSectionViewManager(ViewContext viewContext,
ViewDescriptor desc,
java.lang.String properties,
AnimationInfo animationInfo)
Create a CrossSectionViewManager with the given context, descriptor, object store,
properties string and animation state.
|
Modifier and Type | Method and Description |
---|---|
void |
applyPreferences()
Some user preferences have changed.
|
protected java.awt.Container |
doMakeContents()
Create the GUI.
|
protected DisplayMaster |
doMakeDisplayMaster()
Factory method for creating the display master
|
boolean |
getClipping()
Get the 3d clipping flag
|
protected java.awt.Color |
getDefaultBackground()
Get the default background color
|
protected java.awt.Color |
getDefaultForeground()
Get the default foreground color
|
protected void |
getInitialBooleanProperties(java.util.List props)
Get the intial BooleanProperty-s
|
javax.swing.JComponent |
getPropertiesComponent()
Get the component for setting properties on the display.
|
boolean |
getShowSideLegend()
Don't show the side legend
|
java.lang.String |
getTypeName()
What type of view is this
|
XSDisplay |
getXSDisplay()
Get the cross section display that this view manager uses.
|
protected void |
handleBooleanPropertyChange(java.lang.String id,
boolean value)
The BooleanProperty identified byt he given id has changed.
|
protected void |
init()
Initialize this object.
|
void |
initializeViewMenu(javax.swing.JMenu viewMenu)
Initialize the view menu
|
boolean |
isPropsComponentInstantiated()
This was added to avoid calling doApplyProperties on this view
if the Properties Dialog has not been instantiated.
|
protected javax.swing.JMenu |
makeShowMenu()
Create and return the show menu.
|
void |
setClipping(boolean value)
Set the clipping flag
|
void |
setDisplayTitle(java.lang.String titlePart)
Set the title shown in the gui by appending the given
titlePart to the name of the XSDisplay.
|
void |
setNewDisplayTitle(java.lang.String newTitle)
Make this String the new title on the display
|
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
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
public static final java.lang.String PREF_PREFIX
public static final java.lang.String PREF_CLIP
public CrossSectionViewManager()
public CrossSectionViewManager(ViewContext viewContext, ViewDescriptor desc, java.lang.String properties) throws visad.VisADException, java.rmi.RemoteException
viewContext
- Provides a context for the VM to be in.desc
- The ViewDescriptor that identifies this VMproperties
- A set of ";" delimited name-value pairs.visad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionpublic CrossSectionViewManager(ViewContext viewContext, ViewDescriptor desc, java.lang.String properties, AnimationInfo animationInfo) throws visad.VisADException, java.rmi.RemoteException
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 propertiesvisad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionpublic void initializeViewMenu(javax.swing.JMenu viewMenu)
initializeViewMenu
in class ViewManager
viewMenu
- the view menuprotected DisplayMaster doMakeDisplayMaster() throws visad.VisADException, java.rmi.RemoteException
doMakeDisplayMaster
in class ViewManager
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected void init() throws visad.VisADException, java.rmi.RemoteException
XSDisplay
.init
in class ViewManager
visad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionpublic boolean isPropsComponentInstantiated()
public javax.swing.JComponent getPropertiesComponent()
getPropertiesComponent
in class ViewManager
protected java.awt.Color getDefaultForeground()
getDefaultForeground
in class ViewManager
protected java.awt.Color getDefaultBackground()
getDefaultBackground
in class ViewManager
public void applyPreferences()
applyPreferences
in class ViewManager
public XSDisplay getXSDisplay()
public void setClipping(boolean value)
value
- The valuepublic boolean getClipping()
protected java.awt.Container doMakeContents()
doMakeContents
in class ViewManager
public void setDisplayTitle(java.lang.String titlePart)
titlePart
- The suffixpublic void setNewDisplayTitle(java.lang.String newTitle)
newTitle
- The new titlepublic boolean getShowSideLegend()
getShowSideLegend
in class ViewManager
public java.lang.String getTypeName()
getTypeName
in class ViewManager
protected void handleBooleanPropertyChange(java.lang.String id, boolean value) throws java.lang.Exception
handleBooleanPropertyChange
in class ViewManager
id
- Id of the changed BooleanPropertyvalue
- Its new valuejava.lang.Exception
- problem handeling the changeprotected void getInitialBooleanProperties(java.util.List props)
getInitialBooleanProperties
in class ViewManager
props
- list to add them to.protected javax.swing.JMenu makeShowMenu()
makeShowMenu
in class ViewManager