averbraeck / djutils

Delft Java Utilities for statistics, stochastics, data analysis and serialization
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Add labels to the thumbs of the `MultiSlider` #66

Open averbraeck opened 3 hours ago

averbraeck commented 3 hours ago

It would be very nice if the labels of the MultiSlider could have a label (e.g., 'a', 'm', and 'b' when making a slider to set the values for a TriangularDistribution). These labels should move along with the thumbs.

averbraeck commented 3 hours ago

The solution is probably to create a BoxLayout (above the slider with X-AXIS for a horizontal slider, and right of the slider with Y-AXIS for a vertical slider). One box contains the sliders and the glass pane above the sliders, and the other box contains the labels for the thumbs.

It would be nice if these labels could be fixed, or if they could indicate the current value of the thumb.