net.landspurg.map
Interface MapCanvasListener

All Known Implementing Classes:
MapMain

public interface MapCanvasListener

Can be used by an external class, to register to some event received by the canvas, and modify envetually the default behavior (mainly for key press.

The other feedback (oneLocationSelected) is called when the user select either with the keyboard of the touchscreen a specific location


Method Summary
 boolean mapKeyPressed(MapCanvas c, int code)
          Called when a key has been pressed.
 boolean oneLocationSelected(MapCanvas c, OneLoc theLoc)
          Callback called when the user select a location in the map
 

Method Detail

oneLocationSelected

boolean oneLocationSelected(MapCanvas c,
                            OneLoc theLoc)
Callback called when the user select a location in the map

Parameters:
theLoc - return true if default behavior (switch map/satellite) needs to be applied also

mapKeyPressed

boolean mapKeyPressed(MapCanvas c,
                      int code)
Called when a key has been pressed. Note: return true to keep default behavior...

Parameters:
started -
Returns: