Package swingtree.animation
@NullMarked
package swingtree.animation
Contains classes related to animation in SwingTree, which
are mostly value classes that represent start configurations for animations
and what the status of an animation is at a given time.
See
See
LifeTime and LifeTime
to find out more about how to configure an animation using methods
like UIForAnySwing.withTransitionalStyle(sprouts.Val, swingtree.animation.LifeTime, swingtree.api.AnimatedStyler)
and AbstractDelegate.animateFor(swingtree.animation.LifeTime, swingtree.animation.Animation)...-
ClassDescriptionAnimatable<M>This defines what is needed for animating an immutable value type
Tthrough a transformation functionAnimationTransformationand aLifeTimedetermining when the animation should run.An animation is a function which is called repeatedly during its lifetime, which is determined by aLifeTimeand aRunCondition.An API for creating anAnimationand defining how it should be executed.The state of an animation at a given point in time describing how far the animation has progressed using a number between 0 and 1 (seeAnimationStatus.progress()).Defines an animation in terms of functional transformations taking in anAnimationStatustogether with a value and returning an updated value.The lifespan defines when anAnimationstarts and for how long it should run.Represents the progress snapshot of an animation in terms of numbers between 0 and 1 that describe how far the animation has progressed between its start and end.Defines either an animation progresses from 0 to 1 or regresses from 1 to 0.