ucar.unidata.idv
Class SoundingViewManager

java.lang.Object
  extended by ucar.unidata.collab.SharableImpl
      extended by ucar.unidata.idv.ViewManager
          extended by ucar.unidata.idv.SoundingViewManager
All Implemented Interfaces:
ActionListener, ItemListener, EventListener, Sharable, AerologicalDisplayConstants, ControlListener, DisplayListener

public class SoundingViewManager
extends ViewManager
implements AerologicalDisplayConstants

A wrapper around a sounding display (AerologicalDisplay) like a Skew-T 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
static String PREF_PREFIX
          Prefix for preferences
 
Fields inherited from class ucar.unidata.idv.ViewManager
animationHolder, animationMenu, borderHighlightColor, borderWidth, clickToFocus, displayBounds, fullScreenWindow, highlightBorder, innerContents, lastActive, lastTimeActivated, nameLabel, normalBorder, PREF_3DCLIP, PREF_ANIREADOUT, PREF_BGCOLOR, PREF_BORDERCOLOR, PREF_DIMENSION, PREF_DISPLAYLISTCOLOR, PREF_DISPLAYLISTFONT, PREF_FGCOLOR, PREF_SHAREVIEWS, PREF_SHOWANIMATIONBOXES, PREF_SHOWBOTTOMLEGEND, PREF_SHOWCURSOR, PREF_SHOWDISPLAYLIST, PREF_SHOWSCALES, PREF_SHOWSIDELEGEND, PREF_SHOWTOOLBAR, PREF_SHOWTRANSECTSCALES, PREF_TOOLBARSFLOATABLE, PREF_WAITMSG, PREF_WIREFRAME, showControlLegend, showControlMenu, TAG_COLORPAIR, TAG_COLORPAIRS, toolbarIds, toolbarNames, toolbars, windowBounds
 
Fields inherited from interface ucar.unidata.view.sounding.AerologicalDisplayConstants
EMAGRAM_DISPLAY, SKEWT_DISPLAY, STUVE_DISPLAY
 
Constructor Summary
SoundingViewManager()
          A paramterless ctor for XmlEncoder based decoding.
SoundingViewManager(ViewContext viewContext, DisplayMaster master, ViewDescriptor viewDescriptor, String properties)
          Create a SoundingViewManager with the given context, display, descriptor, properties string
SoundingViewManager(ViewContext viewContext, ViewDescriptor desc, String properties)
          Create a SoundingViewManager with the given context, descriptor, object store and properties string.
SoundingViewManager(ViewContext viewContext, ViewDescriptor desc, String properties, AnimationInfo animationInfo)
          Create a SoundingViewManager with the given context, descriptor, object store, properties string and animation state
 
Method Summary
protected  void addPropertiesComponents(JTabbedPane tabbedPane)
          Add a JTabbedPane to the properties component
 boolean animationOk()
          Do we support animation?
 boolean applyProperties()
          Apply the properties
protected  DisplayMaster doMakeDisplayMaster()
          Factory method for creating the display master
 String getChartType()
          Get the chart type.
 boolean getDryAdiabatVisibility()
          Get the dry adiabat visibility
 boolean getSaturationAdiabatVisibility()
          Get the saturated adiabat visibility
 boolean getSaturationMixingRatioVisibility()
          Get the saturation mixing ratio visibility
 boolean getShowSideLegend()
          Don't show the side legend
static String getTypeLabel(String chartType)
          Get the label for the type of display
 String getTypeName()
          What type of view is this
 void initializeViewMenu(JMenu viewMenu)
          Initialize the view menu
 void setChartType(String value)
          Set the chart type.
 void setDryAdiabatVisibility(boolean value)
          Set the dry adiabat visibility
 void setSaturationAdiabatVisibility(boolean value)
          Set the saturated adiabat visibility
 void setSaturationMixingRatioVisibility(boolean value)
          Set the saturation mixing ratio visibility
 void setSoundingDisplay(AerologicalDisplay ad)
          Set the sounding display
 
