Package org.polyfrost.polyui.operations
Class ComponentOp
-
- All Implemented Interfaces:
public abstract class ComponentOp<S extends Component>
-
-
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.
-
Constructor Summary
Constructors Constructor Description ComponentOp(S self)
-
Method Summary
Modifier and Type Method Description abstract Unitapply()abstract Booleanunapply()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.final Unitadd()final Unitremove()-
-
Constructor Detail
-
ComponentOp
ComponentOp(S self)
-
-
Method Detail
-
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
-
exclusive
Boolean exclusive()
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.- Since:
1.5.0
-
-
-
-