public class ConverterSetups extends Object implements SourceToConverterSetupBimap
ConverterSetups and
sources. All setupParametersChanged()
events from ConverterSetup currently in the mapping are forwarded to
registered listeners().
ConverterSetups listens to ViewerState changes. When a source
is removed from the ViewerState, it is also removed from the mapping
(as well as the corresponding ConverterSetup.
When adding sources, however, the corresponding
ConverterSetup has to be manually registered using
put(SourceAndConverter, ConverterSetup). (This is necessary to avoid
breaking existing API.)
| Constructor and Description |
|---|
ConverterSetups(ViewerState state) |
| Modifier and Type | Method and Description |
|---|---|
ConverterSetupBounds |
getBounds() |
ConverterSetup |
getConverterSetup(SourceAndConverter<?> source) |
SourceAndConverter<?> |
getSource(ConverterSetup setup) |
org.scijava.listeners.Listeners<ConverterSetup.SetupChangeListener> |
listeners()
All
setupParametersChanged() events from ConverterSetup currently
in the ViewerState are forwarded to these listeners. |
void |
put(SourceAndConverter<?> source,
ConverterSetup setup) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConverterSetupspublic ConverterSetups(ViewerState state)
public org.scijava.listeners.Listeners<ConverterSetup.SetupChangeListener> listeners()
setupParametersChanged() events from ConverterSetup currently
in the ViewerState are forwarded to these listeners.public SourceAndConverter<?> getSource(ConverterSetup setup)
getSource in interface SourceToConverterSetupBimappublic ConverterSetup getConverterSetup(SourceAndConverter<?> source)
getConverterSetup in interface SourceToConverterSetupBimappublic void put(SourceAndConverter<?> source, ConverterSetup setup)
public ConverterSetupBounds getBounds()
Copyright © 2015–2021 Fiji. All rights reserved.