|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.TimerTask
org.openstreetmap.josm.gui.bbox.SlippyMapControler.MoveTask
private class SlippyMapControler.MoveTask
Moves the map depending on which cursor keys are pressed (or not)
Field Summary | |
---|---|
private int |
directionX
The horizontal direction of movement, -1:left, 0:stop, 1:right |
private int |
directionY
The vertical direction of movement, -1:up, 0:stop, 1:down |
protected boolean |
scheduled
Indicated if moveTask is currently enabled (periodically
executed via timer) or disabled |
private double |
speedX
The current x speed (pixels per timer interval) |
private double |
speedY
The current y speed (pixels per timer interval) |
Constructor Summary | |
---|---|
private |
SlippyMapControler.MoveTask()
|
Method Summary | |
---|---|
void |
run()
|
protected void |
setDirectionX(int directionX)
|
protected void |
setDirectionY(int directionY)
|
private void |
updateScheduleStatus()
|
Methods inherited from class java.util.TimerTask |
---|
cancel, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private double speedX
private double speedY
private int directionX
private int directionY
protected boolean scheduled
moveTask
is currently enabled (periodically
executed via timer) or disabled
Constructor Detail |
---|
private SlippyMapControler.MoveTask()
Method Detail |
---|
protected void setDirectionX(int directionX)
protected void setDirectionY(int directionY)
private void updateScheduleStatus()
public void run()
run
in interface java.lang.Runnable
run
in class java.util.TimerTask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |