public class Animator2 extends Animator
| Modifier and Type | Field and Description |
|---|---|
static float |
FLING_FRICTION_MOVE
The friction scalar for fling movements (1 as base).
|
static float |
FLING_FRICTION_ROTATE
The friction scalar for fling rotations (1 as base).
|
static float |
FLING_FRICTION_SCALE
The friction scalar for fling scales (1 as base).
|
ANIM_FLING, ANIM_MOVE, ANIM_NONE, ANIM_ROTATE, ANIM_SCALE, ANIM_TILT| Modifier and Type | Method and Description |
|---|---|
void |
animateFlingRotate(float angularVelocity,
float pivotX,
float pivotY)
Animates a physical fling for rotations.
|
void |
animateFlingScroll(float velocityX,
float velocityY,
int xmin,
int xmax,
int ymin,
int ymax)
Animates a physical fling for scrolls.
|
void |
animateFlingZoom(float scaleVelocity,
float pivotX,
float pivotY)
Animates a physical fling for zooms.
|
void |
kineticScroll(float velocityX,
float velocityY,
int xmin,
int xmax,
int ymin,
int ymax)
Alternative implementation of Animator's
animateFling. |
animateFling, animateTo, animateTo, animateTo, animateTo, animateTo, animateTo, animateTo, animateTo, animateTo, animateTo, animateTo, animateTo, animateTo, animateZoom, animateZoom, cancel, getEndPosition, isActivepublic static float FLING_FRICTION_MOVE
public static float FLING_FRICTION_ROTATE
public static float FLING_FRICTION_SCALE
public Animator2(Map map)
public void animateFlingRotate(float angularVelocity,
float pivotX,
float pivotY)
angularVelocity - angular velocity in radianspublic void animateFlingScroll(float velocityX,
float velocityY,
int xmin,
int xmax,
int ymin,
int ymax)
velocityX - the x velocity depends on screen resolutionvelocityY - the y velocity depends on screen resolutionpublic void animateFlingZoom(float scaleVelocity,
float pivotX,
float pivotY)
scaleVelocity - the scale velocity depends on screen resolutionpublic void kineticScroll(float velocityX,
float velocityY,
int xmin,
int xmax,
int ymin,
int ymax)
animateFling.
Uses scheme of predictable animations using mDeltaPos.velocityX - the x velocity depends on screen resolutionvelocityY - the y velocity depends on screen resolution