Class AnimationEvent
java.lang.Object
com.oorian.messaging.events.Event<AnimationListener>
com.oorian.messaging.events.client.ClientEvent<AnimationListener>
com.oorian.messaging.events.client.AnimationEvent
- Direct Known Subclasses:
AnimationCancelEvent,AnimationEndEvent,AnimationIterationEvent,AnimationStartEvent
Abstract base class for all CSS animation-related events in the client interface.
This class serves as the foundation for specific animation event types, providing common fields for tracking the animation name, elapsed time, and pseudo-element. Animation events are fired when CSS animations start, end, repeat, or are cancelled.
Features:
- Captures the CSS animation name
- Tracks elapsed time since the animation started
- Identifies the pseudo-element the animation runs on
- Integrates with the AnimationListener interface
- Since:
- 2026
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAnimationEvent(String animationName, float elapsedTime, String pseudoElement) Constructs a new AnimationEvent with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the CSS animation.floatReturns the elapsed time in seconds since the animation started.Returns the pseudo-element the animation runs on, or an empty string if none.Methods inherited from class com.oorian.messaging.events.client.ClientEvent
getSource, getTarget, setSource, setTargetMethods inherited from class com.oorian.messaging.events.Event
bubbles, dispatchTo
-
Constructor Details
-
AnimationEvent
Constructs a new AnimationEvent with the specified parameters.- Parameters:
animationName- the name of the CSS animationelapsedTime- the elapsed time in seconds since the animation startedpseudoElement- the pseudo-element the animation runs on (empty string if none)
-
-
Method Details
-
getAnimationName
Returns the name of the CSS animation.- Returns:
- the animation name
-
getElapsedTime
public float getElapsedTime()Returns the elapsed time in seconds since the animation started.- Returns:
- the elapsed time
-
getPseudoElement
Returns the pseudo-element the animation runs on, or an empty string if none.- Returns:
- the pseudo-element
-