Class SlippyMapController.MoveTask

java.lang.Object
java.util.TimerTask
org.openstreetmap.josm.gui.bbox.SlippyMapController.MoveTask
All Implemented Interfaces:
Runnable
Enclosing class:
SlippyMapController

private final class SlippyMapController.MoveTask extends TimerTask
Moves the map depending on which cursor keys are pressed (or not)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
    The horizontal direction of movement, -1:left, 0:stop, 1:right
    private int
    The vertical direction of movement, -1:up, 0:stop, 1:down
    (package private) boolean
    Indicated if moveTask is currently enabled (periodically executed via timer) or disabled
    private double
    The current x speed (pixels per timer interval)
    private double
    The current y speed (pixels per timer interval)
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run()
     
    (package private) void
    setDirectionX(int directionX)
     
    (package private) void
    setDirectionY(int directionY)
     
    private void
     

    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 Details

    • speedX

      private double speedX
      The current x speed (pixels per timer interval)
    • speedY

      private double speedY
      The current y speed (pixels per timer interval)
    • directionX

      private int directionX
      The horizontal direction of movement, -1:left, 0:stop, 1:right
    • directionY

      private int directionY
      The vertical direction of movement, -1:up, 0:stop, 1:down
    • scheduled

      boolean scheduled
      Indicated if moveTask is currently enabled (periodically executed via timer) or disabled
  • Constructor Details

  • Method Details