public class CameraAnimator extends java.lang.Object implements ICameraAnimator, android.animation.Animator.AnimatorListener, android.animation.ValueAnimator.AnimatorUpdateListener
ICameraController
Modifier and Type | Field and Description |
---|---|
protected android.animation.ValueAnimator |
animator |
Constructor and Description |
---|
CameraAnimator()
Creates a new instance of
CameraAnimator |
Modifier and Type | Method and Description |
---|---|
void |
animate(Vector3 position,
Vector3 target,
long duration)
Animates camera to specified
position and target position with specified duration |
void |
attachTo(com.scichart.core.IServiceContainer services) |
void |
cancelAnimation()
Cancels running animation
|
void |
detach() |
boolean |
isAnimating()
Gets the value indicating whether the animation is running
|
boolean |
isAttached() |
void |
onAnimationCancel(android.animation.Animator animation) |
void |
onAnimationEnd(android.animation.Animator animation) |
void |
onAnimationRepeat(android.animation.Animator animation) |
void |
onAnimationStart(android.animation.Animator animation) |
void |
onAnimationUpdate(android.animation.ValueAnimator animation) |
public CameraAnimator()
CameraAnimator
public void attachTo(com.scichart.core.IServiceContainer services)
attachTo
in interface com.scichart.core.framework.IAttachable
public void detach()
detach
in interface com.scichart.core.framework.IAttachable
public boolean isAttached()
isAttached
in interface com.scichart.core.framework.IAttachable
public final boolean isAnimating()
isAnimating
in interface ICameraAnimator
public void animate(Vector3 position, Vector3 target, long duration)
position
and target
position with specified durationanimate
in interface ICameraAnimator
position
- The final position of cameratarget
- The final target of cameraduration
- The animation durationpublic void cancelAnimation()
cancelAnimation
in interface ICameraAnimator
public void onAnimationUpdate(android.animation.ValueAnimator animation)
onAnimationUpdate
in interface android.animation.ValueAnimator.AnimatorUpdateListener
public void onAnimationStart(android.animation.Animator animation)
onAnimationStart
in interface android.animation.Animator.AnimatorListener
public void onAnimationEnd(android.animation.Animator animation)
onAnimationEnd
in interface android.animation.Animator.AnimatorListener
public void onAnimationCancel(android.animation.Animator animation)
onAnimationCancel
in interface android.animation.Animator.AnimatorListener
public void onAnimationRepeat(android.animation.Animator animation)
onAnimationRepeat
in interface android.animation.Animator.AnimatorListener