Package com.bric.multislider
Enum Class MultiThumbSlider.Collision
- All Implemented Interfaces:
Serializable
,Comparable<MultiThumbSlider.Collision>
,Constable
- Enclosing class:
- MultiThumbSlider<T>
A set of possible behaviors when one thumb collides with another.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionWhen the user drags one thumb and it collides with another, skip over the other thumb.When the user drags one thumb and it collides with another, nudge the other thumb as far as possible.When the user drags one thumb and it collides with another, bump into the other thumb and don't allow any more movement. -
Method Summary
Modifier and TypeMethodDescriptionstatic MultiThumbSlider.Collision
Returns the enum constant of this class with the specified name.static MultiThumbSlider.Collision[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NUDGE_OTHER
When the user drags one thumb and it collides with another, nudge the other thumb as far as possible. -
JUMP_OVER_OTHER
When the user drags one thumb and it collides with another, skip over the other thumb. -
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
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
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 nameNullPointerException
- if the argument is null
-