ucar.unidata.idv
Class TimeHeightViewManager

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

public class TimeHeightViewManager
extends ViewManager

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
static String PREF_GRIDLINES
          Preference for grid lines or 2d _
 
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_PREFIX, 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
 
Constructor Summary
TimeHeightViewManager()
          Default constructor
TimeHeightViewManager(ViewContext viewContext)
          Construct a TimeHeightViewManager from an IDV
TimeHeightViewManager(ViewContext viewContext, ViewDescriptor desc, String properties)
          Construct a TimeHeightViewManager with the specified params
 
Method Summary
 boolean addDisplayInfo(DisplayInfo displayInfo)
          Override base class method to force setting fast rendering to true.
protected  Container doMakeContents()
          Make the GUI contents.
protected  DisplayMaster doMakeDisplayMaster()
          Factory method to create the display master
 ArrayList doMakeMenuList()
          Create and return the list of menus for the menu bar.
 boolean getClipping()
          Get the clipping flag
protected  void getInitialBooleanProperties(List props)
          Add to the intial Boolean properties
 boolean getShowGridLines()
          Get the show cursor readout flag
 TimeHeightDisplay getTimeHeightDisplay()
          Helper method
 boolean getUseFastRendering(boolean b)
          This is called by display controls and allows us to force fast rendering
protected  void handleBooleanPropertyChange(String id, boolean value)
          The BooleanProperty identified byt he given id has changed.
protected  void initBooleanProperties()
          Set some properties
 void initializeViewMenu(JMenu viewMenu)
          Initialize the view menu
protected  JMenu makeShowMenu()
          Create and return the show menu.
 void setClipping(boolean value)
          Set the clipping flag
 
Methods inherited from class ucar.unidata.idv.ViewManager
actionPerformed, addBooleanProperty, addCommand, addContextMenuItems, addDisplayListener, addPropertiesComponents, addToolBar, addViewDescriptor, adjustSplitPane, animationOk, animationTimeChanged, applyPreferences, applyProperties, aspectSliderChanged, canBe, checkToolBarVisibility, clearDisplays, clearImageGrabber, controlChanged, createCBMI, destroy, displayChanged, displayControlChanged, displayControlVisibilityChanged, doClose, doDrop, doMakeMenuBar, 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, 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, getShowSideLegend, getSideComponent, getSideDividerLocation, getSideLegend, getSideLegendContainer, getSkinProperties, getSkinProperty, getStateManager, getStore, getTimelineComponent, getToolbarsFloatable, getTypeName, getUniqueId, getViewDescriptor, getViewManager, getVisibleGeoBounds, getVMManager, getWaitMessageVisible, getWireframe, guiInitializationDone, handleControlChanged, hasBooleanProperty, hasDisplayMaster, init, initAfterUnPersistence, initColorMenu, initDisplayMenu, initFromSkin, initPreferences, initToolBars, initUI, initViewStateMenu, initWith, initWith, initWithInner, insertSideLegend, isClassOk, isDefinedBy, isFullScreen, isInteractive, itemStateChanged, keyWasTyped, logException, makeColorMenu, makeDropPanel, makeFrames, makeSavedViewsMenu, 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_GRIDLINES

public static final String PREF_GRIDLINES
Preference for grid lines or 2d _

See Also:
Constant Field Values
Constructor Detail

TimeHeightViewManager

public TimeHeightViewManager()
Default constructor


TimeHeightViewManager

public TimeHeightViewManager(ViewContext viewContext)
Construct a TimeHeightViewManager from an IDV

Parameters:
viewContext - Really the IDV

TimeHeightViewManager

public TimeHeightViewManager(ViewContext viewContext,
                             ViewDescriptor desc,
                             String properties)
                      throws VisADException,
                             RemoteException
Construct a TimeHeightViewManager with the specified params

Parameters:
viewContext - context in which this MVM exists
desc - ViewDescriptor
properties - semicolon separated list of properties (can be null)
Throws:
RemoteException
VisADException
Method Detail

getTimeHeightDisplay

public TimeHeightDisplay getTimeHeightDisplay()
Helper method

Returns:
The time-height display_

doMakeDisplayMaster

protected DisplayMaster doMakeDisplayMaster()
                                     throws VisADException,
                                            RemoteException
Factory method to create the display master

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

getUseFastRendering

public boolean getUseFastRendering(boolean b)
This is called by display controls and allows us to force fast rendering

Overrides:
getUseFastRendering in class ViewManager
Parameters:
b - The displays fast rendering flag
Returns:
true

addDisplayInfo

public boolean addDisplayInfo(DisplayInfo displayInfo)
                       throws RemoteException,
                              VisADException
Override base class method to force setting fast rendering to true.

Overrides:
addDisplayInfo in class ViewManager
Parameters:
displayInfo - The display info to add.
Returns:
Was the addition successful
Throws:
RemoteException
VisADException

handleBooleanPropertyChange

protected void handleBooleanPropertyChange(String id,
                                           boolean value)
                                    throws Exception
The BooleanProperty identified byt he given id has changed. Apply the change to the display.

Overrides:
handleBooleanPropertyChange in class ViewManager
Parameters:
id - Id of the changed BooleanProperty
value - Its new value
Throws:
Exception - problem handeling the change

makeShowMenu

protected JMenu makeShowMenu()
Create and return the show menu.

Overrides:
makeShowMenu in class ViewManager
Returns:
The Show menu

getInitialBooleanProperties

protected void getInitialBooleanProperties(List props)
Add to the intial Boolean properties

Overrides:
getInitialBooleanProperties in class ViewManager
Parameters:
props - list to add to

doMakeContents

protected Container doMakeContents()
Make the GUI contents.

Overrides:
doMakeContents in class ViewManager
Returns:
The GUI contents

initBooleanProperties

protected void initBooleanProperties()
Set some properties

Overrides:
initBooleanProperties in class ViewManager

initializeViewMenu

public void initializeViewMenu(JMenu viewMenu)
Initialize the view menu

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

doMakeMenuList

public ArrayList doMakeMenuList()
Create and return the list of menus for the menu bar. Just the map and view menu.

Overrides:
doMakeMenuList in class ViewManager
Returns:
List of menus.

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