Package org.polyfrost.polyui.operations
Class DrawableOp.Animatable
-
- All Implemented Interfaces:
public abstract class DrawableOp.Animatable<S 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(S self, Animation animation, Function1<S, Unit> onFinish)
-
Method Summary
-
-
Method Detail
-
getOnFinish
final Function1<S, Unit> getOnFinish()
-
setOnFinish
final Unit setOnFinish(Function1<S, 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
-
-
-
-