Package com.bric.multislider
Enum MultiThumbSlider.Collision
- java.lang.Object
-
- java.lang.Enum<MultiThumbSlider.Collision>
-
- com.bric.multislider.MultiThumbSlider.Collision
-
- All Implemented Interfaces:
Serializable
,Comparable<MultiThumbSlider.Collision>
- 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 Summary
Enum Constants Enum Constant Description JUMP_OVER_OTHER
When the user drags one thumb and it collides with another, skip over the other thumb.NUDGE_OTHER
When the user drags one thumb and it collides with another, nudge the other thumb as far as possible.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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MultiThumbSlider.Collision
valueOf(String name)
Returns the enum constant of this type with the specified name.static MultiThumbSlider.Collision[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static MultiThumbSlider.Collision[] 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 (MultiThumbSlider.Collision c : MultiThumbSlider.Collision.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MultiThumbSlider.Collision valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-