@@ -0,0 +1,1742 @@
+package mpicbg.spim.data.legacy;%0A%0Aimport java.util.HashMap;%0A%0Aimport mpicbg.spim.data.generic.sequence.BasicImgLoader;%0Aimport mpicbg.spim.data.generic.sequence.BasicSetupImgLoader;%0Aimport mpicbg.spim.data.generic.sequence.ImgLoaderHint;%0Aimport mpicbg.spim.data.sequence.ImgLoader;%0Aimport mpicbg.spim.data.sequence.SetupImgLoader;%0Aimport mpicbg.spim.data.sequence.ViewId;%0Aimport mpicbg.spim.data.sequence.VoxelDimensions;%0Aimport net.imglib2.Dimensions;%0Aimport net.imglib2.RandomAccessibleInterval;%0Aimport net.imglib2.type.numeric.real.FloatType;%0A%0A//@Deprecated%0Apublic class LegacyBasicImgLoaderWrapper%3C T, I extends LegacyBasicImgLoader%3C T %3E %3E implements BasicImgLoader%0A%7B%0A%09protected final I legacyImgLoader;%0A%0A%09private final HashMap%3C Integer, SetupImgLoaderWrapper %3E setupImgLoaders;%0A%0A%09public LegacyBasicImgLoaderWrapper( final I legacyImgLoader )%0A%09%7B%0A%09%09this.legacyImgLoader = legacyImgLoader;%0A%09%09setupImgLoaders = new HashMap%3C Integer, SetupImgLoaderWrapper %3E();%0A%09%7D%0A%0A%09@Override%0A%09public synchronized SetupImgLoaderWrapper getSetupImgLoader( final int setupId )%0A%09%7B%0A%09%09SetupImgLoaderWrapper sil = setupImgLoaders.get( setupId );%0A%09%09if ( sil == null )%0A%09%09%7B%0A%09%09%09sil = new SetupImgLoaderWrapper( setupId );%0A%09%09%09setupImgLoaders.put( setupId, sil );%0A%09%09%7D%0A%09%09return sil;%0A%09%7D%0A%0A%09public class SetupImgLoaderWrapper implements BasicSetupImgLoader%3C T %3E%0A%09%7B%0A%09%09private final int setupId;%0A%0A%09%09protected SetupImgLoaderWrapper( final int setupId )%0A%09%09%7B%0A%09%09%09this.setupId = setupId;%0A%09%09%7D%0A%0A%09%09@Override%0A%09%09public RandomAccessibleInterval%3C T %3E getImage( final int timepointId, final ImgLoaderHint... hints )%0A%09%09%7B%0A%09%09%09return legacyImgLoader.getImage( new ViewId( timepointId, setupId ) );%0A%09%09%7D%0A%0A%09%09@Override%0A%09%09public T getImageType()%0A%09%09%7B%0A%09%09%09return legacyImgLoader.getImageType();%0A%09%09%7D%0A%09%7D%0A%7D%0A

add LegacyBasicImgLoaderWrapper