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, wait
onCreate
public 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 MapComponent
context
- the context of the component (the MapActivity instance)view
- the main MapViewpublic boolean onCreateOptionsMenu(android.content.Context context, android.view.Menu menu)
MapComponent
onCreateOptionsMenu
in interface MapComponent
context
- 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)
MapComponent
onPrepareOptionsMenu
in interface MapComponent
context
- 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)
MapComponent
onOptionsItemSelected
in interface MapComponent
context
- 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)
MapComponent
onOptionsMenuClosed
in interface MapComponent
context
- 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)
MapComponent
onConfigurationChanged
in interface MapComponent
newConfiguration
- called when the configuration changedActivity.onConfigurationChanged(Configuration)
public void onStart(android.content.Context context, MapView view)
onStart
in interface MapComponent
context
- the context of the component (the MapActivity instance)view
- the main MapViewpublic void onStop(android.content.Context context, MapView view)
onStop
in interface MapComponent
context
- the context of the component (the MapActivity instance)view
- the main MapViewpublic void onPause(android.content.Context context, MapView view)
onPause
in interface MapComponent
context
- the context of the component (the MapActivity instance)view
- the main MapViewpublic void onResume(android.content.Context context, MapView view)
onResume
in interface MapComponent
context
- the context of the component (the MapActivity instance)view
- the main MapView