- java.lang.Object
-
- bdv.viewer.ConverterSetups
-
- All Implemented Interfaces:
SourceToConverterSetupBimap
public class ConverterSetups extends Object implements SourceToConverterSetupBimap
Provides a mapping betweenConverterSetups andsources. AllsetupParametersChanged()events from ConverterSetup currently in the mapping are forwarded to registeredlisteners().ConverterSetupslistens toViewerStatechanges. When a source is removed from theViewerState, it is also removed from the mapping (as well as the correspondingConverterSetup.When adding sources, however, the corresponding
ConverterSetuphas to be manually registered usingput(SourceAndConverter, ConverterSetup). (This is necessary to avoid breaking existing API.)- Author:
- Tobias Pietzsch
-
-
Constructor Summary
Constructors Constructor Description ConverterSetups(ViewerState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConverterSetupBoundsgetBounds()ConverterSetupgetConverterSetup(SourceAndConverter<?> source)SourceAndConverter<?>getSource(ConverterSetup setup)org.scijava.listeners.Listeners<ConverterSetup.SetupChangeListener>listeners()AllsetupParametersChanged()events from ConverterSetup currently in the ViewerState are forwarded to these listeners.voidput(SourceAndConverter<?> source, ConverterSetup setup)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface bdv.viewer.SourceToConverterSetupBimap
getConverterSetups
-
-
-
-
Constructor Detail
-
ConverterSetups
public ConverterSetups(ViewerState state)
-
-
Method Detail
-
listeners
public org.scijava.listeners.Listeners<ConverterSetup.SetupChangeListener> listeners()
AllsetupParametersChanged()events from ConverterSetup currently in the ViewerState are forwarded to these listeners.
-
getSource
public SourceAndConverter<?> getSource(ConverterSetup setup)
- Specified by:
getSourcein interfaceSourceToConverterSetupBimap
-
getConverterSetup
public ConverterSetup getConverterSetup(SourceAndConverter<?> source)
- Specified by:
getConverterSetupin interfaceSourceToConverterSetupBimap
-
put
public void put(SourceAndConverter<?> source, ConverterSetup setup)
-
getBounds
public ConverterSetupBounds getBounds()
-
-