Logo Search packages:      
Sourcecode: libjgoodies-animation-java version File versions  Download package

Animation com::jgoodies::animation::components::AnimatedLabel::animation (  )  [inline, private]

Lazily creates and returns the blend over animation.

Returns:
the lazily created blend over animation

Definition at line 308 of file AnimatedLabel.java.

References com::jgoodies::animation::Animation::addAnimationListener(), and setAlpha().

Referenced by setDuration(), and setText().

                                  {
        if (animation == null) {
            animation = new BlendOverAnimation(duration);
            animation.addAnimationListener(new AnimationAdapter() {
                public void animationStopped(AnimationEvent e) {
                    setAlpha(255, 0);
                }
            });
        }
        return animation;
    }


Generated by  Doxygen 1.6.0   Back to index