Class PanningSpeedMode

java.lang.Object
com.massifmaps.components.PanningSpeedMode

public final class PanningSpeedMode extends Object
How fast a one-finger pan moves the map on a TILTED view, where a touch near the horizon
corresponds to a point far away and a touch at the bottom of the screen to a near one.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    The accepted values of this constant namespace.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The scale is measured where the pan STARTS and stays fixed for the whole gesture:
    starting far away still pans fast and starting close still pans slowly, but the
    speed never changes while the finger is down.
    static final int
    The scale is measured at the centre of the screen, so it depends neither on where
    the finger started nor on where it goes - every pan moves the map at the same rate.
    static final int
    The map point under the finger follows it exactly, which is what a flat map does.
    On a tilted view the speed then changes DURING the gesture: a drag that starts near
    the camera and travels up the screen accelerates as the finger reaches parts of the
    screen that are further away.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • PANNING_SPEED_MODE_MAP

      public static final int PANNING_SPEED_MODE_MAP
      The map point under the finger follows it exactly, which is what a flat map does.
      On a tilted view the speed then changes DURING the gesture: a drag that starts near
      the camera and travels up the screen accelerates as the finger reaches parts of the
      screen that are further away.
      See Also:
    • PANNING_SPEED_MODE_ANCHORED

      public static final int PANNING_SPEED_MODE_ANCHORED
      The scale is measured where the pan STARTS and stays fixed for the whole gesture:
      starting far away still pans fast and starting close still pans slowly, but the
      speed never changes while the finger is down. The default.
      See Also:
    • PANNING_SPEED_MODE_CONSTANT

      public static final int PANNING_SPEED_MODE_CONSTANT
      The scale is measured at the centre of the screen, so it depends neither on where
      the finger started nor on where it goes - every pan moves the map at the same rate.
      See Also:
  • Constructor Details

    • PanningSpeedMode

      public PanningSpeedMode()