@@ -0,0 +1,947 @@
+package bdv.viewer;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport bdv.tools.brightness.ConverterSetup;%0A%0A/**%0A * Associates %7B@code ConverterSetup%7Ds to sources (%7B@code SourceAndConverter%7D).%0A *%0A * @author Tobias Pietzsch%0A */%0Apublic interface SourceToConverterSetupBimap%0A%7B%0A%09SourceAndConverter%3C ? %3E getSource( ConverterSetup converterSetup );%0A%0A%09ConverterSetup getConverterSetup( SourceAndConverter%3C ? %3E source );%0A%0A%09/**%0A%09 * Returns list of all non-%7B@code null%7D ConverterSetups associated to%0A%09 * %7B@code sources%7D.%0A%09 */%0A%09default List%3C ConverterSetup %3E getConverterSetups( final List%3C ? extends SourceAndConverter%3C ? %3E %3E sources )%0A%09%7B%0A%09%09final List%3C ConverterSetup %3E converterSetups = new ArrayList%3C%3E();%0A%09%09for ( final SourceAndConverter%3C ? %3E source : sources )%0A%09%09%7B%0A%09%09%09final ConverterSetup converterSetup = getConverterSetup( source );%0A%09%09%09if ( converterSetup != null )%0A%09%09%09%09converterSetups.add( converterSetup );%0A%09%09%7D%0A%09%09return converterSetups;%0A%09%7D%0A%7D%0A

Add SourceToConverterSetupBimap interface, associating ConverterSetup to SourceAndConverter