public class FiresToolbar extends java.lang.Object implements IToolbarExtension, android.view.View.OnTouchListener, android.view.View.OnLongClickListener, android.content.SharedPreferences.OnSharedPreferenceChangeListener, ClearContentRegistry.ClearContentListener
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG |
| Modifier and Type | Method and Description |
|---|---|
static void |
dispose() |
static FiresToolbar |
getInstance(MapView mapView)
Get a new instance of the FiresToolbar if one doesn't exist.
|
ActionBarView |
getToolbarView()
Implement this method to return the view that should be placed in the toolbar drawer when
your component has control of it.
|
java.util.List<Tool> |
getTools()
Implement this method to return a set of tools to be managed by ToolbarLibrary.
|
boolean |
hasToolbar()
Implement this method to tell ToolbarLibrary whether your component will sometimes take
control of the toolbar's contents or whether it only implements tools without implementing a
toolbar.
|
void |
onClearContent(boolean clearmaps)
Used to remove the markers from the map in case of a zeroize action.
|
boolean |
onLongClick(android.view.View view) |
void |
onSharedPreferenceChanged(android.content.SharedPreferences prefs,
java.lang.String key) |
void |
onToolbarVisible(boolean vis) |
boolean |
onTouch(android.view.View view,
android.view.MotionEvent motionEvent) |
public static final java.lang.String TAG
public static FiresToolbar getInstance(MapView mapView)
mapView - MapView to pass to the constructorpublic static void dispose()
public java.util.List<Tool> getTools()
IToolbarExtensiongetTools in interface IToolbarExtensionpublic ActionBarView getToolbarView()
IToolbarExtensiongetToolbarView in interface IToolbarExtensionpublic void onSharedPreferenceChanged(android.content.SharedPreferences prefs,
java.lang.String key)
onSharedPreferenceChanged in interface android.content.SharedPreferences.OnSharedPreferenceChangeListenerpublic boolean onLongClick(android.view.View view)
onLongClick in interface android.view.View.OnLongClickListenerpublic boolean hasToolbar()
IToolbarExtensionhasToolbar in interface IToolbarExtensionpublic boolean onTouch(android.view.View view,
android.view.MotionEvent motionEvent)
onTouch in interface android.view.View.OnTouchListenerpublic void onToolbarVisible(boolean vis)
onToolbarVisible in interface IToolbarExtensionpublic void onClearContent(boolean clearmaps)
onClearContent in interface ClearContentRegistry.ClearContentListenerclearmaps - True to clear map source and cache data