Package org.refcodes.component
Interface Ceasable
-
- All Known Subinterfaces:
Ceasable.CeaseAutomaton,Ceasable.UncheckedCeasable
public interface CeasableThis 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
Nested Classes Modifier and Type Interface Description static interfaceCeasable.CeaseAutomatonTheCeasable.CeaseAutomatoninterface defines those methods related to the cease life-cycle.static interfaceCeasable.CeaseBuilder<B extends Ceasable.CeaseBuilder<B>>To enable theCeasablefunctionality to be invoked in a builder chain.static interfaceCeasable.UncheckedCeasableSeeCeasablewithout any checked exception being declared.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidcease()Ceases the component.default voidceaseUnchecked()Ceases the component by callingcease()without you to require catching anCeaseException.
-
-
-
Method Detail
-
cease
void cease() throws CeaseExceptionCeases 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 cause and is thrown upon encountering aCeaseExceptionexception
-
-