Package swingtree.animation
Interface Animation
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An animation is a function which is called repeatedly during its lifetime,
which is determined by a
LifeTime
and a RunCondition
.-
Method Summary
Modifier and TypeMethodDescriptiondefault void
finish
(AnimationState state) This method is called after the animation has finished.void
run
(AnimationState state) This method is called repeatedly during the lifetime of the animation.
-
Method Details
-
run
This method is called repeatedly during the lifetime of the animation. TheAnimationState
contains information about the current state of the animation.- Parameters:
state
- The current state of the animation.
-
finish
This method is called after the animation has finished. The default implementation does nothing. Use this to clean up the state of your components any used resources after the animation has finished.- Parameters:
state
- The current state of the animation.
-