public class MapViewManager extends NavigatedViewManager
| Modifier and Type | Class and Description |
|---|---|
static class |
MapViewManager.ProjectionCommand
Class ProjectionCommand manages changes to the projection
|
ViewManager.MatrixCommand| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CMD_FLY_BACK
flythrough command
|
static java.lang.String |
CMD_FLY_FORWARD
flythrough command
|
static java.lang.String |
CMD_FLY_LEFT
flythrough command
|
static java.lang.String |
CMD_FLY_RIGHT
flythrough command
|
static java.lang.String |
PR_LABEL
label for progressive resolution/disclosure/whatever we call it
|
static java.lang.String |
PREF_ADDRESS_LIST
preference id for the list of addresses in the geocode dialog
|
static java.lang.String |
PREF_ADDRESS_REPROJECT
do we reproject when we go to an address
|
static java.lang.String |
PREF_AUTOROTATE
Preference for autorotate in globe mode
|
static java.lang.String |
PREF_GLOBEBACKGROUND
Preference for the globe background color
|
static java.lang.String |
PREF_PERSPECTIVEVIEW
Preference for showing display in perspective view_
|
static java.lang.String |
PREF_PROJ_DFLT
Preference for default projection
|
static java.lang.String |
PREF_PROJ_USEFROMDATA
Preference for setting projection automatically from data_
|
static java.lang.String |
PREF_SHOWEARTHNAVPANEL
Preference for showing the earth nav panel
|
static java.lang.String |
PREF_SHOWGLOBEBACKGROUND
Preference for showing the globe background
|
static java.lang.String |
PREF_SHOWPIP
Preference for showing the pip
|
static java.lang.String |
PREF_USE_PROGRESSIVE_RESOLUTION
Preference for progressive resolution
|
static java.lang.String |
PROP_CLIPDISTANCE_GLOBE_BACK
back globe clipping distance
|
static java.lang.String |
PROP_CLIPDISTANCE_GLOBE_FRONT
front globe clipping distance
|
static java.lang.String |
PROP_CLIPDISTANCE_MAP_BACK
back map clipping distance
|
static java.lang.String |
PROP_CLIPDISTANCE_MAP_FRONT
fron map clipping distance
|
static java.lang.String |
SHARE_PROJECTION
Defines the projection when sharing state
|
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_FACTORanimationHolder, 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 |
|---|
MapViewManager()
Default constructor
|
MapViewManager(ViewContext viewContext)
Construct a
MapViewManager from an IDV |
MapViewManager(ViewContext viewContext,
ViewDescriptor desc,
java.lang.String properties)
Construct a
MapViewManager 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
|
void |
addDisplayInfos(java.util.List<DisplayInfo> displayInfos)
Reset projection of display based control's getDataProjection().
|
protected void |
addPropertiesComponents(javax.swing.JTabbedPane tabbedPane)
Add the properties components for this ViewManager
|
protected void |
animationTimeChanged()
Handle the animation time changed
|
void |
applyPreferences()
Apply preferences
|
boolean |
applyProperties()
Apply the properties
|
boolean |
canBe(ViewManager that)
Can this view manager be used in exchange for the given view manager
|
void |
center(visad.georef.MapProjection mp)
Center the display (animated) to the center of the given mapprojection
|
protected boolean |
checkForKmlImageCapture()
Check if its ok to capture a kmz file
|
void |
checkPipPanel()
Check the pip panel.
|
void |
checkProjection(visad.FieldImpl data,
DisplayControl display)
Deprecated.
no substitute. Use setMapProjection()
|
void |
destroy()
Destroy this ViewManager
|
void |
displayChanged(visad.DisplayEvent event)
Handle the event
|
void |
displayDataChanged(DisplayControl display)
Handle a change to the data in a DisplayControl
|
void |
displayDataChanged(DisplayControl display,
boolean fromInitialLoad)
Handle a change to the data in a DisplayControl
|
protected java.awt.Container |
doMakeContents()
Make the GUI contents.
|
protected DisplayMaster |
doMakeDisplayMaster()
Make the DisplayMaster for this ViewManager
|
java.util.ArrayList |
doMakeMenuList()
Create and return the list of menus for the menu bar.
|
protected void |
doneFirstFrame()
Received the first frame done event from the display
|
protected void |
fillLegends()
Fill the legends
|
void |
flythrough(float[][] pts)
Do a flythrough
|
void |
flythrough(java.util.List<FlythroughPoint> pts)
Flythrough the points
|
boolean |
getAutoRotate()
Get the autorotate flag
|
float |
getDefaultMapPosition()
Get the default map position from a property
|
ucar.unidata.geoloc.ProjectionImpl |
getDefaultProjection()
Get the default projection to use
|
java.lang.String |
getDefaultProjectionName()
Get the DfltProjectionName property.
|
double |
getDisplayProjectionZoom()
Get the DisplayProjectionZoom property.
|
Flythrough |
getFlythrough()
Get the Flythrough property.
|
java.awt.Color |
getGlobeBackgroundColor()
Get the GlobeBackgroundColor property.
|
java.awt.Color |
getGlobeBackgroundColorToUse()
Get the GlobeBackgroundColor property to be used.
|
double |
getGlobeBackgroundLevel()
Get the GlobeBackgroundLevel property.
|
boolean |
getGlobeBackgroundShow()
Get the GlobeBackgroundShow property.
|
protected void |
getInitialBooleanProperties(java.util.List props)
Create the set of
BooleanPropertys. |
java.awt.geom.Rectangle2D.Float |
getInitLatLonBounds()
Get the InitLatLonBounds property.
|
java.awt.Color |
getInitMapColor()
Get the InitMapColor property.
|
java.lang.String |
getInitMapPaths()
Get the InitMapPaths property.
|
float |
getInitMapWidth()
Get the InitMapWidth property.
|
javax.swing.JComponent |
getInnerContents()
Get the
JComponent for the VisAD display |
LatLonAxisScaleInfo |
getLatAxisScaleInfo()
Gets the lat axis scale info.
|
LatLonAxisScaleInfo |
getLonAxisScaleInfo()
Gets the lon axis scale info.
|
visad.georef.MapProjection |
getMainProjection()
Get the current projection.Used for xml encoding/decoding.
|
java.lang.String |
getMainProjectionName()
The main projection name.Used for xml encoding/decoding.
|
NavigatedDisplay |
getMapDisplay()
Get the map display.
|
boolean |
getPerspectiveView()
Get the perspective view flag
|
visad.georef.EarthLocation |
getScreenCenter()
Get the earth location of the screen center
|
java.util.List<TwoFacedObject> |
getScreenCoordinates()
Get a list of named locations of the different points of the view rectangle.
|
boolean |
getShowEarthNavPanel()
Get the ShowEarthNavPanel property.
|
boolean |
getShowMaps()
Get the ShowMaps property.
|
boolean |
getShowPip()
Get the ShowPipPanel property.
|
protected javax.swing.JComponent |
getSideComponent(javax.swing.JComponent sideLegend)
Add the PIP panel if needed
|
java.lang.String |
getTypeName()
What type of view is this
|
boolean |
getUse3D()
Get the use 3D display flag.
|
boolean |
getUseGlobeDisplay()
Get the globe display flag.
|
boolean |
getUseProgressiveResolution()
Get the ProgressiveResolution property.
|
boolean |
getUseProjectionFromData()
Get the use projection from data flag
|
GeoLocationInfo |
getVisibleGeoBounds()
Get the bounds that are visible
|
void |
goToAddress()
Go the a street address
|
protected void |
handleBooleanPropertyChange(java.lang.String id,
boolean value)
The BooleanProperty identified byt he given id has changed.
|
void |
hidePip()
Hide the pip panel
|
protected void |
init()
Initialize this object.
|
void |
initAfterUnPersistence(IntegratedDataViewer idv)
Initialize after unpersistence
|
void |
initializeDisplaysProjectionMenu(javax.swing.JMenu displaysMenu)
Init menu
|
void |
initializeProjectionHistoryMenu(javax.swing.JMenu menu)
Init menu
|
void |
initializeProjectionMenu(javax.swing.JMenu projectionsMenu)
Init menu
|
void |
initializeViewMenu(javax.swing.JMenu viewMenu)
Dynamically initialize the view menu
|
void |
initPreferences(IdvPreferenceManager preferenceManager)
Add in the different preference panels.
|
protected void |
initToolBars()
Initialize the toolbars for the GUI
|
protected void |
initUI()
Initialize the UI
|
void |
initViewState(ViewState viewState)
Initialize the ViewState
|
void |
initWith(ViewState viewState)
Initialize with another view
|
protected void |
initWithInner(ViewManager that,
boolean ignoreWindow)
Initialize this object's state with the state from that.
|
boolean |
isCompatibleWith(ViewManager vm)
Is this a compatible ViewManager
|
boolean |
isCompatibleWith(ViewState viewState)
Is this compatible with the ViewState
|
boolean |
isDisplay3D()
Are we in 3d mode
|
static void |
makeProjectionsMenu(javax.swing.JMenu projectionsMenu,
java.util.List projections,
java.lang.Object object,
java.lang.String method)
Make the projections menu.
|
static void |
makeProjectionsMenu(javax.swing.JMenu projectionsMenu,
java.util.List projections,
java.lang.Object object,
java.lang.String method,
ucar.unidata.geoloc.ProjectionImpl currentProjection)
Make the projections menu
|
protected javax.swing.JMenu |
makeShowMenu()
Create and return the show menu.
|
protected void |
mouseFlicked(java.awt.Point startPoint,
java.awt.Point endPoint,
double[] startMatrix,
double[] endMatrix,
double speed)
Handle the mouse flicked
|
boolean |
okToImportDisplay(DisplayControl control)
can this viewmanager import the given display control
|
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
|
void |
setAutoRotate(boolean value)
Set the autorotate property
|
void |
setBgColor(boolean bgColor)
Deprecated.
Keep this around for old bundles
|
void |
setCurrentAsProjection()
Set the current viewpoint as the projection
|
void |
setDefaultProjectionName(java.lang.String value)
Set the DfltProjectionName property.
|
void |
setDisplayProjectionZoom(double value)
Set the DisplayProjectionZoom property.
|
void |
setFlythrough(Flythrough value)
Set the Flythrough property.
|
void |
setGlobeBackgroundColor(java.awt.Color value)
Set the GlobeBackgroundColor property.
|
void |
setGlobeBackgroundLevel(double value)
Set the GlobeBackgroundLevel property.
|
void |
setGlobeBackgroundShow(boolean value)
Set the GlobeBackgroundShow property.
|
void |
setInitialMapResources(java.lang.String value)
Set the InitialMapResources property.
|
void |
setInitLatLonBounds(java.awt.geom.Rectangle2D.Float value)
Set the InitLatLonBounds property.
|
void |
setInitLatLonColor(java.awt.Color v)
Set the intial lat/lon color
|
void |
setInitLatLonSpacing(float v)
Set the initial lat/lon spacing
|
void |
setInitLatLonVisible(boolean v)
Set the intial lat/lon visible
|
void |
setInitLatLonWidth(int v)
Set the initial lat/lon line width
|
void |
setInitMapColor(java.awt.Color value)
Set the InitMapColor property.
|
void |
setInitMapPaths(java.lang.String value)
Set the InitMapPaths property.
|
void |
setInitMapWidth(float value)
Set the InitMapWidth property.
|
void |
setLatAxisScaleInfo(LatLonAxisScaleInfo axisScaleInfo)
Sets the lat axis scale info.
|
void |
setLonAxisScaleInfo(LatLonAxisScaleInfo axisScaleInfo)
Sets the lon axis scale info.
|
void |
setMainProjection(visad.georef.MapProjection projection)
Set the current projection.
|
void |
setMainProjectionName(java.lang.String projectionName)
The main projection name.Used for xml encoding/decoding.
|
void |
setMapArea(ucar.unidata.geoloc.ProjectionRect mapArea)
Set or reset map area of view, using NavigatedDisplay method.
|
void |
setMapConfigFile(java.lang.String location)
Have this so we don't get warnings on unpersisting old bundles
|
void |
setMapProjection(visad.georef.MapProjection projection,
boolean fromWidget)
A wrapper aroung the setMapProjection call that takes a projection name.
|
boolean |
setMapProjection(visad.georef.MapProjection projection,
boolean fromWidget,
java.lang.String name)
Set map projection in the main display.
|
boolean |
setMapProjection(visad.georef.MapProjection projection,
boolean fromWidget,
java.lang.String name,
boolean checkDefault)
Set map projection in the main display.
|
boolean |
setMapProjection(visad.georef.MapProjection projection,
boolean fromWidget,
java.lang.String name,
boolean checkDefault,
boolean addToCommandHistory)
Set map projection in the main display.
|
boolean |
setMapProjection(visad.georef.MapProjection projection,
boolean fromWidget,
java.lang.String name,
boolean checkDefault,
boolean addToCommandHistory,
boolean maintainViewpoint)
Set map projection in the main display.
|
void |
setMapState(java.lang.String ms)
Leave this here for old bundles
|
void |
setPerspectiveView(boolean value)
Set the perspective view flag
|
void |
setProjection(ucar.unidata.geoloc.ProjectionImpl p)
Set the current projection
|
void |
setProjectionByName(java.lang.String projName)
Find and set the projection by name
|
void |
setProjectionFromData(boolean value)
_more_
|
void |
setProjectionFromFirstDisplay()
Set the projection to the first projection found in the displays
|
void |
setShowEarthNavPanel(boolean value)
Set the ShowEarthNavPanel property.
|
void |
setShowElevation(boolean value)
Dummy for old bundles
|
void |
setShowMap(boolean value)
Dummy for old bundles
|
void |
setShowMaps(boolean value)
Set the ShowMaps property.
|
void |
setShowPip(boolean value)
Set the ShowPipPanel property.
|
void |
setUse3D(boolean use)
Use a 3D display.
|
void |
setUseGlobeDisplay(boolean use)
Use globe display.
|
void |
setUseProgressiveResolution(boolean value)
Set the Progressive Resolution property.
|
void |
setUseProjectionFromData(boolean value)
Set the use projection from data flag
|
void |
setViewpointInfo(ViewpointInfo viewpointInfo)
Set the viewpoint info
|
boolean |
shouldAnimateViewChanges()
Should we animate view changes
|
void |
showFlythrough()
Show the fly through
|
void |
showProjectionManager()
Show the projection manager.
|
protected void |
updateProjection()
If we are using a ProjectionImpl then see if it hsa
|
protected void |
verticalRangeChanged()
Handle a vertical range change
|
protected void |
verticalScaleChanged()
Deprecated.
|
checkHistoryMatrix, doMakeViewPointToolBar, doMakeZoomPanToolBar, getClipping, getDisplayCoordinateSystem, getLabelsVisible, getNavigatedDisplay, getShowCursor, getTransectLabelsVisible, getVerticalRange, getVerticalRangeUnit, getViewpointControl, handleControlChanged, hasViewpointControl, matrixChanged, rubberBandBoxChanged, setClipping, setDisplayMaster, setLabelsVisible, setReadoutFormat, setShowCursor, setTransectLabelsVisible, setVerticalRange, setVerticalRangeUnit, setVerticalRangeUnitPreference, setWindowaddBooleanProperty, addCommand, addContextMenuItems, addDisplayInfo, addDisplayListener, addRemovable, addToolBar, addViewDescriptor, animationDriverChanged, animationOk, aspectSliderChanged, brighter, captureIslImage, checkToolBarVisibility, clearDisplays, clearImageGrabber, controlChanged, controlMoved, createCBMI, displayControlChanged, displayControlVisibilityChanged, doClose, doDrop, doMakeMenuBar, doMakeViewState, doPrintImage, doPublishImage, doPublishImage, doSaveImage, doSaveImage, doSaveImageInThread, doSaveState, ensureOnlyOneTimeDriver, 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, getIsActive, getIsDestroyed, getIsShared, getLastFrameDoneTime, getLastTimeActivated, getLegendOnLeft, getLegends, getLegendState, getLights, getLogoFile, getLogoPosition, getLogoScale, getLogoVisibility, getMainPropertiesComponent, getMaster, getMySize, getName, getNormalBorder, getProjectionControl, getProjectionList, getProperties, getPropertiesComponent, getProperty, getPublishManager, getReallyHasWindow, getResourceManager, getShareViews, getShowAnimationBoxes, getShowBottomLegend, getShowControlLegend, getShowDisplayList, getShowScales, getShowSideLegend, getSideDividerLocation, getSideLegend, getSideLegendContainer, getSkinProperties, getSkinProperty, getSplitPaneLocation, getStateManager, getStore, getTimeDriverTimes, getTimelineComponent, getToolbarsFloatable, getTopBarVisible, getUniqueId, getUseFastRendering, getViewDescriptor, getViewManager, getVMManager, getWaitMessageVisible, getWireframe, guiInitializationDone, hasBooleanProperty, hasDisplayMaster, initBooleanProperties, initColorMenu, initDisplayMenu, initFromSkin, initializeBooleanProperty, initViewStateMenu, initWith, initWith, insertSideLegend, isClassOk, isDefinedBy, isFullScreen, isInteractive, isVectorGraphicsFile, itemStateChanged, keyWasTyped, logException, makeBufferedImage, makeColorMenu, makeDropPanel, makeFrames, makeLogoPosition, makeSavedViewsMenu, makeViewMenu, makeViewStateMenu, notifyDisplayControls, 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, 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, writeTestArchiveapplySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, initSharable, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialogpublic static final java.lang.String PROP_CLIPDISTANCE_GLOBE_FRONT
public static final java.lang.String PROP_CLIPDISTANCE_GLOBE_BACK
public static final java.lang.String PROP_CLIPDISTANCE_MAP_FRONT
public static final java.lang.String PROP_CLIPDISTANCE_MAP_BACK
public static final java.lang.String CMD_FLY_LEFT
public static final java.lang.String CMD_FLY_RIGHT
public static final java.lang.String CMD_FLY_FORWARD
public static final java.lang.String CMD_FLY_BACK
public static final java.lang.String PREF_ADDRESS_LIST
public static final java.lang.String PREF_ADDRESS_REPROJECT
public static final java.lang.String PREF_AUTOROTATE
public static final java.lang.String PREF_PERSPECTIVEVIEW
public static final java.lang.String PREF_PROJ_DFLT
public static final java.lang.String PREF_PROJ_USEFROMDATA
public static final java.lang.String PREF_SHOWPIP
public static final java.lang.String PREF_USE_PROGRESSIVE_RESOLUTION
public static final java.lang.String PR_LABEL
public static final java.lang.String PREF_SHOWGLOBEBACKGROUND
public static final java.lang.String PREF_GLOBEBACKGROUND
public static final java.lang.String PREF_SHOWEARTHNAVPANEL
public static final java.lang.String SHARE_PROJECTION
public MapViewManager()
public MapViewManager(ViewContext viewContext)
MapViewManager from an IDVviewContext - Really the IDVpublic MapViewManager(ViewContext viewContext, ViewDescriptor desc, java.lang.String properties) throws visad.VisADException, java.rmi.RemoteException
MapViewManager with the specified paramsviewContext - context in which this MVM existsdesc - ViewDescriptorproperties - semicolon separated list of properties (can be null)java.rmi.RemoteException - Java RMI problemvisad.VisADException - Couldn't create the VisAD objectpublic ucar.unidata.geoloc.ProjectionImpl getDefaultProjection()
protected DisplayMaster doMakeDisplayMaster() throws visad.VisADException, java.rmi.RemoteException
doMakeDisplayMaster in class ViewManagerjava.rmi.RemoteException - Java RMI problemvisad.VisADException - Couldn't create the VisAD objectpublic visad.georef.EarthLocation getScreenCenter()
throws visad.VisADException,
java.rmi.RemoteException
java.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic java.util.List<TwoFacedObject> getScreenCoordinates() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException - On badnessvisad.VisADException - On badnessprotected void init()
throws visad.VisADException,
java.rmi.RemoteException
init in class NavigatedViewManagervisad.VisADException - the VisAD exceptionjava.rmi.RemoteException - the remote exceptionprotected void initUI()
initUI in class ViewManagerprotected void fillLegends()
fillLegends in class ViewManagerprotected void perspectiveViewChanged(boolean v)
perspectiveViewChanged in class NavigatedViewManagerv - the valueprotected void verticalScaleChanged()
verticalRangeChanged()verticalScaleChanged in class NavigatedViewManagerprotected void verticalRangeChanged()
verticalRangeChanged in class NavigatedViewManagerpublic boolean shouldAnimateViewChanges()
public void displayChanged(visad.DisplayEvent event)
throws visad.VisADException,
java.rmi.RemoteException
displayChanged in interface visad.DisplayListenerdisplayChanged in class NavigatedViewManagerevent - The eventjava.rmi.RemoteException - On badnessvisad.VisADException - On badnessprotected void mouseFlicked(java.awt.Point startPoint,
java.awt.Point endPoint,
double[] startMatrix,
double[] endMatrix,
double speed)
mouseFlicked in class NavigatedViewManagerstartPoint - start point of flickendPoint - end point of flickstartMatrix - the start matrixendMatrix - the end matrixspeed - the speed of flickingprotected boolean checkForKmlImageCapture()
checkForKmlImageCapture in class ViewManagerpublic boolean canBe(ViewManager that)
canBe in class ViewManagerthat - The other view manager to checkpublic void initWith(ViewState viewState) throws java.lang.Exception
initWith in class ViewManagerviewState - the view statejava.lang.Exception - problemsprotected void animationTimeChanged()
animationTimeChanged in class NavigatedViewManagerprotected void initWithInner(ViewManager that, boolean ignoreWindow) throws visad.VisADException, java.rmi.RemoteException
initWithInner in class NavigatedViewManagerthat - The other obejct to get state fromignoreWindow - If true then don't set the window size and locationjava.rmi.RemoteException - Java RMI problemvisad.VisADException - Couldn't create the VisAD objectpublic void initViewState(ViewState viewState)
initViewState in class ViewManagerviewState - the ViewStatepublic javax.swing.JComponent getInnerContents()
JComponent for the VisAD displaygetInnerContents in class ViewManagerpublic void setMapState(java.lang.String ms)
ms - The map specificationpublic void initPreferences(IdvPreferenceManager preferenceManager)
initPreferences in class ViewManagerpreferenceManager - The preference manager to add things intopublic void goToAddress()
public NavigatedDisplay getMapDisplay()
public boolean isDisplay3D()
public void receiveShareData(Sharable from, java.lang.Object dataId, java.lang.Object[] data)
receiveShareData in interface SharablereceiveShareData in class NavigatedViewManagerfrom - Who is it fromdataId - What is itdata - Here it isprotected javax.swing.JComponent getSideComponent(javax.swing.JComponent sideLegend)
getSideComponent in class ViewManagersideLegend - The side legendprotected java.awt.Container doMakeContents()
doMakeContents in class ViewManagerprotected void initToolBars()
initToolBars in class NavigatedViewManagerpublic void setViewpointInfo(ViewpointInfo viewpointInfo)
viewpointInfo - the viewpoint infopublic void initializeViewMenu(javax.swing.JMenu viewMenu)
initializeViewMenu in class ViewManagerviewMenu - the view menupublic java.util.ArrayList doMakeMenuList()
doMakeMenuList in class ViewManagerprotected javax.swing.JMenu makeShowMenu()
makeShowMenu in class NavigatedViewManagerpublic void center(visad.georef.MapProjection mp)
throws java.rmi.RemoteException,
visad.VisADException
mp - map projectionjava.rmi.RemoteException - Java RMI problemvisad.VisADException - VisAD problempublic void setProjectionFromFirstDisplay()
protected void updateProjection()
throws java.rmi.RemoteException,
visad.VisADException
java.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic void setProjectionByName(java.lang.String projName)
projName - projection namepublic void setProjection(ucar.unidata.geoloc.ProjectionImpl p)
p - The new projection.public void setMapProjection(visad.georef.MapProjection projection,
boolean fromWidget)
projection - The projectionfromWidget - Is it from the projection selection widgetpublic visad.georef.MapProjection getMainProjection()
public void setMainProjection(visad.georef.MapProjection projection)
projection - The new projectionpublic java.lang.String getMainProjectionName()
public void setMainProjectionName(java.lang.String projectionName)
projectionName - Projection namepublic void setDefaultProjectionName(java.lang.String value)
value - The new value for DfltProjectionNamepublic java.lang.String getDefaultProjectionName()
public boolean setMapProjection(visad.georef.MapProjection projection,
boolean fromWidget,
java.lang.String name)
projection - a ProjectionfromWidget - true if this was from a widget (ie. widget or
menu item)name - name to put in the history list (may be null)public boolean setMapProjection(visad.georef.MapProjection projection,
boolean fromWidget,
java.lang.String name,
boolean checkDefault)
projection - a ProjectionfromWidget - true if this was from a widget (ie. widget or
menu item)name - name to put in the history list (may be null)checkDefault - if true, check to see if we
should call getUseProjectionFromData()public boolean setMapProjection(visad.georef.MapProjection projection,
boolean fromWidget,
java.lang.String name,
boolean checkDefault,
boolean addToCommandHistory)
projection - a ProjectionfromWidget - true if this was from a widget (ie. widget or
menu item)name - name to put in the history list (may be null)checkDefault - if true, check to see if we
should call getUseProjectionFromData()addToCommandHistory - Add this projection to the command historypublic boolean setMapProjection(visad.georef.MapProjection projection,
boolean fromWidget,
java.lang.String name,
boolean checkDefault,
boolean addToCommandHistory,
boolean maintainViewpoint)
projection - a ProjectionfromWidget - true if this was from a widget (ie. widget or
menu item)name - name to put in the history list (may be null)checkDefault - if true, check to see if we
should call getUseProjectionFromData()addToCommandHistory - Add this projection to the command historymaintainViewpoint - maintain the viewpointpublic void checkPipPanel()
public boolean okToImportDisplay(DisplayControl control)
okToImportDisplay in class ViewManagercontrol - the controlprotected void doneFirstFrame()
doneFirstFrame in class ViewManagerpublic boolean applyProperties()
applyProperties in class NavigatedViewManagerprotected void addPropertiesComponents(javax.swing.JTabbedPane tabbedPane)
addPropertiesComponents in class NavigatedViewManagertabbedPane - the tabbed pane to add topublic void destroy()
destroy in class NavigatedViewManagerpublic void showFlythrough()
public void flythrough(float[][] pts)
pts - the flythrough pointspublic void flythrough(java.util.List<FlythroughPoint> pts)
pts - the List of pointspublic final void initAfterUnPersistence(IntegratedDataViewer idv) throws visad.VisADException, java.rmi.RemoteException
initAfterUnPersistence in class ViewManageridv - the IDVjava.rmi.RemoteException - Java RMI exceptionvisad.VisADException - VisAD problempublic void displayDataChanged(DisplayControl display)
displayDataChanged in class ViewManagerdisplay - the DisplayControlpublic void displayDataChanged(DisplayControl display, boolean fromInitialLoad)
display - the DisplayControlfromInitialLoad - if this is from the initial loadpublic void addDisplayInfos(java.util.List<DisplayInfo> displayInfos) throws java.rmi.RemoteException, visad.VisADException
addDisplayInfos in class ViewManagerdisplayInfos - The List of new display infos to addjava.rmi.RemoteException - Java RMI Exceptionvisad.VisADException - Problem creating VisAD objectpublic void checkProjection(visad.FieldImpl data,
DisplayControl display)
data - The data form the displaydisplay - The displaypublic void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class NavigatedViewManagerevent - an ActionEventpublic GeoLocationInfo getVisibleGeoBounds()
getVisibleGeoBounds in class ViewManagerpublic void setCurrentAsProjection()
public void showProjectionManager()
public void setMapArea(ucar.unidata.geoloc.ProjectionRect mapArea)
mapArea - ProjectionRect the map area of viewpublic void initializeProjectionMenu(javax.swing.JMenu projectionsMenu)
projectionsMenu - menupublic void initializeDisplaysProjectionMenu(javax.swing.JMenu displaysMenu)
displaysMenu - menupublic static void makeProjectionsMenu(javax.swing.JMenu projectionsMenu,
java.util.List projections,
java.lang.Object object,
java.lang.String method)
projectionsMenu - Menu to add toprojections - List of projectionsobject - object to callmethod - method to callpublic static void makeProjectionsMenu(javax.swing.JMenu projectionsMenu,
java.util.List projections,
java.lang.Object object,
java.lang.String method,
ucar.unidata.geoloc.ProjectionImpl currentProjection)
projectionsMenu - the menu to add toprojections - list of projectionsobject - object to callmethod - method to callcurrentProjection - current projectionpublic void initializeProjectionHistoryMenu(javax.swing.JMenu menu)
menu - menupublic boolean isCompatibleWith(ViewManager vm)
isCompatibleWith in class ViewManagervm - the otherpublic boolean isCompatibleWith(ViewState viewState)
isCompatibleWith in class ViewManagerviewState - the view statepublic void setMapConfigFile(java.lang.String location)
location - The locationpublic void setUseGlobeDisplay(boolean use)
use - The globe display valuepublic boolean getUseGlobeDisplay()
public void setUse3D(boolean use)
use - The use 3D display valuepublic boolean getUse3D()
protected void handleBooleanPropertyChange(java.lang.String id,
boolean value)
throws java.lang.Exception
handleBooleanPropertyChange in class NavigatedViewManagerid - Id of the changed BooleanPropertyvalue - Its new valuejava.lang.Exception - problem handeling the changepublic void applyPreferences()
applyPreferences in class NavigatedViewManagerprotected void getInitialBooleanProperties(java.util.List props)
BooleanPropertys.
These hold all of the different flag based display state.getInitialBooleanProperties in class NavigatedViewManagerprops - the list of propertiespublic void setAutoRotate(boolean value)
value - The valuepublic boolean getAutoRotate()
public void setPerspectiveView(boolean value)
value - The valuepublic boolean getPerspectiveView()
getPerspectiveView in class ViewManagerpublic void setShowMap(boolean value)
value - The valuepublic void setShowElevation(boolean value)
value - The valuepublic void setProjectionFromData(boolean value)
setProjectionFromData in class ViewManagervalue - _more_public void setUseProjectionFromData(boolean value)
value - The valuepublic boolean getUseProjectionFromData()
public void setBgColor(boolean bgColor)
bgColor - The valuepublic void setShowEarthNavPanel(boolean value)
value - The new value for ShowEarthNavPanelpublic boolean getShowEarthNavPanel()
public void hidePip()
public void setShowPip(boolean value)
value - The new value for ShowPipPanelpublic boolean getShowPip()
public void setUseProgressiveResolution(boolean value)
value - The new value for Progressive Resolutionpublic boolean getUseProgressiveResolution()
public void setInitialMapResources(java.lang.String value)
value - The new value for InitialMapResourcespublic java.lang.String getTypeName()
getTypeName in class ViewManagerpublic float getDefaultMapPosition()
public void setGlobeBackgroundColor(java.awt.Color value)
value - The new value for GlobeBackgroundColorpublic java.awt.Color getGlobeBackgroundColor()
public java.awt.Color getGlobeBackgroundColorToUse()
public void setGlobeBackgroundShow(boolean value)
value - The new value for GlobeBackgroundShowpublic boolean getGlobeBackgroundShow()
public void setGlobeBackgroundLevel(double value)
value - The new value for GlobeBackgroundLevelpublic double getGlobeBackgroundLevel()
public void setFlythrough(Flythrough value)
value - The new value for Flythroughpublic Flythrough getFlythrough()
public void setShowMaps(boolean value)
value - The new value for ShowMapspublic boolean getShowMaps()
public void setDisplayProjectionZoom(double value)
value - The new value for DisplayProjectionZoompublic double getDisplayProjectionZoom()
public void setInitMapPaths(java.lang.String value)
value - The new value for InitMapPathspublic java.lang.String getInitMapPaths()
public void setInitLatLonVisible(boolean v)
v - true or falsepublic void setInitLatLonColor(java.awt.Color v)
v - the colorpublic void setInitLatLonWidth(int v)
v - the widthpublic void setInitLatLonSpacing(float v)
v - the spacingpublic void setInitMapWidth(float value)
value - The new value for InitMapWidthpublic float getInitMapWidth()
public void setInitMapColor(java.awt.Color value)
value - The new value for InitMapColorpublic java.awt.Color getInitMapColor()
public void setInitLatLonBounds(java.awt.geom.Rectangle2D.Float value)
value - The new value for InitLatLonBoundspublic java.awt.geom.Rectangle2D.Float getInitLatLonBounds()
public LatLonAxisScaleInfo getLatAxisScaleInfo()
public void setLatAxisScaleInfo(LatLonAxisScaleInfo axisScaleInfo) throws java.rmi.RemoteException, visad.VisADException
axisScaleInfo - the new lat axis scale infojava.rmi.RemoteException - the remote exceptionvisad.VisADException - the VisAD exceptionpublic LatLonAxisScaleInfo getLonAxisScaleInfo()
public void setLonAxisScaleInfo(LatLonAxisScaleInfo axisScaleInfo) throws java.rmi.RemoteException, visad.VisADException
axisScaleInfo - the new lon axis scale infojava.rmi.RemoteException - the remote exceptionvisad.VisADException - the vis ad exception