Package com.bric.multislider
Enum Class MultiThumbSliderUi.Thumb
- All Implemented Interfaces:
Serializable
,Comparable<MultiThumbSliderUi.Thumb>
,Constable
- Enclosing class:
- MultiThumbSliderUi<T>
A thumb shape.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Shape
getShape
(float width, float height, boolean leftEdge, boolean rightEdge) Create a thumb that is centered at (0,0) for a horizontally oriented slider.getShape
(MultiThumbSliderUi<?> sliderUI, float x, float y, int width, int height, boolean leftEdge, boolean rightEdge) Create a thumb that is centered at (0,0) for a horizontally oriented slider.static MultiThumbSliderUi.Thumb
Returns the enum constant of this class with the specified name.static MultiThumbSliderUi.Thumb[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Circle
-
Triangle
-
Rectangle
-
Hourglass
-
-
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
-
getShape
public Shape getShape(MultiThumbSliderUi<?> sliderUI, float x, float y, int width, int height, boolean leftEdge, boolean rightEdge) Create a thumb that is centered at (0,0) for a horizontally oriented slider.- Parameters:
sliderUI
- the slider UI this thumb relates to.x
- the x-coordinate where this thumb is centered.y
- the y-coordinate where this thumb is centered.width
- the width of the the thumb (assuming this is a horizontal slider)height
- the height of the the thumb (assuming this is a horizontal slider)leftEdge
- true if this is the left-most thumbrightEdge
- true if this is the right-most thumb.- Returns:
- the shape of this thumb.
-
getShape
Create a thumb that is centered at (0,0) for a horizontally oriented slider.- Parameters:
width
- the width of the the thumb (assuming this is a horizontal slider)height
- the height of the the thumb (assuming this is a horizontal slider)leftEdge
- true if this is the left-most thumbrightEdge
- true if this is the right-most thumb.- Returns:
- the shape of this thumb.
-