Package swingtree.animation
@NullMarked
package swingtree.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.