Package org.oscim.map
Class Animator2
java.lang.Object
org.oscim.map.Animator
org.oscim.map.Animator2
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic floatThe friction scalar for fling movements (1 as base).static floatThe friction scalar for fling rotations (1 as base).static floatThe friction scalar for fling scales (1 as base).Fields inherited from class org.oscim.map.Animator
ANIM_FLING, ANIM_MOVE, ANIM_NONE, ANIM_ROTATE, ANIM_SCALE, ANIM_TILT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidanimateFlingRotate(float angularVelocity, float pivotX, float pivotY) Animates a physical fling for rotations.voidanimateFlingScroll(float velocityX, float velocityY, int xmin, int xmax, int ymin, int ymax) Animates a physical fling for scrolls.voidanimateFlingZoom(float scaleVelocity, float pivotX, float pivotY) Animates a physical fling for zooms.voidkineticScroll(float velocityX, float velocityY, int xmin, int xmax, int ymin, int ymax) Alternative implementation of Animator'sanimateFling.Methods inherited from class org.oscim.map.Animator
animateFling, animateTo, animateTo, animateTo, animateTo, animateTo, animateTo, animateTo, animateTo, animateTo, animateTo, animateTo, animateTo, animateTo, animateZoom, animateZoom, cancel, getEndPosition, isActive
-
Field Details
-
FLING_FRICTION_MOVE
public static float FLING_FRICTION_MOVEThe friction scalar for fling movements (1 as base). -
FLING_FRICTION_ROTATE
public static float FLING_FRICTION_ROTATEThe friction scalar for fling rotations (1 as base). -
FLING_FRICTION_SCALE
public static float FLING_FRICTION_SCALEThe friction scalar for fling scales (1 as base).
-
-
Constructor Details
-
Animator2
-
-
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 resolutionvelocityY- 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'sanimateFling. Uses scheme of predictable animations using mDeltaPos.- Parameters:
velocityX- the x velocity depends on screen resolutionvelocityY- the y velocity depends on screen resolution
-