public MapController getMapController ( ) { final GraphicsController controller = mapWidget . getController ( ) ; MapController mapController = new MapController ( this , controller ) ; mapController . setActivationHandler ( new ExportableFunction ( ) { public void execute ( ) { controller . onActivate ( ) ; } } ) ; mapController . setDeactivationHandler ( new ExportableFunction ( ) { public void execute ( ) { controller . onDeactivate ( ) ; } } ) ; return mapController ; }
Return the currently active controller on the map .