Package org.oscim.map

Class Animator2

java.lang.Object
org.oscim.map.Animator
org.oscim.map.Animator2

public class Animator2 extends Animator
  • Field Details

    • FLING_FRICTION_MOVE

      public static float FLING_FRICTION_MOVE
      The friction scalar for fling movements (1 as base).
    • FLING_FRICTION_ROTATE

      public static float FLING_FRICTION_ROTATE
      The friction scalar for fling rotations (1 as base).
    • FLING_FRICTION_SCALE

      public static float FLING_FRICTION_SCALE
      The friction scalar for fling scales (1 as base).
  • Constructor Details

    • Animator2

      public Animator2(Map map)
  • Method Details

    • animateFlingRotate

      public void animateFlingRotate(float angularVelocity, float pivotX, float pivotY)
      Animates a physical fling for rotations.
      Parameters:
      angularVelocity - angular velocity in radians
    • animateFlingScroll

      public void animateFlingScroll(float velocityX, float velocityY, int xmin, int xmax, int ymin, int ymax)
      Animates a physical fling for scrolls.
      Parameters:
      velocityX - the x velocity depends on screen resolution
      velocityY - the y velocity depends on screen resolution
    • animateFlingZoom

      public void animateFlingZoom(float scaleVelocity, float pivotX, float pivotY)
      Animates a physical fling for zooms.
      Parameters:
      scaleVelocity - the scale velocity depends on screen resolution
    • kineticScroll

      public void kineticScroll(float velocityX, float velocityY, int xmin, int xmax, int ymin, int ymax)
      Alternative implementation of Animator's animateFling. Uses scheme of predictable animations using mDeltaPos.
      Parameters:
      velocityX - the x velocity depends on screen resolution
      velocityY - the y velocity depends on screen resolution