Package com.bric.multislider
Enum MultiThumbSliderUI.Thumb
- java.lang.Object
-
- java.lang.Enum<MultiThumbSliderUI.Thumb>
-
- com.bric.multislider.MultiThumbSliderUI.Thumb
-
- All Implemented Interfaces:
Serializable
,Comparable<MultiThumbSliderUI.Thumb>
- Enclosing class:
- MultiThumbSliderUI<T>
public static enum MultiThumbSliderUI.Thumb extends Enum<MultiThumbSliderUI.Thumb>
A thumb shape.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Shape
getShape(float width, float height, boolean leftEdge, boolean rightEdge)
Create a thumb that is centered at (0,0) for a horizontally oriented slider.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.static MultiThumbSliderUI.Thumb
valueOf(String name)
Returns the enum constant of this type with the specified name.static MultiThumbSliderUI.Thumb[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Circle
public static final MultiThumbSliderUI.Thumb Circle
-
Triangle
public static final MultiThumbSliderUI.Thumb Triangle
-
Rectangle
public static final MultiThumbSliderUI.Thumb Rectangle
-
Hourglass
public static final MultiThumbSliderUI.Thumb Hourglass
-
-
Method Detail
-
values
public static MultiThumbSliderUI.Thumb[] 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 (MultiThumbSliderUI.Thumb c : MultiThumbSliderUI.Thumb.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MultiThumbSliderUI.Thumb 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
-
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
public abstract Shape getShape(float width, float height, boolean leftEdge, boolean rightEdge)
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.
-
-