Package com.oorian.css.transitions
Interface TransitionStep
- All Known Implementing Classes:
TransitionGroup
public interface TransitionStep
A step in a transition sequence.
TransitionStep is the common contract for items that can be added to a
TransitionSequence. Both individual element transitions (via
TransitionGroup) and groups of simultaneous transitions implement
this interface.
- Since:
- 2026
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidcollectElements(Set<StyledElement<?>> elements) Collects all unique elements referenced by this step.longReturns the total duration of this step in milliseconds.List<com.oorian.css.transitions.TransitionEntry> Returns the element/transition pairs in this step.voidplayForward(long delayMs) Plays this step forward with the specified delay.voidplayReverse(long delayMs) Plays this step in reverse with the specified delay.
-
Method Details
-
getDurationMs
long getDurationMs()Returns the total duration of this step in milliseconds.For groups, this is the maximum duration among all entries. Used by
TransitionSequenceto calculate cumulative delays.- Returns:
- the duration in milliseconds
-
playForward
void playForward(long delayMs) Plays this step forward with the specified delay.- Parameters:
delayMs- the delay in milliseconds before the transition starts
-
playReverse
void playReverse(long delayMs) Plays this step in reverse with the specified delay.- Parameters:
delayMs- the delay in milliseconds before the reverse transition starts
-
collectElements
Collects all unique elements referenced by this step.Used by
TransitionSequenceto determine which elements participate in the sequence.- Parameters:
elements- the set to add elements to
-
getEntries
List<com.oorian.css.transitions.TransitionEntry> getEntries()Returns the element/transition pairs in this step.Used by
TransitionSequenceto build@keyframesanimations from the step's transition definitions.- Returns:
- a list of TransitionEntry objects
-