Class BranchSuggestedFormat
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 -
Method Summary
Modifier and TypeMethodDescriptionThe writer to use if there is no suggested file-format.A list of writers to select if a given format is usedprotected StackWriter
selectDelegate
(StackWriteOptions writeOptions) Selects aStackWriter
to use as a delegate.void
setWriterIfNoSuggestion
(StackWriter writerIfNoSuggestion) The writer to use if there is no suggested file-format.void
setWritersIfSuggested
(List<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, writeStack
Methods inherited from class org.anchoranalysis.image.io.bean.stack.writer.StackWriter
fileFormatWarnUnexpected, writeStackWithExtension
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
BranchSuggestedFormat
public BranchSuggestedFormat()
-
-
Method Details
-
selectDelegate
Description copied from class:StackWriterDelegateBase
Selects aStackWriter
to use as a delegate.- Specified by:
selectDelegate
in classStackWriterDelegateBase
- Parameters:
writeOptions
- options that specify what kind of rasters will be written.- Returns:
- the selected
StackWriter
- Throws:
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
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
The writer to use if there is no suggested file-format. -
setWriterIfNoSuggestion
The writer to use if there is no suggested file-format.
-