Package org.polyfrost.polyui.operations
Interface ComponentOp
-
- All Implemented Interfaces:
public interface ComponentOpcomponent operations represent simple procedures that are ran before and after every render cycle. They can support animations and verification.
- Since:
1.6.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classComponentOp.AnimatableClass 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.
-
Method Summary
Modifier and Type Method Description abstract Unitapply()Apply the operation, this is called before the component is rendered. Booleanunapply()Unapply the operation. Booleanverify()override this function to verify that this operation is valid, which is run before it is applied. Booleanexclusive()If this is true, when this drawable operation is attempted to be added, if one is already present, instead of replacing it, it will be ignored.-
-
Method Detail
-
unapply
Boolean unapply()
Unapply the operation. this is called after the component is rendered.
return
trueto instantly remove this operation from the component.
-
verify
Boolean verify()
override this function to verify that this operation is valid, which is run before it is applied. (default: always
true)- Returns:
trueif this operation is deemed to be valid.- Since:
1.1.1
-
-
-
-