minuit

MultiStopToggleComponent

Picks one of 2 to 5 stops on a toggle track, each with an optional icon.

Variants

States

MultiStopToggleComponent, states

Java

Inside a PanelComponent constructor. The same call draws in every family and chroma.

Java
add(new MultiStopToggleComponent(at(new Box("mode", 10, 10, 160, 15)), "Mode", 3, config.mode,
        v -> config.mode = v)
        .icons(Icon.SUN, null, Icon.MOON));