com.supermap.mapping.dyn
Class Animator
- java.lang.Object
-
- com.supermap.mapping.dyn.Animator
-
- Direct Known Subclasses:
- AlphaAnimator, RotateAnimator, TranslateAnimator, ZoomAnimator
public abstract class Animator extends java.lang.ObjectAnimator base class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetDuration()Gets the animation duration.booleanisAnimating()Determines whether the animation is finished.voidsetDuration(int duration)Sets the animation duration.voidstopAnimation()Stops the animation.
-
-
-
Method Detail
-
setDuration
public void setDuration(int duration)
Sets the animation duration.- Parameters:
duration- The animation duration, and the unit is millisecond.
-
getDuration
public int getDuration()
Gets the animation duration.- Returns:
- The animation duration, and the unit is millisecond.
-
stopAnimation
public void stopAnimation()
Stops the animation.
-
isAnimating
public boolean isAnimating()
Determines whether the animation is finished.- Returns:
- Boolean. true is the animation is finished; otherwise false.
-
-