org.hdtourist.view.utils
Class MapEventListener

java.lang.Object
  extended by com.nutiteq.ui.MapListener
      extended by org.hdtourist.view.utils.MapEventListener

public class MapEventListener
extends com.nutiteq.ui.MapListener

The listener interface for receiving mapEvent events. The class that is interested in processing a mapEvent event implements this interface, and the object created with that class is registered with a component using the component's addMapEventListener method. When the mapEvent event occurs, that object's appropriate method is invoked.

See Also:
MapEventEvent

Field Summary
private  android.app.Activity activity
          The activity.
private  boolean labelsClickables
          The labels clickables.
 
Constructor Summary
MapEventListener(android.app.Activity activity, boolean labelsClickables)
          Instantiates a new map event listener.
 
Method Summary
 void onLabelClicked(com.nutiteq.geometry.VectorElement arg0, boolean arg1)
           
 void onMapClicked(double arg0, double arg1, boolean arg2)
           
 void onMapMoved()
           
 void onVectorElementClicked(com.nutiteq.geometry.VectorElement arg0, double arg1, double arg2, boolean arg3)
           
 
Methods inherited from class com.nutiteq.ui.MapListener
getBackgroundTaskCounter, onBackgroundTaskFinishedInternal, onBackgroundTasksFinished, onBackgroundTasksStarted, onBackgroundTaskStartedInternal, onDrawFrame, onDrawFrameAfter3D, onDrawFrameBefore3D, onLabelClickedInternal, onMapClickedInternal, onMapMovedInternal, onSurfaceChanged, onSurfaceCreated, onVectorElementClickedInternal, showLabelOnVectorElementClick
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

activity

private android.app.Activity activity
The activity.


labelsClickables

private boolean labelsClickables
The labels clickables.

Constructor Detail

MapEventListener

public MapEventListener(android.app.Activity activity,
                        boolean labelsClickables)
Instantiates a new map event listener.

Parameters:
activity - the activity
labelsClickables - the labels clickables
Method Detail

onLabelClicked

public void onLabelClicked(com.nutiteq.geometry.VectorElement arg0,
                           boolean arg1)
Specified by:
onLabelClicked in class com.nutiteq.ui.MapListener

onMapClicked

public void onMapClicked(double arg0,
                         double arg1,
                         boolean arg2)
Specified by:
onMapClicked in class com.nutiteq.ui.MapListener

onMapMoved

public void onMapMoved()
Specified by:
onMapMoved in class com.nutiteq.ui.MapListener

onVectorElementClicked

public void onVectorElementClicked(com.nutiteq.geometry.VectorElement arg0,
                                   double arg1,
                                   double arg2,
                                   boolean arg3)
Specified by:
onVectorElementClicked in class com.nutiteq.ui.MapListener