StyledSlider
floodsim.view.component.StyledSlider
class StyledSlider(labelText: String, min: Int, max: Int, initial: Int) extends UIComponent[JPanel]
A labeled slider with tick spacing. Tick spacing:
- Major tick spacing is computed from the range size to keep labels readable.
- Minor tick spacing is
major/5(may be zero for small ranges). API: - value to read the current slider value.
- onValueChanged to register a handler fired when the user releases the knob or stops adjusting.
Value parameters
- initial
-
initial slider value
- labelText
-
label shown above the slider
- max
-
slider maximum value
- min
-
slider minimum value
Attributes
- Graph
-
- Supertypes
Members list
In this article