bigdataviewer / bigdataviewer-core

ImgLib2-based viewer for registered SPIM stacks and more
BSD 2-Clause "Simplified" License
33 stars 35 forks source link

Better convenience methods for UI elements #185

Open axtimwalde opened 2 years ago

axtimwalde commented 2 years ago

We need better convenience methods for typical UI elements, in particular sliders, buttons, switches, input fields, making best use of functional interfaces. I am dreaming of simple things like:

bdv.addSlider(String:name, double:min, double:max, double:nSteps, Consumer<Double>:onChange)

Not sure what the best way is to provide context to onChange, but since this can be a closure, it basically has access to everything.