private class SlippyMapControler.MoveTask extends TimerTask
Modifier and Type | Field and Description |
---|---|
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)
|
Modifier | Constructor and Description |
---|---|
private |
MoveTask() |
Modifier and Type | Method and Description |
---|---|
void |
run() |
protected void |
setDirectionX(int directionX) |
protected void |
setDirectionY(int directionY) |
private void |
updateScheduleStatus() |
cancel, scheduledExecutionTime
private double speedX
private double speedY
private int directionX
private int directionY
protected boolean scheduled
moveTask
is currently enabled (periodically
executed via timer) or disabledprivate MoveTask()
protected void setDirectionX(int directionX)
protected void setDirectionY(int directionY)
private void updateScheduleStatus()