Class BranchSuggestedFormat
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
org.anchoranalysis.plugin.io.bean.stack.writer.BranchSuggestedFormat
public class BranchSuggestedFormat extends StackWriterDelegateBase
Selects particular writers based on if particular suggested image formats are present.
This is useful for mapping a suggested file format by user to the underlying StackWriter that should write it.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description BranchSuggestedFormat() -
Method Summary
Modifier and Type Method Description org.anchoranalysis.image.io.bean.stack.writer.StackWritergetWriterIfNoSuggestion()The writer to use if there is no suggested file-format.List<org.anchoranalysis.image.io.bean.stack.writer.StackWriter>getWritersIfSuggested()A list of writers to select if a given format is usedprotected org.anchoranalysis.image.io.bean.stack.writer.StackWriterselectDelegate(org.anchoranalysis.image.io.stack.output.StackWriteOptions writeOptions)Selects aStackWriterto use as a delegate.voidsetWriterIfNoSuggestion(org.anchoranalysis.image.io.bean.stack.writer.StackWriter writerIfNoSuggestion)The writer to use if there is no suggested file-format.voidsetWritersIfSuggested(List<org.anchoranalysis.image.io.bean.stack.writer.StackWriter> writersIfSuggested)A list of writers to select if a given format is usedMethods inherited from class org.anchoranalysis.plugin.io.bean.stack.writer.StackWriterDelegateBase
fileFormat, writeStackMethods inherited from class org.anchoranalysis.image.io.bean.stack.writer.StackWriter
fileFormatWarnUnexpected, writeStackWithExtension
-
Constructor Details
-
BranchSuggestedFormat
public BranchSuggestedFormat()
-
-
Method Details
-
selectDelegate
protected org.anchoranalysis.image.io.bean.stack.writer.StackWriter selectDelegate(org.anchoranalysis.image.io.stack.output.StackWriteOptions writeOptions) throws org.anchoranalysis.image.io.ImageIOExceptionDescription copied from class:StackWriterDelegateBaseSelects aStackWriterto use as a delegate.- Specified by:
selectDelegatein classStackWriterDelegateBase- Parameters:
writeOptions- options that specify what kind of rasters will be written.- Returns:
- the selected
StackWriter - Throws:
org.anchoranalysis.image.io.ImageIOException
-
getWritersIfSuggested
A list of writers to select if a given format is usedThe name of the format should be the default extension (without a leading period) of the corresponding format. Case is irrelevant.
-
setWritersIfSuggested
public void setWritersIfSuggested(List<org.anchoranalysis.image.io.bean.stack.writer.StackWriter> writersIfSuggested)A list of writers to select if a given format is usedThe name of the format should be the default extension (without a leading period) of the corresponding format. Case is irrelevant.
-
getWriterIfNoSuggestion
public org.anchoranalysis.image.io.bean.stack.writer.StackWriter getWriterIfNoSuggestion()The writer to use if there is no suggested file-format. -
setWriterIfNoSuggestion
public void setWriterIfNoSuggestion(org.anchoranalysis.image.io.bean.stack.writer.StackWriter writerIfNoSuggestion)The writer to use if there is no suggested file-format.
-