Interface RangeSetting
- All Superinterfaces:
GuiSetting
Two numbers on one slider.
-
Method Summary
Modifier and TypeMethodDescriptionintkind()intlowIndex()doublemax()doublemin()voidreset()doubleround(double value) Rounds a slider value the way this setting rounds.voidset(int index, double value) doublestep()voidstepBoth(int direction) Moves both handles by one step.doublevalue(int index) Methods inherited from interface GuiSetting
children, depth, description, hasVisibleChildren, id, isExpanded, isShown, isVisible, label, markDescriptionSeen, module, option, page, parent, setExpanded
-
Method Details
-
kind
NumberSetting.Kind kind() -
value
double value(int index) - Parameters:
index- 0 or 1- Returns:
- That handle's value; handles may cross
-
set
-
lowIndex
int lowIndex()- Returns:
- Index of the lower handle
-
highIndex
int highIndex()- Returns:
- Index of the higher handle
-
min
double min() -
max
double max() -
step
double step() -
round
double round(double value) Rounds a slider value the way this setting rounds. -
stepBoth
void stepBoth(int direction) Moves both handles by one step.- Parameters:
direction- 1 or -1
-
formatted
String formatted()- Returns:
- The range as the GUI shows it
-
reset
void reset() -
entryEditor
GuiEditor entryEditor()- Returns:
- An editor to type both values
-