public abstract class NavigatedViewManager extends ViewManager
ViewManager.MatrixCommand
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CMD_NAV_DOWN
Action command to pan down
|
static java.lang.String |
CMD_NAV_HOME
Action command to reset zoom and pan
|
static java.lang.String |
CMD_NAV_LEFT
Action command to pan left
|
static java.lang.String |
CMD_NAV_RIGHT
Action command to pan right
|
static java.lang.String |
CMD_NAV_ROTATELEFT
Action command to rotate
|
static java.lang.String |
CMD_NAV_ROTATERIGHT
Action command to rotate
|
static java.lang.String |
CMD_NAV_SMALLDOWN
Action command to pan down
|
static java.lang.String |
CMD_NAV_SMALLLEFT
Action command to pan left
|
static java.lang.String |
CMD_NAV_SMALLRIGHT
Action command to pan right
|
static java.lang.String |
CMD_NAV_SMALLROTATELEFT
Action command to rotate
|
static java.lang.String |
CMD_NAV_SMALLROTATERIGHT
Action command to rotate
|
static java.lang.String |
CMD_NAV_SMALLTILTDOWN
Action command to tilt
|
static java.lang.String |
CMD_NAV_SMALLTILTUP
Action command to tilt
|
static java.lang.String |
CMD_NAV_SMALLUP
Action command to pan up
|
static java.lang.String |
CMD_NAV_SMALLZOOMIN
Action command to zoom in
|
static java.lang.String |
CMD_NAV_SMALLZOOMOUT
Action command to zoom out
|
static java.lang.String |
CMD_NAV_UP
Action command to pan up
|
static java.lang.String |
CMD_NAV_ZOOMIN
Action command to zoom in
|
static java.lang.String |
CMD_NAV_ZOOMOUT
Action command to zoom out
|
protected CursorReadoutWindow |
cursorReadoutWindow
cursor readout window
|
static java.lang.String |
PROP_VERTICALRANGE
Vertical range property
|
static java.lang.String |
SHARE_MATRIX
Defines the viewpoint matrix when sharing state
|
static java.lang.String |
SHARE_RUBBERBAND
Defines the rubber band box for sharing state
|
static double |
TRANSLATE_FACTOR
How far do we zoom on a zoom in or out
|
static double |
ZOOM_FACTOR
How far do we zoom on a zoom in or out
|
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 |
---|
NavigatedViewManager()
Default constructor
|
NavigatedViewManager(ViewContext viewContext)
Construct a
NavigatedViewManager from an IDV |
NavigatedViewManager(ViewContext viewContext,
ViewDescriptor desc,
java.lang.String properties)
Construct a
NavigatedViewManager with the specified params. |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Required interface for ActionEvents, to implement ActionListener
for the UI objects such as JButton-s and MenuItem-s
|
protected void |
addPropertiesComponents(javax.swing.JTabbedPane tabbedPane)
Add components to the properties dialog
|
protected void |
animationTimeChanged()
Handle an animation time change
|
void |
applyPreferences()
Apply preferences
|
boolean |
applyProperties()
Apply properties.
|
protected void |
checkHistoryMatrix()
Check the matrix history.
|
void |
destroy()
Cleanup when destroying this object.
|
void |
displayChanged(visad.DisplayEvent de)
An implementation of the the DisplayListener interface.
|
java.awt.Component |
doMakeViewPointToolBar(int orientation)
Creates the Viewpoint Toolbar in the specified orientation.
|
protected java.awt.Component |
doMakeZoomPanToolBar(int orientation)
Creates the Zoom/Pan Toolbar in the specified orientation.
|
boolean |
getClipping()
Get the 3d clipping flag
|
visad.CoordinateSystem |
getDisplayCoordinateSystem()
Get the display side coordinate system, subclasses should implement
if there is one.
|
protected void |
getInitialBooleanProperties(java.util.List props)
Get the intial BooleanProperty-s
|
boolean |
getLabelsVisible()
Get the show vertical scale flag
|
NavigatedDisplay |
getNavigatedDisplay()
Get the NavigatedDisplay associated with this ViewManager
|
boolean |
getShowCursor()
Get the show cursor readout flag
|
boolean |
getTransectLabelsVisible()
Get the show vertical scale flag
|
double[] |
getVerticalRange()
Get the min/max used for the vertical range.
|
visad.Unit |
getVerticalRangeUnit()
Get the
Unit used for the vertical range. |
protected ViewpointControl |
getViewpointControl()
Get the viewpoint control for this view manager.
|
protected void |
handleBooleanPropertyChange(java.lang.String id,
boolean value)
The BooleanProperty identified byt he given id has changed.
|
protected void |
handleControlChanged(visad.ControlEvent e)
Respond to
ControlEvent s. |
protected boolean |
hasViewpointControl()
Has a viewpoint control
|
protected void |
init()
Initialize this object.
|
protected void |
initToolBars()
Initialize the toolbars for the GUI
|
protected void |
initWithInner(ViewManager that,
boolean ignoreWindow)
Initialize this object's state with the state from that.
|
protected javax.swing.JMenu |
makeShowMenu()
Create and return the show menu.
|
protected void |
matrixChanged()
Handle the change to the matrix
|
protected void |
mouseFlicked(java.awt.Point startPoint,
java.awt.Point endPoint,
double[] startMatrix,
double[] endMatrix,
double speed)
Handle a mouse flicked
|
protected void |
perspectiveViewChanged(boolean v)
Handle a perspective view change
|
void |
receiveShareData(Sharable from,
java.lang.Object dataId,
java.lang.Object[] data)
Handle the receipt of shared data
|
protected void |
rubberBandBoxChanged()
Handle the rubber band box changes.
|
void |
setClipping(boolean value)
Set the clipping flag
|
protected void |
setDisplayMaster(DisplayMaster master)
Set the
DisplayMaster |
void |
setLabelsVisible(boolean value)
Set the show vertical scale flag
|
protected void |
setReadoutFormat()
Set the format for the cursor readout.
|
void |
setShowCursor(boolean value)
Set the show cursor flag
|
void |
setTransectLabelsVisible(boolean value)
Set the show vertical scale flag
|
void |
setVerticalRange(double[] r)
Set the min/max used for the vertical range.
|
void |
setVerticalRangeUnit(visad.Unit u)
Set the
Unit used for the vertical range. |
protected void |
setVerticalRangeUnitPreference(NavigatedDisplay nd)
Set the vertical range unit from the preference
|
void |
setWindow(IdvWindow w)
Set the window that this ViewManager is shown in.
|
protected void |
verticalRangeChanged()
Handle a change to the vertical range
|
protected void |
verticalScaleChanged()
Deprecated.
|
addBooleanProperty, addCommand, addContextMenuItems, addDisplayInfo, addDisplayInfos, addDisplayListener, addRemovable, addToolBar, addViewDescriptor, animationDriverChanged, animationOk, aspectSliderChanged, brighter, canBe, captureIslImage, checkForKmlImageCapture, checkToolBarVisibility, clearDisplays, clearImageGrabber, controlChanged, controlMoved, createCBMI, displayControlChanged, displayControlVisibilityChanged, displayDataChanged, doClose, doDrop, doMakeContents, doMakeDisplayMaster, 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, 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, getTypeName, getUniqueId, getUseFastRendering, getViewDescriptor, getViewManager, getVisibleGeoBounds, getVMManager, getWaitMessageVisible, getWireframe, guiInitializationDone, hasBooleanProperty, hasDisplayMaster, initAfterUnPersistence, initBooleanProperties, initColorMenu, initDisplayMenu, initFromSkin, initializeBooleanProperty, initializeViewMenu, initPreferences, initUI, initViewState, initViewStateMenu, initWith, initWith, initWith, 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, 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, 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, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
public static final java.lang.String CMD_NAV_DOWN
public static final java.lang.String CMD_NAV_HOME
public static final java.lang.String CMD_NAV_LEFT
public static final java.lang.String CMD_NAV_RIGHT
public static final java.lang.String CMD_NAV_ROTATELEFT
public static final java.lang.String CMD_NAV_ROTATERIGHT
public static final java.lang.String CMD_NAV_SMALLDOWN
public static final java.lang.String CMD_NAV_SMALLLEFT
public static final java.lang.String CMD_NAV_SMALLRIGHT
public static final java.lang.String CMD_NAV_SMALLROTATELEFT
public static final java.lang.String CMD_NAV_SMALLROTATERIGHT
public static final java.lang.String CMD_NAV_SMALLTILTDOWN
public static final java.lang.String CMD_NAV_SMALLTILTUP
public static final java.lang.String CMD_NAV_SMALLUP
public static final java.lang.String CMD_NAV_SMALLZOOMIN
public static final java.lang.String CMD_NAV_SMALLZOOMOUT
public static final java.lang.String CMD_NAV_UP
public static final java.lang.String CMD_NAV_ZOOMIN
public static final java.lang.String CMD_NAV_ZOOMOUT
public static final java.lang.String PROP_VERTICALRANGE
public static final java.lang.String SHARE_MATRIX
public static final java.lang.String SHARE_RUBBERBAND
public static final double ZOOM_FACTOR
public static final double TRANSLATE_FACTOR
protected CursorReadoutWindow cursorReadoutWindow
public NavigatedViewManager()
public NavigatedViewManager(ViewContext viewContext)
NavigatedViewManager
from an IDVviewContext
- Really the IDVpublic NavigatedViewManager(ViewContext viewContext, ViewDescriptor desc, java.lang.String properties) throws visad.VisADException, java.rmi.RemoteException
NavigatedViewManager
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 NavigatedDisplay getNavigatedDisplay()
protected void setDisplayMaster(DisplayMaster master)
DisplayMaster
setDisplayMaster
in class ViewManager
master
- The display masterprotected void init() throws visad.VisADException, java.rmi.RemoteException
init
in class ViewManager
visad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionprotected void initWithInner(ViewManager that, boolean ignoreWindow) throws visad.VisADException, java.rmi.RemoteException
initWithInner
in class ViewManager
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 badnesspublic boolean applyProperties()
applyProperties
in class ViewManager
protected void addPropertiesComponents(javax.swing.JTabbedPane tabbedPane)
addPropertiesComponents
in class ViewManager
tabbedPane
- the tabbed pane to add toprotected void initToolBars()
initToolBars
in class ViewManager
protected boolean hasViewpointControl()
protected ViewpointControl getViewpointControl()
protected void perspectiveViewChanged(boolean v)
v
- true to set to perspective viewprotected void verticalScaleChanged()
verticalRangeChanged()
public void destroy()
destroy
in class ViewManager
public void receiveShareData(Sharable from, java.lang.Object dataId, java.lang.Object[] data)
receiveShareData
in interface Sharable
receiveShareData
in class SharableImpl
from
- Who is it fromdataId
- What is itdata
- Here it isprotected void rubberBandBoxChanged() throws visad.VisADException
visad.VisADException
- the VisAD exceptionprotected void handleControlChanged(visad.ControlEvent e)
ControlEvent
s.handleControlChanged
in class ViewManager
e
- ControlEvent
to respond topublic void displayChanged(visad.DisplayEvent de) throws visad.VisADException, java.rmi.RemoteException
firstFrameDone
on the DisplayControl
sdisplayChanged
in interface visad.DisplayListener
displayChanged
in class ViewManager
de
- The DisplayEvent
visad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionprotected void mouseFlicked(java.awt.Point startPoint, java.awt.Point endPoint, double[] startMatrix, double[] endMatrix, double speed)
startPoint
- the start pointendPoint
- the end pointstartMatrix
- the start matrixendMatrix
- the end matrixspeed
- how fast to moveprotected void animationTimeChanged()
animationTimeChanged
in class ViewManager
protected void matrixChanged()
protected void verticalRangeChanged()
protected void setReadoutFormat()
public void applyPreferences()
applyPreferences
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 void checkHistoryMatrix()
public void setWindow(IdvWindow w)
WindowListener
and sets the bounds of the window if the windowBounds
is non-null.setWindow
in class ViewManager
w
- The windowpublic java.awt.Component doMakeViewPointToolBar(int orientation)
orientation
- orientation of the toolbar
(JToolBar.VERTICAL or JToolBar.HORIZONTAL)protected java.awt.Component doMakeZoomPanToolBar(int orientation)
orientation
- orientation of the toolbar
(JToolBar.VERTICAL or JToolBar.HORIZONTAL)public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class ViewManager
event
- an ActionEventprotected javax.swing.JMenu makeShowMenu()
makeShowMenu
in class ViewManager
public void setShowCursor(boolean value)
value
- The valuepublic boolean getShowCursor()
public void setLabelsVisible(boolean value)
value
- The valuepublic boolean getLabelsVisible()
public void setTransectLabelsVisible(boolean value)
value
- The valuepublic boolean getTransectLabelsVisible()
public void setClipping(boolean value)
value
- The valuepublic boolean getClipping()
public void setVerticalRangeUnit(visad.Unit u)
Unit
used for the vertical range.u
- new unitpublic visad.Unit getVerticalRangeUnit()
Unit
used for the vertical range.public double[] getVerticalRange()
public void setVerticalRange(double[] r)
r
- array of vertical range values (double[] {min, max})protected void setVerticalRangeUnitPreference(NavigatedDisplay nd) throws visad.VisADException, java.rmi.RemoteException
nd
- navigated display to set the unit onjava.rmi.RemoteException
- problem with remote displayvisad.VisADException
- problem with local displaypublic visad.CoordinateSystem getDisplayCoordinateSystem()
getDisplayCoordinateSystem
in class ViewManager