Class SliderInput
java.lang.Object
com.ultikits.ultitools.ui.SliderInput
A number from a range. Value: min + k * step for an integer k >= 0, at most max; max - min must be a whole
number of steps. A value read through FormResponse#get is exactly min + k * step as computed in double
arithmetic, or exactly max for the largest k.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA reusable, non-thread-safe builder. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SliderInput.BuilderStarts a finite range, initially at its minimum, with step 1.booleaninthashCode()doubleinitial()Initial value within the range.key()Unique within its form;[a-z0-9_]+, at most 32 characters.label()The deferred label.doublemax()Inclusive maximum.doublemin()Inclusive minimum.doublestep()Positive increment from the minimum.(package private) static longsteps(double from, double to, double step) toString()
-
Field Details
-
key
-
label
-
min
private final double min -
max
private final double max -
step
private final double step -
initial
private final double initial
-
-
Constructor Details
-
SliderInput
-
-
Method Details
-
builder
Starts a finite range, initially at its minimum, with step 1. -
key
-
label
-
min
public double min()Inclusive minimum. -
max
public double max()Inclusive maximum. -
step
public double step()Positive increment from the minimum. -
initial
public double initial()Initial value within the range. -
equals
-
hashCode
-
toString
-
steps
static long steps(double from, double to, double step)
-