Module MaterialFX

Class AbstractMFXRippleGenerator.RippleGeneratorEvent

java.lang.Object
java.util.EventObject
javafx.event.Event
io.github.palexdev.materialfx.effects.ripple.base.AbstractMFXRippleGenerator.RippleGeneratorEvent
All Implemented Interfaces:
Serializable, Cloneable
Enclosing class:
AbstractMFXRippleGenerator<T extends IRipple>

public static class AbstractMFXRippleGenerator.RippleGeneratorEvent extends Event
Events class for RippleGenerators.

Defines a new EventType:

- ANIMATION_FINISHED_EVENT: when the ripple animation has finished this event is fired by the generator. The tricky part, When the ripple animation is finished? For this purpose an ObservableStack is used. When a ripple is generated its animation should be added to the stack and removed only when the animation is finished. A change listener added to the stack checks if it is empty. When it's empty it means that all ripple animations have ended, at that point the event is fired

These events are automatically fired by the generator so they should not be fired by users.

See Also: