/** * Set the projection on all MapViewManagers to be the projection of the first display. * * @param viewManagers ViewManagers to center * @throws RemoteException On badness * @throws VisADException On badness */ public void center(List viewManagers) throws VisADException, RemoteException { for (int i = 0; i < viewManagers.size(); i++) { ViewManager viewManager = (ViewManager) viewManagers.get(i); if (!(viewManager instanceof MapViewManager)) { continue; } ((MapViewManager) viewManager).setProjectionFromFirstDisplay(); } }