Class 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 Details

    • BranchSuggestedFormat

      public BranchSuggestedFormat()
  • Method Details

    • selectDelegate

      protected StackWriter selectDelegate(StackWriteOptions writeOptions) throws ImageIOException
      Description copied from class: StackWriterDelegateBase
      Selects a StackWriter to use as a delegate.
      Specified by:
      selectDelegate in class StackWriterDelegateBase
      Parameters:
      writeOptions - options that specify what kind of rasters will be written.
      Returns:
      the selected StackWriter
      Throws:
      ImageIOException
    • getWritersIfSuggested

      public List<StackWriter> getWritersIfSuggested()
      A list of writers to select if a given format is used

      The 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<StackWriter> writersIfSuggested)
      A list of writers to select if a given format is used

      The name of the format should be the default extension (without a leading period) of the corresponding format. Case is irrelevant.

    • getWriterIfNoSuggestion

      public StackWriter getWriterIfNoSuggestion()
      The writer to use if there is no suggested file-format.
    • setWriterIfNoSuggestion

      public void setWriterIfNoSuggestion(StackWriter writerIfNoSuggestion)
      The writer to use if there is no suggested file-format.