Closed martinschorb closed 7 months ago
What is a "table range slider"?
The "contrast" range slider for coloring a regionDisplay
according to a table column. With its initialvalueLimits
set in the view.
Thanks, I will look into it.
The window is generated by this class:
public class NumericAnnotationColoringModelContrastDialog extends JFrame implements ColoringListener
{
...
}
, which in fact already contains a close()
method that could be called. However, right now I don't have a simple (non-ugly) idea how to call this method at the right moment.
Ideas:
CloseWindowsListener
that would be implemented by this class, but then it would be consequent for all UI elements to implement this which seems a lot of infrastructure...probably least intrusive would be having a static class in MoBIE where CloseWindowsListeners
could register themselves.TableView
and collect them there in a Collection and then close all of them when required, but again, seems like a lot of code to add an maintain... How is it implemented for the Brightness and Opacity sliders? Are they bound to their BDV window? They close when the dataset is changed. Could it be implemented in a similar fashion?
Another option would be (I don't know if that's possible) to close all open dialogs when closing a dataset. Or maybe even all open GUI elements except MoBIE's main window.
How is it implemented for the Brightness and Opacity sliders? Are they bound to their BDV window? They close when the dataset is changed.
I just checked the code and I did not find anything that would close those windows upon the change of the dataset. Are you sure?
How is it implemented for the Brightness and Opacity sliders? Are they bound to their BDV window? They close when the dataset is changed.
I just checked the code and I did not find anything that would close those windows upon the change of the dataset. Are you sure?
True. This seems to be a more general thing then. So we need a way to close all those with the dataset. (?)
Maybe that could a way, each GUI could register itself in some global static list, which MoBIE would then close.
I think also when showing a new exclusive
view all those windows should be closed?
I just realized that these dialogs stay open forever, even when closing the MoBIE main window. Only closing the entire Fiji (and thus stopping the Java process) will terminate them.
OK, then I think I could implement that these windows close when
That would already help, right?
Should work now once I cut a new release. Please reopen if some issues persit.
Hi, whatever table range slider window stays open when a dataset is closed to open another one.