- All Known Subinterfaces:
Ceasable.CeaseAutomaton
,Ceasable.UncheckedCeasable
public interface Ceasable
This mixin might be implemented by a component in order to provide cease
facilities. Cease is the zombie between stop and destroy. A processed
sequence may be ceased instead of being stopped. Taken an animation; an
animation sequence is stopped so it stands still ("freezes") to be resumed
again (e.g. via a "start()" method). It may also get ceased instead of being
stopped, in that case it may get faded out or (if it is a sprite) it may
explode - so to gracefully finish off that animation sequence.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
TheCeasable.CeaseAutomaton
interface defines those methods related to the cease life-cycle.static interface
Ceasable.CeaseBuilder<B extends Ceasable.CeaseBuilder<B>>
To enable theCeasable
functionality to be invoked in a builder chain.static interface
SeeCeasable
without any checked exception being declared. -
Method Summary
Modifier and TypeMethodDescriptionvoid
cease()
Ceases the component.default void
Ceases the component by callingcease()
without you to require catching anCeaseException
.
-
Method Details
-
cease
Ceases the component.- Throws:
CeaseException
- in case ceasing fails.
-
ceaseUnchecked
default void ceaseUnchecked()Ceases the component by callingcease()
without you to require catching anCeaseException
.- Throws:
CeaseException.CeaseRuntimeException
- encapsulates the aCause and is thrown upon encountering aCeaseException
exception
-