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 Type
    Method
    Description
    void
    Collects all unique elements referenced by this step.
    long
    Returns the total duration of this step in milliseconds.
    List<com.oorian.css.transitions.TransitionEntry>
    Returns the element/transition pairs in this step.
    void
    playForward(long delayMs)
    Plays this step forward with the specified delay.
    void
    playReverse(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 TransitionSequence to 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

      void collectElements(Set<StyledElement<?>> elements)
      Collects all unique elements referenced by this step.

      Used by TransitionSequence to 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 TransitionSequence to build @keyframes animations from the step's transition definitions.

      Returns:
      a list of TransitionEntry objects