Class SliderInput.Builder
java.lang.Object
com.ultikits.ultitools.ui.SliderInput.Builder
- Enclosing class:
SliderInput
A reusable, non-thread-safe builder.
-
Field Details
-
key
-
label
-
min
private final double min -
max
private final double max -
step
private double step -
initial
private double initial
-
-
Constructor Details
-
Builder
-
-
Method Details
-
step
- Throws:
IllegalArgumentException- if not positive and finite
-
initial
- Throws:
IllegalArgumentException- if outside [min, max] or not finite
-
build
- Throws:
IllegalArgumentException- if a bound is not finite, min >= max, (max - min) is not a whole number of steps, or initial is not min plus a whole number of steps
-