|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.nutiteq.ui.EventDrivenPanning
public class EventDrivenPanning
Unthreaded panning implementation that uses key repeated events for panning.
Map moving speed is progressive, based on panning action length. At first map
is moved by one pixel, then by 2, 4 and 8 pixels.
NOTE - because MapComponent has an unthreaded
implementation, this panning strategy can't be used with default on screen
controls for panning with stylus. With stylus there are no continuous events
created and there is no way to know if panning is still active.
| Constructor Summary | |
|---|---|
EventDrivenPanning()
|
|
| 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 mapComponent)
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventDrivenPanning()
| Method Detail |
|---|
public boolean isPanning()
PanningStrategy
isPanning in interface PanningStrategypublic void quit()
PanningStrategy
quit in interface PanningStrategypublic void start()
PanningStrategy
start in interface PanningStrategy
public void startPanning(int xMove,
int yMove,
boolean panningWithKeys)
PanningStrategy
startPanning in interface PanningStrategyxMove - change on x axisyMove - change on y axispanningWithKeys - has panning been started by key eventspublic void stopPanning()
PanningStrategy
stopPanning in interface PanningStrategypublic void keyRepeated(int keyCode)
PanningStrategy
keyRepeated in interface PanningStrategykeyCode - code for key repeatedpublic void setMapComponent(com.nutiteq.ui.Pannable mapComponent)
PanningStrategyMapComponent or MapItem
setMapComponent in interface PanningStrategymapComponent - map object on which to perform panning actions
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||