Class StackWriterDelegateBase
Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.image.io.bean.stack.writer.StackWriter>
org.anchoranalysis.image.io.bean.stack.writer.StackWriter
org.anchoranalysis.plugin.io.bean.stack.writer.StackWriterDelegateBase
- Direct Known Subclasses:
BranchChannels,BranchStack,BranchSuggestedFormat
public abstract class StackWriterDelegateBase
extends org.anchoranalysis.image.io.bean.stack.writer.StackWriter
A base class for a
StackWriter delegates to another StackWriter based on values
of a StackWriteAttributes.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description StackWriterDelegateBase() -
Method Summary
Modifier and Type Method Description org.anchoranalysis.core.format.ImageFileFormatfileFormat(org.anchoranalysis.image.io.stack.output.StackWriteOptions writeOptions)protected abstract org.anchoranalysis.image.io.bean.stack.writer.StackWriterselectDelegate(org.anchoranalysis.image.io.stack.output.StackWriteOptions writeOptions)Selects aStackWriterto use as a delegate.voidwriteStack(org.anchoranalysis.image.core.stack.Stack stack, Path filePath, org.anchoranalysis.image.io.stack.output.StackWriteOptions options)Methods inherited from class org.anchoranalysis.image.io.bean.stack.writer.StackWriter
fileFormatWarnUnexpected, writeStackWithExtension
-
Constructor Details
-
StackWriterDelegateBase
public StackWriterDelegateBase()
-
-
Method Details
-
fileFormat
public org.anchoranalysis.core.format.ImageFileFormat fileFormat(org.anchoranalysis.image.io.stack.output.StackWriteOptions writeOptions) throws org.anchoranalysis.image.io.ImageIOException- Specified by:
fileFormatin classorg.anchoranalysis.image.io.bean.stack.writer.StackWriter- Throws:
org.anchoranalysis.image.io.ImageIOException
-
writeStack
public void writeStack(org.anchoranalysis.image.core.stack.Stack stack, Path filePath, org.anchoranalysis.image.io.stack.output.StackWriteOptions options) throws org.anchoranalysis.image.io.ImageIOException- Specified by:
writeStackin classorg.anchoranalysis.image.io.bean.stack.writer.StackWriter- Throws:
org.anchoranalysis.image.io.ImageIOException
-
selectDelegate
protected abstract org.anchoranalysis.image.io.bean.stack.writer.StackWriter selectDelegate(org.anchoranalysis.image.io.stack.output.StackWriteOptions writeOptions) throws org.anchoranalysis.image.io.ImageIOExceptionSelects aStackWriterto use as a delegate.- Parameters:
writeOptions- options that specify what kind of rasters will be written.- Returns:
- the selected
StackWriter - Throws:
org.anchoranalysis.image.io.ImageIOException
-