public class MapEventListener
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Constructor and Description |
---|
MapEventListener() |
MapEventListener(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
protected void |
finalize() |
static long |
getCPtr(MapEventListener obj) |
void |
onAfterDrawFrame()
Listener method that gets called at the end of the rendering process.
This method is called from GL renderer thread, not from main thread. |
void |
onBeforeDrawFrame()
Listener method that gets called at the start of the rendering process.
The method can be used to synchronize vector elements with renderer state, for example to force marker to be always at the center of the screen (focus point). This method is called from GL renderer thread, not from main thread. |
void |
onMapClicked(MapClickInfo mapClickInfo)
Listener method that gets called when a click is performed on an empty area of the map.
This method will NOT be called from the main thread. |
void |
onMapIdle()
Listener method that gets called at the end of the rendering process when the
map view needs no further refreshing. Note that there can still be background processes (tile loading) that may change the map view but these may take long time. This method is called from GL renderer thread, not from main thread. |
void |
onMapMoved()
Listener method that gets called when the map is panned, rotated, tilted or zoomed.
The thread this method is called from may vary. |
void |
onMapStable()
Listener method that gets called when map is in 'stable' state - map animations have finished,
user has lifted fingers from the screen. |
void |
onVectorElementClicked(VectorElementsClickInfo vectorElementsClickInfo)
Listener method that gets called when a click is performed on a vector element.
If there are multiple vector elements that are located at the click position, then the results will be sorted by their distance to the camera. |
static MapEventListener |
swigCreatePolymorphicInstance(long cPtr,
boolean cMemoryOwn)
Creates a polymorphic instance of the given native object.
|
protected void |
swigDirectorDisconnect() |
java.lang.String |
swigGetClassName()
Returns the actual class name of this object.
|
java.lang.Object |
swigGetDirectorObject()
Returns the connected director object.
|
void |
swigReleaseOwnership() |
void |
swigTakeOwnership() |
public MapEventListener(long cPtr, boolean cMemoryOwn)
public MapEventListener()
public static long getCPtr(MapEventListener obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
protected void swigDirectorDisconnect()
public void swigReleaseOwnership()
public void swigTakeOwnership()
public static MapEventListener swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
public void onMapIdle()
public void onMapMoved()
public void onMapStable()
public void onMapClicked(MapClickInfo mapClickInfo)
mapClickInfo
- A container that provides information about the click.public void onVectorElementClicked(VectorElementsClickInfo vectorElementsClickInfo)
vectorElementsClickInfo
- A container that provides information about the click.public void onBeforeDrawFrame()
public void onAfterDrawFrame()
public java.lang.String swigGetClassName()
public java.lang.Object swigGetDirectorObject()