Package org.polyfrost.polyui.operations
Class DrawableOp.Animatable
-
- All Implemented Interfaces:
public abstract class DrawableOp.Animatable<T extends Drawable> extends DrawableOp
Class to represent an operation that can be applied on a component that modifies it in some way.
It is applied before and after rendering, for example a Move, Resize, or Rotate operation, or a transition.
-
-
Constructor Summary
Constructors Constructor Description DrawableOp.Animatable(T self, Animation animation, Function1<T, Unit> onFinish)
-
Method Summary
-
-
Method Detail
-
getOnFinish
final Function1<T, Unit> getOnFinish()
-
setOnFinish
final Unit setOnFinish(Function1<T, Unit> onFinish)
-
finishNow
@ApiStatus.Experimental() Unit finishNow()
finish this operation immediately.
This is marked as experimental as it might not always work as expected.
- Since:
1.0.5
-
-
-
-