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>
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EventType<AbstractMFXRippleGenerator.RippleGeneratorEvent>Fields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class javafx.event.Event
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumedMethods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
ANIMATION_FINISHED_EVENT
public static final EventType<AbstractMFXRippleGenerator.RippleGeneratorEvent> ANIMATION_FINISHED_EVENT
-
-
Constructor Details
-
RippleGeneratorEvent
-