- All Superinterfaces:
Functor<T>, Property<T>, Updatable
- All Known Subinterfaces:
TransitionedProperty<T>
- All Known Implementing Classes:
AnimatedColorProperty, AnimatedColorProperty.AnimatedAlpha, AnimatedDimensionProperty, AnimatedDualDimensionProperty, AnimatedFloatProperty, AnimatedIntProperty, AnimatedObjectProperty, AnimatedProperty, TransitionedColorProperty, TransitionedDimensionProperty, TransitionedDualDimensionProperty, TransitionedFloatProperty, TransitionedIntProperty, TransitionedObjectProperty
-
Method Summary
float
Restarts the animation and returns the current value.
Updates the animation and returns the current value.
boolean
void
void
void
Progresses the animation.
Methods inherited from interface dev.prozilla.pine.common.property.Property
getValue, getValueOr, hasValue, hasValueProperty, isNotNull, isNotNullProperty, isNull, map, replaceNull, requireValue, snapshot, toStringProperty
-
Method Details
-
-
getRestartedValue
default T getRestartedValue()
Restarts the animation and returns the current value.
-
getUpdatedValue
default T getUpdatedValue(float deltaTime)
Updates the animation and returns the current value.
- Parameters:
deltaTime - Delta time in seconds.
-
update
void update(float deltaTime)
Progresses the animation.
- Specified by:
update in interface Updatable
- Parameters:
deltaTime - How far to progress the animation, in seconds
-
getFactor
float getFactor()
-
hasFinished
boolean hasFinished()
-
setDuration
void setDuration(float duration)
-