Methods inherited from class ucar.unidata.idv.ViewManager
actionPerformed, addBooleanProperty, addCommand, addContextMenuItems, addDisplayInfo, addDisplayListener, addToolBar, addViewDescriptor, adjustSplitPane, animationTimeChanged, applyPreferences, aspectSliderChanged, canBe, checkToolBarVisibility, clearDisplays, clearImageGrabber, controlChanged, createCBMI, destroy, displayChanged, displayControlChanged, displayControlVisibilityChanged, doClose, doDrop, doMakeContents, doMakeMenuBar, doMakeMenuList, doneFirstFrame, doPrintImage, doPublishImage, doPublishImage, doSaveImage, doSaveImage, doSaveImageInThread, doSaveState, fillLegends, fillLegendsInner, fillLegendsLater, firstInitializeViewMenu, getAliases, getAnimation, getAnimationInfo, getAnimationStringVisible, getAnimationTimes, getAnimationWidget, getAniReadout, getAspectPropertiesComponent, getAspectRatio, getBackground, getBooleanPropertiesForPersistence, getBooleanProperty, getBp, getClickToFocus, getCommandManager, getComponent, getContents, getContentsBorder, getControls, getControlsForLegend, getDefaultBackground, getDefaultForeground, getDisplayBounds, getDisplayConventions, getDisplayInfos, getDisplayListColor, getDisplayListFont, getDisplayMatrix, getDisplayRenderer, getDisplayWindow, getExternalAnimation, getExternalAnimationWidget, getForeground, getFullScreenHeight, getFullScreenWidth, getHasWindow, getHaveInitialized, getHighlightBorder, getIdv, getIdvUIManager, getInitDone, getInitialBooleanProperties, getInnerContents, getIsActive, getIsDestroyed, getIsShared, getLastFrameDoneTime, getLastTimeActivated, getLegendOnLeft, getLegendState, getMainPropertiesComponent, getMaster, getMySize, getName, getNormalBorder, getPerspectiveView, getProjectionControl, getProjectionList, getProperties, getPropertiesComponent, getProperty, getPublishManager, getReallyHasWindow, getResourceManager, getShareViews, getShowAnimationBoxes, getShowBottomLegend, getShowControlLegend, getShowDisplayList, getSideComponent, getSideDividerLocation, getSideLegend, getSideLegendContainer, getSkinProperties, getSkinProperty, getStateManager, getStore, getTimelineComponent, getToolbarsFloatable, getUniqueId, getUseFastRendering, getViewDescriptor, getViewManager, getVisibleGeoBounds, getVMManager, getWaitMessageVisible, getWireframe, guiInitializationDone, handleBooleanPropertyChange, handleControlChanged, hasBooleanProperty, hasDisplayMaster, init, initAfterUnPersistence, initBooleanProperties, initColorMenu, initDisplayMenu, initFromSkin, initPreferences, initToolBars, initUI, initViewStateMenu, initWith, initWith, initWithInner, insertSideLegend, isClassOk, isDefinedBy, isFullScreen, isInteractive, itemStateChanged, keyWasTyped, logException, makeColorMenu, makeDropPanel, makeFrames, makeSavedViewsMenu, makeShowMenu, makeViewMenu, makeViewStateMenu, notifyDisplayControls, okToImportDisplay, parseProperties, 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, setIsShared, setLastActive, setLegendOnLeft, setLegendState, setLegendState, setMasterActive, setMasterActive, setMasterInactive, setName, setProperties, setShareViews, setShowControlLegend, setShowDisplayList, setShowToolBars, setSideDividerLocation, setSideLegend, setSideLegendPosition, setSize, setSkinProperties, setViewDescriptor, setWaitMessageVisible, setWindow, setWindowBounds, setWireframe, showColorPairDialog, showHighlight, showLegend, showPropertiesDialog, showTimeline, showWindow, startImageCapture, toFront, toggleFullScreen, toString, turnOnOffAllDisplays, 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, getSharablePropertiesComponent, getShareGroup, getSharing, initSharable, receiveShareData, removeSharable, setShareGroup, setSharing, setUniqueId, showSharableDialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PREF_PREFIX

public static final String PREF_PREFIX
Prefix for preferences

