public class MapEventDispatcher
extends java.lang.Object
MapEvent
s. The
MapView
encapsulates an instance of MapEventDispatcher
available through MapView.getMapEventDispatcher()
.Modifier and Type | Class and Description |
---|---|
static interface |
MapEventDispatcher.MapEventDispatchListener |
static interface |
MapEventDispatcher.OnMapEventListener |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
Constructor and Description |
---|
MapEventDispatcher() |
Modifier and Type | Method and Description |
---|---|
void |
addMapEventListener(MapEventDispatcher.MapEventDispatchListener l)
Use this if you only if want to listen to all MapEvents fired in ATAK
|
void |
addMapEventListener(java.lang.String eventType,
MapEventDispatcher.MapEventDispatchListener l) |
void |
addMapEventListenerToBase(java.lang.String eventType,
MapEventDispatcher.MapEventDispatchListener l) |
void |
addMapItemEventListener(MapItem item,
MapEventDispatcher.OnMapEventListener listener) |
void |
allow(java.lang.String eventType) |
void |
clearListeners() |
void |
clearListeners(java.lang.String listenerType) |
void |
clearUserInteractionListeners(boolean clearMapScroll)
Only clear listeners that directly manipulate the map.
|
void |
dispatch(MapEvent event) |
boolean |
hasMapEventListener(java.lang.String eventType) |
void |
ignore(java.lang.String eventType) |
void |
popListeners() |
void |
pushListeners() |
void |
removeMapEventListener(MapEventDispatcher.MapEventDispatchListener l)
Use this if you only if want to remove a listener for registered using
addMapEventListener
|
void |
removeMapEventListener(java.lang.String eventType,
MapEventDispatcher.MapEventDispatchListener l) |
void |
removeMapEventListenerFromBase(java.lang.String eventType,
MapEventDispatcher.MapEventDispatchListener l) |
void |
removeMapItemEventListener(MapItem item,
MapEventDispatcher.OnMapEventListener listener) |
public static final java.lang.String TAG
public void pushListeners()
public void popListeners()
public void clearUserInteractionListeners(boolean clearMapScroll)
clearMapScroll
- to clear the map scroll behaviorpublic void clearListeners()
public void clearListeners(java.lang.String listenerType)
public void addMapEventListener(MapEventDispatcher.MapEventDispatchListener l)
l
- public void removeMapEventListener(MapEventDispatcher.MapEventDispatchListener l)
l
- the map event dispatch listener to removepublic void addMapEventListenerToBase(java.lang.String eventType, MapEventDispatcher.MapEventDispatchListener l)
eventType
- l
- public void removeMapEventListenerFromBase(java.lang.String eventType, MapEventDispatcher.MapEventDispatchListener l)
public void addMapEventListener(java.lang.String eventType, MapEventDispatcher.MapEventDispatchListener l)
eventType
- l
- public void removeMapEventListener(java.lang.String eventType, MapEventDispatcher.MapEventDispatchListener l)
public boolean hasMapEventListener(java.lang.String eventType)
public void addMapItemEventListener(MapItem item, MapEventDispatcher.OnMapEventListener listener)
public void removeMapItemEventListener(MapItem item, MapEventDispatcher.OnMapEventListener listener)
public void ignore(java.lang.String eventType)
public void allow(java.lang.String eventType)
public void dispatch(MapEvent event)