Enum Class MultiThumbSlider.Collision

java.lang.Object
java.lang.Enum<MultiThumbSlider.Collision>
com.bric.multislider.MultiThumbSlider.Collision
All Implemented Interfaces:
Serializable, Comparable<MultiThumbSlider.Collision>, Constable
Enclosing class:
MultiThumbSlider<T>

public static enum MultiThumbSlider.Collision extends Enum<MultiThumbSlider.Collision>
A set of possible behaviors when one thumb collides with another.
  • Enum Constant Details

    • NUDGE_OTHER

      public static final MultiThumbSlider.Collision NUDGE_OTHER
      When the user drags one thumb and it collides with another, nudge the other thumb as far as possible.
    • JUMP_OVER_OTHER

      public static final MultiThumbSlider.Collision JUMP_OVER_OTHER
      When the user drags one thumb and it collides with another, skip over the other thumb.
    • STOP_AGAINST

      public static final MultiThumbSlider.Collision STOP_AGAINST
      When the user drags one thumb and it collides with another, bump into the other thumb and don't allow any more movement.
  • Method Details

    • values

      public static MultiThumbSlider.Collision[] 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 MultiThumbSlider.Collision 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