See Also:
Constant Field Values
Constructor Detail

SoundingViewManager

public SoundingViewManager()
A paramterless ctor for XmlEncoder based decoding.


SoundingViewManager

public SoundingViewManager(ViewContext viewContext,
                           ViewDescriptor desc,
                           String properties)
                    throws VisADException,
                           RemoteException
Create a SoundingViewManager 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 VM
properties - A set of ";" delimited name-value pairs.
Throws:
RemoteException
VisADException

SoundingViewManager

public SoundingViewManager(ViewContext viewContext,
                           ViewDescriptor desc,
                           String properties,
                           AnimationInfo animationInfo)
                    throws VisADException,
                           RemoteException
Create a SoundingViewManager 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 VM
properties - A set of ";" delimited name-value pairs.
animationInfo - Initial animation properties
Throws:
RemoteException
VisADException

SoundingViewManager

public SoundingViewManager(ViewContext viewContext,
                           DisplayMaster master,
                           ViewDescriptor viewDescriptor,
                           String properties)
                    throws VisADException,
                           RemoteException
Create a SoundingViewManager with the given context, display, descriptor, properties string

Parameters:
viewContext - Provides a context for the VM to be in.
master - display master
viewDescriptor - The ViewDescriptor that identifies this VM
properties - A set of ";" delimited name-value pairs.
Throws:
RemoteException
VisADException
Method Detail

initializeViewMenu

public void initializeViewMenu(JMenu viewMenu)
Initialize the view menu

Overrides:
initializeViewMenu in class ViewManager
Parameters:
viewMenu - the view menu

doMakeDisplayMaster

protected DisplayMaster doMakeDisplayMaster()
                                     throws VisADException,
                                            RemoteException
Factory method for creating the display master

Overrides:
doMakeDisplayMaster in class ViewManager
Returns:
The Display Master
Throws:
RemoteException - On badness
VisADException - On badness

setSoundingDisplay

public void setSoundingDisplay(AerologicalDisplay ad)
Set the sounding display

Parameters:
ad - the sounding display

getShowSideLegend

public boolean getShowSideLegend()
Don't show the side legend

Overrides:
getShowSideLegend in class ViewManager
Returns:
false

getTypeName

public String getTypeName()
What type of view is this

Overrides:
getTypeName in class ViewManager
Returns:
The type of view

animationOk

public boolean animationOk()
Do we support animation?

Overrides:
animationOk in class ViewManager
Returns:
false

addPropertiesComponents

protected void addPropertiesComponents(JTabbedPane tabbedPane)
Add a JTabbedPane to the properties component

Overrides:
addPropertiesComponents in class ViewManager
Parameters:
tabbedPane - the pane to add

applyProperties

public boolean applyProperties()
Apply the properties

Overrides:
applyProperties in class ViewManager
Returns:
true if successful

getTypeLabel

public static String getTypeLabel(String chartType)
Get the label for the type of display

Parameters:
chartType - type name
Returns:
the label

getChartType

public String getChartType()
Get the chart type.

Returns:
chart type

setChartType

public void setChartType(String value)
Set the chart type.

Parameters:
value - chart type

getSaturationAdiabatVisibility

public boolean getSaturationAdiabatVisibility()
Get the saturated adiabat visibility

Returns:
true if visiable

setSaturationAdiabatVisibility

public void setSaturationAdiabatVisibility(boolean value)
Set the saturated adiabat visibility

Parameters:
value - true if visiable

getDryAdiabatVisibility

public boolean getDryAdiabatVisibility()
Get the dry adiabat visibility

Returns:
true if visiable

setDryAdiabatVisibility

public void setDryAdiabatVisibility(boolean value)
Set the dry adiabat visibility

Parameters:
value - true if visiable

getSaturationMixingRatioVisibility

public boolean getSaturationMixingRatioVisibility()
Get the saturation mixing ratio visibility

Returns:
true if visiable

setSaturationMixingRatioVisibility

public void setSaturationMixingRatioVisibility(boolean value)
Set the saturation mixing ratio visibility

Parameters:
value - true if visiable