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.Object
Animator base class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int
getDuration()
Gets the animation duration.boolean
isAnimating()
Determines whether the animation is finished.void
setDuration(int duration)
Sets the animation duration.void
stopAnimation()
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.
-
-