Enum Transition

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Transition>

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

      Enum Constants 
      Enum ConstantDescription
      COVER
      Cover.
      COVERV
      Cover vertically.
      CUBE
      Cube (3D) rotation.
      DISSOLVE
      Dissolve, transition direction does not apply.
      FADE
      Fade, transition direction does not apply.
      FLIP
      Flip.
      NONE
      No transition, transition direction does not apply.
      REVEAL
      Reveal.
      REVEALV
      Reveal vertically.
      SLIDE
      Slide.
      SLIDEV
      Slide vertically.
      SWAP
      Swap.
      SWIRL
      Swirl.
    • Field Summary

      Fields 
      Modifier and TypeFieldDescription
      intvalue
      The value: 0-16.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static TransitionvalueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Transition[]values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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.
      • SLIDEV

        public static final Transition SLIDEV
        Slide vertically.
      • COVERV

        public static final Transition COVERV
        Cover vertically.
      • REVEAL

        public static final Transition REVEAL
        Reveal.
      • REVEALV

        public static final Transition REVEALV
        Reveal vertically.
      • CUBE

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

      • value

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

      • values

        public static Transition[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Transition c : Transition.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Transition valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null