public abstract class AbstractMapComponent extends java.lang.Object implements MapComponent
| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
AbstractMapComponent.OnAllComponentsCreatedCallback  | 
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
TAG  | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
AbstractMapComponent()  | 
protected  | 
AbstractMapComponent(boolean removeReceiversOnDestroy)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
addOverlay(MapView view,
          MapOverlay o)  | 
void | 
onConfigurationChanged(android.content.res.Configuration newConfiguration)
Implementation of onConfigurationChanged used to handle configuration changes for each
 mapComponent. 
 | 
boolean | 
onCreateOptionsMenu(android.content.Context context,
                   android.view.Menu menu)
Is called on all Map Components when the onCreateOptionsMenu is called on the Map Activity. 
 | 
void | 
onDestroy(android.content.Context context,
         MapView view)
This method is called during MapComponent destruction and additionally calls the subclass
 implementation of onDestroyImpl 
 | 
protected abstract void | 
onDestroyImpl(android.content.Context context,
             MapView view)
This method is invoked as a subset of the onDestroy call as part of the
 MapComponent lifecycle. 
 | 
boolean | 
onOptionsItemSelected(android.content.Context context,
                     android.view.MenuItem item)
Called on a onOptionsItemSelected is called and not found in regular activity. 
 | 
void | 
onOptionsMenuClosed(android.content.Context context,
                   android.view.Menu menu)
Option menu has been closed in MapActivity. 
 | 
void | 
onPause(android.content.Context context,
       MapView view)
Default implementation for an abstract map component which does not respond to the onPause
 state transition. 
 | 
boolean | 
onPrepareOptionsMenu(android.content.Context context,
                    android.view.Menu menu)
Called to Update the Options Menu on all MapComponents in the MapActivity. 
 | 
void | 
onResume(android.content.Context context,
        MapView view)
Default implementation for an abstract map component which does not respond to the onResume
 state transition. 
 | 
void | 
onStart(android.content.Context context,
       MapView view)
Default implementation for an abstract map component which does not respond to the onStart
 state transition. 
 | 
void | 
onStop(android.content.Context context,
      MapView view)
Default implementation for an abstract map component which does not respond to the onStop
 state transition. 
 | 
protected void | 
registerReceiver(android.content.Context ignored,
                android.content.BroadcastReceiver receiver,
                AtakBroadcast.DocumentedIntentFilter filter)  | 
protected void | 
removeOverlay(MapView view,
             MapOverlay o)  | 
protected void | 
setOnAllComponentsCreatedCallback(android.content.Context context,
                                 AbstractMapComponent.OnAllComponentsCreatedCallback callback)  | 
protected void | 
unregisterReceiver(android.content.Context ignored,
                  android.content.BroadcastReceiver receiver)  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonCreatepublic static final java.lang.String TAG
protected AbstractMapComponent()
protected AbstractMapComponent(boolean removeReceiversOnDestroy)
protected final void setOnAllComponentsCreatedCallback(android.content.Context context,
                                                       AbstractMapComponent.OnAllComponentsCreatedCallback callback)
protected final void registerReceiver(android.content.Context ignored,
                                      android.content.BroadcastReceiver receiver,
                                      AtakBroadcast.DocumentedIntentFilter filter)
protected final void unregisterReceiver(android.content.Context ignored,
                                        android.content.BroadcastReceiver receiver)
protected final void addOverlay(MapView view, MapOverlay o)
protected final void removeOverlay(MapView view, MapOverlay o)
protected abstract void onDestroyImpl(android.content.Context context,
                                      MapView view)
public final void onDestroy(android.content.Context context,
                            MapView view)
onDestroy in interface MapComponentcontext - the context of the component (the MapActivity instance)view - the main MapViewpublic boolean onCreateOptionsMenu(android.content.Context context,
                                   android.view.Menu menu)
MapComponentonCreateOptionsMenu in interface MapComponentcontext - the context of the component (the MapActivity instance)menu - The options menu in which you place your items.Activity.onCreateOptionsMenu(Menu)public boolean onPrepareOptionsMenu(android.content.Context context,
                                    android.view.Menu menu)
MapComponentonPrepareOptionsMenu in interface MapComponentcontext - the context of the component (the MapActivity instance)menu - The options menu in which you place your items.public boolean onOptionsItemSelected(android.content.Context context,
                                     android.view.MenuItem item)
MapComponentonOptionsItemSelected in interface MapComponentcontext - the context of the component (the MapActivity instance)item - The menu item that was selected.Activity.onOptionsItemSelected(MenuItem)public void onOptionsMenuClosed(android.content.Context context,
                                android.view.Menu menu)
MapComponentonOptionsMenuClosed in interface MapComponentcontext - the context of the component (the MapActivity instance)menu - The options menu in which you place your items.Activity.onOptionsMenuClosed(Menu)public void onConfigurationChanged(android.content.res.Configuration newConfiguration)
MapComponentonConfigurationChanged in interface MapComponentnewConfiguration - called when the configuration changedActivity.onConfigurationChanged(Configuration)public void onStart(android.content.Context context,
                    MapView view)
onStart in interface MapComponentcontext - the context of the component (the MapActivity instance)view - the main MapViewpublic void onStop(android.content.Context context,
                   MapView view)
onStop in interface MapComponentcontext - the context of the component (the MapActivity instance)view - the main MapViewpublic void onPause(android.content.Context context,
                    MapView view)
onPause in interface MapComponentcontext - the context of the component (the MapActivity instance)view - the main MapViewpublic void onResume(android.content.Context context,
                     MapView view)
onResume in interface MapComponentcontext - the context of the component (the MapActivity instance)view - the main MapView