Enum Class Transition

java.lang.Object
java.lang.Enum<Transition>
com.iizix.prop.ui.Transition
All Implemented Interfaces:
Serializable, Comparable<Transition>, Constable

public enum Transition extends Enum<Transition>
The animation transition type used by the swap container.
Author:
Christopher Mindus
  • Enum Constant Details

    • NONE

      public static final Transition NONE
      No transition, transition direction does not apply.
    • FADE

      public static final Transition FADE
      Fade, transition direction does not apply.
    • DISSOLVE

      public static final Transition DISSOLVE
      Dissolve, transition direction does not apply.
    • SLIDE

      public static final Transition SLIDE
      Slide.
    • SLIDEV

      public static final Transition SLIDEV
      Slide vertically.
    • COVER

      public static final Transition COVER
      Cover.
    • COVERV

      public static final Transition COVERV
      Cover vertically.
    • REVEAL

      public static final Transition REVEAL
      Reveal.
    • REVEALV

      public static final Transition REVEALV
      Reveal vertically.
    • FLIP

      public static final Transition FLIP
      Flip.
    • SWAP

      public static final Transition SWAP
      Swap.
    • CUBE

      public static final Transition CUBE
      Cube (3D) rotation.
    • SWIRL

      public static final Transition SWIRL
      Swirl.
  • Field Details

    • value

      public final int value
      The value: 0-16. The property value stored in the animation is negated if direction is back (-1).
  • Method Details

    • values

      public static Transition[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Transition valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • get

      public static Transition get(int value, Transition defaultTransition)
      Gets the transition by index value (0-16).
      Parameters:
      value - The index value.
      defaultTransition - Default transition if none other would apply for the value specified (e.g. out of range).
      Returns:
      The transition, or the default value if none is valid.