public class WrapBasicImgLoader extends Object implements ViewerImgLoader
| Constructor and Description |
|---|
WrapBasicImgLoader(BasicImgLoader source,
Map<Integer,?> setupsMap) |
| Modifier and Type | Method and Description |
|---|---|
CacheControl |
getCacheControl() |
ViewerSetupImgLoader<?,?> |
getSetupImgLoader(int setupId)
Get the
BasicMultiResolutionSetupImgLoader for the specified view
setup. |
static boolean |
removeWrapperIfPresent(AbstractSpimData<?> spimData) |
static boolean |
wrapImgLoaderIfNecessary(AbstractSpimData<?> spimData)
If the
image loader of spimData is not a
ViewerImgLoader, then replace it with a wrapper that presents it
as ViewerImgLoader. |
public WrapBasicImgLoader(BasicImgLoader source, Map<Integer,?> setupsMap)
public static boolean wrapImgLoaderIfNecessary(AbstractSpimData<?> spimData)
image loader of spimData is not a
ViewerImgLoader, then replace it with a wrapper that presents it
as ViewerImgLoader.
However, note that trying to call
ViewerSetupImgLoader.getVolatileImage(int, int, ImgLoaderHint...)
or ViewerSetupImgLoader.getVolatileImageType() on the wrapper
will throw an UnsupportedOperationException.spimData - true if wrapping was necessary, false if
spimData had a ViewerImgLoader already.public static boolean removeWrapperIfPresent(AbstractSpimData<?> spimData)
public ViewerSetupImgLoader<?,?> getSetupImgLoader(int setupId)
BasicMultiResolutionImgLoaderBasicMultiResolutionSetupImgLoader for the specified view
setup.getSetupImgLoader in interface ViewerImgLoadergetSetupImgLoader in interface BasicImgLoadergetSetupImgLoader in interface BasicMultiResolutionImgLoadersetupId - view setup for which to get the
BasicMultiResolutionSetupImgLoader.BasicMultiResolutionSetupImgLoader for the specified view
setup.public CacheControl getCacheControl()
getCacheControl in interface ViewerImgLoaderCopyright © 2015–2021 Fiji. All rights reserved.