com.supermap.mapping.dyn
Class AlphaAnimator
- java.lang.Object
-
- com.supermap.mapping.dyn.Animator
-
- com.supermap.mapping.dyn.AlphaAnimator
-
public class AlphaAnimator extends Animator
The AlphaAnimator class.
-
-
Constructor Summary
Constructors Constructor and Description AlphaAnimator(AlphaAnimator animator)
Create a new AlphaAnimatorobject that is the same with the given AlphaAnimator object.AlphaAnimator(int fromAlpha, int toAlpha, int duration)
Initialize a new AlphaAnimator object with the parameters specified.
-
Method Summary
-
Methods inherited from class com.supermap.mapping.dyn.Animator
getDuration, isAnimating, setDuration, stopAnimation
-
-
-
-
Constructor Detail
-
AlphaAnimator
public AlphaAnimator(int fromAlpha, int toAlpha, int duration)
Initialize a new AlphaAnimator object with the parameters specified.- Parameters:
fromAlpha
- The transparency of start, which is between 0-255.toAlpha
- The transparency of target, which is between 0-255.duration
- The duration of the animation, and the unit is millisecond.
-
AlphaAnimator
public AlphaAnimator(AlphaAnimator animator)
Create a new AlphaAnimatorobject that is the same with the given AlphaAnimator object.- Parameters:
animator
- The given AlphaAnimator object.
-
-