Package org.openstreetmap.josm.gui.bbox
Class SlippyMapController.MoveTask
java.lang.Object
java.util.TimerTask
org.openstreetmap.josm.gui.bbox.SlippyMapController.MoveTask
- All Implemented Interfaces:
Runnable
- Enclosing class:
- SlippyMapController
Moves the map depending on which cursor keys are pressed (or not)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intThe horizontal direction of movement, -1:left, 0:stop, 1:rightprivate intThe vertical direction of movement, -1:up, 0:stop, 1:down(package private) booleanIndicated ifmoveTaskis currently enabled (periodically executed via timer) or disabledprivate doubleThe current x speed (pixels per timer interval)private doubleThe current y speed (pixels per timer interval) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrun()(package private) voidsetDirectionX(int directionX) (package private) voidsetDirectionY(int directionY) private voidMethods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Field Details
-
speedX
The current x speed (pixels per timer interval) -
speedY
The current y speed (pixels per timer interval) -
directionX
The horizontal direction of movement, -1:left, 0:stop, 1:right -
directionY
The vertical direction of movement, -1:up, 0:stop, 1:down -
scheduled
boolean scheduledIndicated ifmoveTaskis currently enabled (periodically executed via timer) or disabled
-
-
Constructor Details
-
MoveTask
private MoveTask()
-
-
Method Details