|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.ui.WindowHolder
ucar.unidata.idv.IdvManager
ucar.unidata.idv.VMManager
public class VMManager
This class manages the set of ViewManagers. It handles
initializing them after unpersistence, managing the set of view manager
states (this is where you can save off the state of a view manager
and then reapply it. So you can save projection, map, etc., name it
and use it later.)
| Field Summary |
|---|
| Fields inherited from class ucar.unidata.ui.WindowHolder |
|---|
contents, dialog, frame, window |
| Constructor Summary | |
|---|---|
VMManager(IntegratedDataViewer idv)
Construct this manager with the given idv. |
|
| Method Summary | |
|---|---|
void |
addViewManager(ViewManager newViewManager)
Add the new view manager into the list if we don't have one with the ViewDescriptor of the new view manager
already. |
void |
addViewManagers(List newVms)
Add the view managers in the list |
void |
applyPreferences()
Apply the user preferences to all ViewManagers |
void |
captureAll()
Capture an image for all ViewManagers |
void |
center()
Set the projection on all MapViewManagers to be the projection of the first display. |
void |
center(EarthLocation el)
Center all of the MapViewManager-s at the given point |
void |
center(EarthLocation el,
List viewManagers)
Center the view managers in the list to the given point |
void |
center(List viewManagers)
Set the projection on all MapViewManagers to be the projection of the first display. |
void |
center(MapProjection mp)
Center all of the MapViewManager-s at the given point |
void |
center(MapProjection mp,
List viewManagers)
Center all of the MapViewManager-s at the given point |
void |
center(ucar.unidata.geoloc.ProjectionRect pr)
Zoom and center all of the MapViewManager-s at the given rect |
void |
center(ucar.unidata.geoloc.ProjectionRect pr,
List viewManagers)
Zoom and center all of the MapViewManager-s at the given rect |
ViewManager |
createViewManager(ViewDescriptor viewDescriptor,
String properties)
Create the given ViewManager |
ViewManager |
findOrCreateViewManager(ViewDescriptor viewDescriptor,
String properties)
As the name implies find the view manager identified by the given viewDescriptor or create a new one. |
List |
findTransectDrawingControls()
Find a TDC |
ViewManager |
findViewManager(ViewDescriptor viewDescriptor)
Find the view manager identified by the given view descriptor |
static ViewManager |
findViewManagerInList(ViewDescriptor viewDescriptor,
List vms)
Find the view manager in the given list that is defined by the given view descriptor. |
ViewManager |
getLastActiveViewManager()
Get the ViewManager whose window was last active. |
List |
getViewManagers()
Get the list of active ViewManagers |
List |
getViewManagers(Class c)
Get all of the view managers of the given class |
List |
getVMState()
Instantiates (if needed) and returns the list of TwoFacedObjects that is the set of saved ViewManagers |
boolean |
haveMoreThanOneMainViewManager()
Is there currently more than one possibly active viewmanager |
void |
removeAllViewManagers()
Remove all view managers |
void |
removeAllViewManagers(boolean andDestroyThem)
Remove all view managers |
void |
removeViewManager(ViewManager viewManager)
Remove the given view manager from the list. |
protected void |
saveViewManagerState(ViewManager vm)
Popup a dialog asking the user for the name of the saved ViewManager. |
protected void |
setDisplayMastersActive()
Iterate through all of the ViewManager-s and tell each on to setMasterActive |
protected void |
setDisplayMastersInactive()
Iterate through all of the ViewManager-s and tell each on to setMasterInactive |
void |
setLastActiveViewManager(ViewManager viewManager)
Set the ViewManager whose window was last active. |
void |
setTransect(Transect transect)
Set the Transect used for all TransectViewManagers |
void |
showProjectionManager()
Find the first ViewManager in the list and
have it show its @[link ucar.unidata.view.geoloc.ProjectionManager}. |
void |
transectViewsChanged()
Be notified that a transect view manager has changed. |
void |
unpersistViewManagers(List newViewManagers)
Do the initialization of the unpersisted ViewManager. |
void |
writeVMState()
Write the vmState list to the file: ~user/.metapps/<APP>/vmstate.xml |
| Methods inherited from class ucar.unidata.ui.WindowHolder |
|---|
actionPerformed, close, doMakeContents, getContents, getDialog, getFrame, getWindow, getWindowTitle, isShowing, removeAll, setWindowTitle, shouldMakeDialog, show, show, showModal, toFront, windowIsClosing |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VMManager(IntegratedDataViewer idv)
idv - The IDV| Method Detail |
|---|
public List getViewManagers()
ViewManagers
public List getViewManagers(Class c)
c - ViewManager class
public void captureAll()
public void applyPreferences()
public void setLastActiveViewManager(ViewManager viewManager)
ViewManager whose window was last active.
viewManager - The last active view managerpublic boolean haveMoreThanOneMainViewManager()
public ViewManager getLastActiveViewManager()
ViewManager whose window was last active.
public ViewManager findViewManager(ViewDescriptor viewDescriptor)
viewDescriptor - The id of the VM
public static ViewManager findViewManagerInList(ViewDescriptor viewDescriptor,
List vms)
viewDescriptor - The view descriptorvms - List of ViewManagers
public void transectViewsChanged()
public List findTransectDrawingControls()
public void writeVMState()
public List getVMState()
TwoFacedObjects that is the set of saved ViewManagers
protected void saveViewManagerState(ViewManager vm)
vm - The view manager to savepublic void addViewManager(ViewManager newViewManager)
ViewDescriptor of the new view manager
already.
newViewManager - The new view managerpublic void addViewManagers(List newVms)
newVms - New view managerspublic void removeAllViewManagers()
public void removeAllViewManagers(boolean andDestroyThem)
andDestroyThem - If true then also call destroypublic void removeViewManager(ViewManager viewManager)
viewManager - The view manager to be removed.public void showProjectionManager()
ViewManager in the list and
have it show its @[link ucar.unidata.view.geoloc.ProjectionManager}.
public void unpersistViewManagers(List newViewManagers)
ViewManager.
newViewManagers - List of view managers to unpersistprotected void setDisplayMastersActive()
protected void setDisplayMastersInactive()
public ViewManager findOrCreateViewManager(ViewDescriptor viewDescriptor,
String properties)
viewDescriptor - The id to look forproperties - Properties to pass if we create one.
public ViewManager createViewManager(ViewDescriptor viewDescriptor,
String properties)
viewDescriptor - Identifies the VMproperties - Property string to pass
public void center(EarthLocation el)
throws VisADException,
RemoteException
el - The point
RemoteException - On badness
VisADException - On badness
public void center(EarthLocation el,
List viewManagers)
throws VisADException,
RemoteException
el - Point to center toviewManagers - ViewManagers to center
RemoteException - On badness
VisADException - On badness
public void center(MapProjection mp)
throws VisADException,
RemoteException
mp - Set all view managers projection to the
RemoteException - On badness
VisADException - On badness
public void center(MapProjection mp,
List viewManagers)
throws VisADException,
RemoteException
mp - new projectionviewManagers - ViewManagers to center
RemoteException - On badness
VisADException - On badness
public void center(ucar.unidata.geoloc.ProjectionRect pr)
throws VisADException,
RemoteException
pr - The projection rect to zoom and center to
RemoteException - On badness
VisADException - On badness
public void center(ucar.unidata.geoloc.ProjectionRect pr,
List viewManagers)
throws VisADException,
RemoteException
pr - The projection rect to zoom and center toviewManagers - ViewManagers to center
RemoteException - On badness
VisADException - On badness
public void center()
throws VisADException,
RemoteException
RemoteException - On badness
VisADException - On badness
public void center(List viewManagers)
throws VisADException,
RemoteException
viewManagers - ViewManagers to center
RemoteException - On badness
VisADException - On badnesspublic void setTransect(Transect transect)
transect - The transect
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||