Annotation Interface RangeSliderList
Renders a user-editable list of ranges with each row being a two-handle slider with a value field for each end
The annotated field must be a flat numeric array such as int[] or float[] or a List
of numbers holding each range's start then end so {0, 10, 20, 30} is the ranges 0-10 and 20-30
The field must hold an even number of values
See RangeNumberList for the variant without the track
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionLabel of the button that appends a new rangeClass<? extends ValueFormatter> floatintMaximum number of ranges the user may add and0means unlimitedfloatbooleanAllow the user to drag ranges to reorder themfloatValue the handles snap to multiples of and0slides continuously
-
Element Details
-
title
String title -
description
String description- Default:
""
-
icon
String icon- Default:
""
-
category
String category- Default:
"General"
-
subcategory
String subcategory- Default:
"General"
-
min
float min- Default:
0.0f
-
max
float max- Default:
100.0f
-
step
float stepValue the handles snap to multiples of and0slides continuously- Default:
1.0f
-
maxEntries
int maxEntriesMaximum number of ranges the user may add and0means unlimited- Default:
0
-
reorderable
boolean reorderableAllow the user to drag ranges to reorder them- Default:
true
-
addText
String addTextLabel of the button that appends a new range- Default:
"Add"
-
formatter
Class<? extends ValueFormatter> formatter- Default:
org.polyfrost.oneconfig.api.config.v1.ValueFormatter.class
-