/** * Center all of the MapViewManager-s at the given point * * @param mp new projection * @param viewManagers ViewManagers to center * @throws RemoteException On badness * @throws VisADException On badness */ public void center(MapProjection mp, 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 mvm = (MapViewManager) viewManager; mvm.setMapProjection(mp, false); } }