public class TransectViewManager extends NavigatedViewManager
ViewManager.MatrixCommand
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PREF_GRIDLINES
Preference for grid lines or 2d _
|
CMD_NAV_DOWN, CMD_NAV_HOME, CMD_NAV_LEFT, CMD_NAV_RIGHT, CMD_NAV_ROTATELEFT, CMD_NAV_ROTATERIGHT, CMD_NAV_SMALLDOWN, CMD_NAV_SMALLLEFT, CMD_NAV_SMALLRIGHT, CMD_NAV_SMALLROTATELEFT, CMD_NAV_SMALLROTATERIGHT, CMD_NAV_SMALLTILTDOWN, CMD_NAV_SMALLTILTUP, CMD_NAV_SMALLUP, CMD_NAV_SMALLZOOMIN, CMD_NAV_SMALLZOOMOUT, CMD_NAV_UP, CMD_NAV_ZOOMIN, CMD_NAV_ZOOMOUT, cursorReadoutWindow, PROP_VERTICALRANGE, SHARE_MATRIX, SHARE_RUBBERBAND, TRANSLATE_FACTOR, ZOOM_FACTOR
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 and Description |
---|
TransectViewManager()
Default constructor
|
TransectViewManager(ViewContext viewContext)
Construct a
TransectViewManager from an IDV |
TransectViewManager(ViewContext viewContext,
ViewDescriptor desc,
java.lang.String properties)
Construct a
TransectViewManager with the specified params. |
Modifier and Type | Method and Description |
---|---|
boolean |
addDisplayInfo(DisplayInfo displayInfo)
Override base class method to force setting fast rendering to true.
|
protected void |
addPropertiesComponents(javax.swing.JTabbedPane tabbedPane)
Add a properties component
|
boolean |
applyProperties()
Apply properties specific to this ViewManager
|
protected java.awt.Container |
doMakeContents()
Make the GUI contents.
|
protected DisplayMaster |
doMakeDisplayMaster()
Factory method to create the display master
|
java.util.ArrayList |
doMakeMenuList()
Create and return the list of menus for the menu bar.
|
protected void |
doneFirstFrame()
When we have rendered the first frame tell any TransectDrawingControls
to show the display transect
|
void |
editTransects()
Create, if needed, and show a TransectDrawingControl
|
Transect |
getAxisTransect()
Get the Transect that is implicitly defined by the x axis
|
protected void |
getInitialBooleanProperties(java.util.List props)
Add to the initial Boolean properties
|
visad.Real |
getMaxDataDistance()
Get the MaxDataDistance property.
|
boolean |
getShowGridLines()
Get the show cursor readout flag
|
Transect |
getTransect()
Get the Transect property.
|
Transect |
getTransect(boolean force)
Return the transect
|
TransectDisplay |
getTransectDisplay()
Helper method
|
java.lang.String |
getTypeName()
What type of view is this
|
boolean |
getUseFastRendering(boolean b)
This is called by display controls and allows us to force fast rendering
|
protected void |
handleBooleanPropertyChange(java.lang.String id,
boolean value)
The BooleanProperty identified by the given id has changed.
|
protected void |
initBooleanProperties()
Set some properties
|
void |
initializeTransectMenu(javax.swing.JMenu transectMenu)
Add items to trasnect menu
|
void |
initializeViewMenu(javax.swing.JMenu viewMenu)
Initialize the view menu
|
protected void |
initWithInner(ViewManager that,
boolean ignoreWindow)
Initialize this object's state with the state from that.
|
void |
keyWasTyped(java.awt.event.KeyEvent keyEvent)
Process the key event
|
protected javax.swing.JMenu |
makeShowMenu()
Create and return the show menu.
|
protected void |
matrixChanged()
We've panned or zoomed.
|
void |
setLastActive(boolean b)
Set last active
|
void |
setMaxDataDistance(visad.Real value)
Set the MaxDataDistance property.
|
void |
setTransect(Transect value)
Set the Transect property.
|
void |
setTransect(Transect value,
boolean force)
Sets the transect.
|
protected void |
updateNameLabel()
Update the name jlabel.
|
protected void |
verticalRangeChanged()
Show the display transect
|
actionPerformed, animationTimeChanged, applyPreferences, checkHistoryMatrix, destroy, displayChanged, doMakeViewPointToolBar, doMakeZoomPanToolBar, getClipping, getDisplayCoordinateSystem, getLabelsVisible, getNavigatedDisplay, getShowCursor, getTransectLabelsVisible, getVerticalRange, getVerticalRangeUnit, getViewpointControl, handleControlChanged, hasViewpointControl, init, initToolBars, mouseFlicked, perspectiveViewChanged, receiveShareData, rubberBandBoxChanged, setClipping, setDisplayMaster, setLabelsVisible, setReadoutFormat, setShowCursor, setTransectLabelsVisible, setVerticalRange, setVerticalRangeUnit, setVerticalRangeUnitPreference, setWindow, verticalScaleChanged
addBooleanProperty, addCommand, addContextMenuItems, addDisplayInfos, addDisplayListener, addRemovable, addToolBar, addViewDescriptor, animationDriverChanged, animationOk, aspectSliderChanged, brighter, canBe, captureIslImage, checkForKmlImageCapture, checkToolBarVisibility, clearDisplays, clearImageGrabber, controlChanged, controlMoved, createCBMI, displayControlChanged, displayControlVisibilityChanged, displayDataChanged, doClose, doDrop, doMakeMenuBar, doMakeViewState, 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, 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, getShowSideLegend, getSideComponent, getSideDividerLocation, getSideLegend, getSideLegendContainer, getSkinProperties, getSkinProperty, getSplitPaneLocation, getStateManager, getStore, getTimeDriverTimes, getTimelineComponent, getToolbarsFloatable, getTopBarVisible, getUniqueId, getViewDescriptor, getViewManager, getVisibleGeoBounds, getVMManager, getWaitMessageVisible, getWireframe, guiInitializationDone, hasBooleanProperty, hasDisplayMaster, initAfterUnPersistence, initColorMenu, initDisplayMenu, initFromSkin, initializeBooleanProperty, initPreferences, initUI, initViewState, initViewStateMenu, initWith, initWith, initWith, insertSideLegend, isClassOk, isCompatibleWith, isCompatibleWith, isDefinedBy, isFullScreen, isInteractive, isVectorGraphicsFile, itemStateChanged, 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, setDisplayMatrix, setExternalAnimation, setForeground, setFullScreen, setFullScreenHeight, setFullScreenWidth, setHasWindow, setHighlightBorder, setIdv, setInitialSplitPaneLocation, setInitViewStateName, setIsShared, 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, setWindowBounds, setWireframe, shouldDoThingsRightAway, showColorPairDialog, showHighlight, showLegend, showPropertiesDialog, showTimeline, showWindow, startImageCapture, toFront, toggleFullScreen, toString, turnOnOffAllDisplays, updateAnnotations, updateDisplayIfNeeded, updateDisplayList, useDisplay, useImages, useImages, writeImage, writeImage, writeImage, writeImage, writeImage, writeImage, writeImage, writeTestArchive
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, initSharable, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
public static final java.lang.String PREF_GRIDLINES
public TransectViewManager()
public TransectViewManager(ViewContext viewContext)
TransectViewManager
from an IDVviewContext
- Really the IDVpublic TransectViewManager(ViewContext viewContext, ViewDescriptor desc, java.lang.String properties) throws visad.VisADException, java.rmi.RemoteException
TransectViewManager
with the specified params.viewContext
- context in which this MVM existsdesc
- ViewDescriptor
properties
- semicolon separated list of properties (can be null)visad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionpublic TransectDisplay getTransectDisplay()
protected DisplayMaster doMakeDisplayMaster() throws visad.VisADException, java.rmi.RemoteException
doMakeDisplayMaster
in class ViewManager
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic boolean getUseFastRendering(boolean b)
getUseFastRendering
in class ViewManager
b
- The displays fast rendering flagpublic boolean addDisplayInfo(DisplayInfo displayInfo) throws java.rmi.RemoteException, visad.VisADException
addDisplayInfo
in class ViewManager
displayInfo
- The display info to add.java.rmi.RemoteException
- the remote exceptionvisad.VisADException
- the VisAD exceptionprotected void initWithInner(ViewManager that, boolean ignoreWindow) throws visad.VisADException, java.rmi.RemoteException
initWithInner
in class NavigatedViewManager
that
- The other obejct to get state fromignoreWindow
- If true then don't set the window size and locationjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected void updateNameLabel()
updateNameLabel
in class ViewManager
protected void handleBooleanPropertyChange(java.lang.String id, boolean value) throws java.lang.Exception
handleBooleanPropertyChange
in class NavigatedViewManager
id
- Id of the changed BooleanPropertyvalue
- Its new valuejava.lang.Exception
- problem handling the changepublic boolean applyProperties()
applyProperties
in class NavigatedViewManager
protected void addPropertiesComponents(javax.swing.JTabbedPane tabbedPane)
addPropertiesComponents
in class NavigatedViewManager
tabbedPane
- the tabbed paneprotected javax.swing.JMenu makeShowMenu()
makeShowMenu
in class NavigatedViewManager
protected void getInitialBooleanProperties(java.util.List props)
getInitialBooleanProperties
in class NavigatedViewManager
props
- list to add toprotected java.awt.Container doMakeContents()
doMakeContents
in class ViewManager
protected void doneFirstFrame()
doneFirstFrame
in class ViewManager
protected void matrixChanged()
matrixChanged
in class NavigatedViewManager
protected void verticalRangeChanged()
verticalRangeChanged
in class NavigatedViewManager
protected void initBooleanProperties()
initBooleanProperties
in class ViewManager
public void initializeViewMenu(javax.swing.JMenu viewMenu)
initializeViewMenu
in class ViewManager
viewMenu
- The view menupublic java.util.ArrayList doMakeMenuList()
doMakeMenuList
in class ViewManager
public void initializeTransectMenu(javax.swing.JMenu transectMenu)
transectMenu
- menupublic void setLastActive(boolean b)
setLastActive
in class ViewManager
b
- true to show last activepublic void editTransects()
public void setTransect(Transect value)
value
- The new value for Transectpublic void setTransect(Transect value, boolean force)
value
- the valueforce
- the forcepublic Transect getTransect()
public Transect getAxisTransect()
public Transect getTransect(boolean force)
force
- If true then create onepublic boolean getShowGridLines()
public void keyWasTyped(java.awt.event.KeyEvent keyEvent)
keyWasTyped
in class ViewManager
keyEvent
- The key eventpublic void setMaxDataDistance(visad.Real value)
value
- The new value for MaxDataDistancepublic visad.Real getMaxDataDistance()
public java.lang.String getTypeName()
getTypeName
in class ViewManager