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

void com::jgoodies::animation::animations::BasicTextAnimation::applyEffect ( long  time  )  [inline, protected, virtual]

Applies the effect: sets color, spacing, scaling and offset, the latter only if enabled.

Parameters:
time the render time

Implements com::jgoodies::animation::AbstractAnimation.

Definition at line 322 of file BasicTextAnimation.java.

References isOffsetEnabled(), com::jgoodies::animation::components::BasicTextLabel::setColor(), com::jgoodies::animation::components::BasicTextLabel::setOffsetX(), com::jgoodies::animation::components::BasicTextLabel::setOffsetY(), com::jgoodies::animation::components::BasicTextLabel::setScaleX(), com::jgoodies::animation::components::BasicTextLabel::setScaleY(), com::jgoodies::animation::components::BasicTextLabel::setSpace(), com::jgoodies::animation::components::BasicTextLabel::setText(), and com::jgoodies::animation::AnimationFunction::valueAt().

                                          {
        label.setText(time == 0 ? " " : text);
        label.setColor((Color) colorFunction.valueAt(time));
        label.setScaleX(scaleXFunction.valueAt(time));
        label.setScaleY(scaleYFunction.valueAt(time));
        label.setSpace(spaceFunction.valueAt(time));
        if (isOffsetEnabled()) {
            label.setOffsetX(offsetFunction.valueAt(time));
            label.setOffsetY(offsetFunction.valueAt(time));
        }
    }


Generated by  Doxygen 1.6.0   Back to index