com.nutiteq.ui
Interface PanningStrategy

All Known Implementing Classes:
EventDrivenPanning, ThreadDrivenPanning

public interface PanningStrategy

General interface for panning strategy


Method Summary
 boolean isPanning()
          Is panning implementation still running
 void keyRepeated(int keyCode)
          Notify panning 'thread' about key repeated events
 void quit()
          Quit panning 'thread'
 void setMapComponent(com.nutiteq.ui.Pannable pannableObject)
          Will be called from library, after strategy has been entered into MapComponent or MapItem
 void start()
          Start panning 'thread'
 void startPanning(int xMove, int yMove, boolean panningWithKeys)
          Start panning with directions information.
 void stopPanning()
          Stop current pan action.
 

Method Detail

start

void start()
Start panning 'thread'


quit

void quit()
Quit panning 'thread'


startPanning

void startPanning(int xMove,
                  int yMove,
                  boolean panningWithKeys)
Start panning with directions information. Also notify if panning was started by key controls or some other event (for example on screen controls with stylus)

Parameters:
xMove - change on x axis
yMove - change on y axis
panningWithKeys - has panning been started by key events

isPanning

boolean isPanning()
Is panning implementation still running

Returns:
if panning 'thread' is still working

stopPanning

void stopPanning()
Stop current pan action.


keyRepeated

void keyRepeated(int keyCode)
Notify panning 'thread' about key repeated events

Parameters:
keyCode - code for key repeated

setMapComponent

void setMapComponent(com.nutiteq.ui.Pannable pannableObject)
Will be called from library, after strategy has been entered into MapComponent or MapItem

Parameters:
pannableObject - map object on which to perform panning actions