public class ConverterSetups extends Object implements SourceToConverterSetupBimap
ConverterSetup
s 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, wait
getConverterSetups
public 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 SourceToConverterSetupBimap
public ConverterSetup getConverterSetup(SourceAndConverter<?> source)
getConverterSetup
in interface SourceToConverterSetupBimap
public void put(SourceAndConverter<?> source, ConverterSetup setup)
public ConverterSetupBounds getBounds()
Copyright © 2015–2021 Fiji. All rights reserved.