Class Reference

Object
AnchorBean<MaskProvider>
InitializableBean<MaskProvider, ImageInitialization>
ImageBean<MaskProvider>
BeanProviderAsStackBase<MaskProvider, Mask>
MaskProvider
Reference
All Implemented Interfaces:
Provider<Mask>, ProviderAsStack

public class Reference extends MaskProvider
A provider that references an existing Mask by its identifier.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    Creates a new Reference with the specified identifier.
  • Method Summary

    Modifier and Type
    Method
    Description
    Mask
    get()
     
    The identifier of the mask to reference.
    boolean
    If true, the mask is duplicated after it is retrieved, to prevent overwriting existing data.
    void
    setDuplicate(boolean duplicate)
    If true, the mask is duplicated after it is retrieved, to prevent overwriting existing data.
    void
    The identifier of the mask to reference.

    Methods inherited from class org.anchoranalysis.image.bean.provider.MaskProvider

    getAsStack

    Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean

    getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Reference

      public Reference(String id)
      Creates a new Reference with the specified identifier.
      Parameters:
      id - the identifier of the mask to reference
    • Reference

      public Reference()
  • Method Details

    • get

      public Mask get() throws ProvisionFailedException
      Throws:
      ProvisionFailedException
    • getId

      public String getId()
      The identifier of the mask to reference.
    • setId

      public void setId(String id)
      The identifier of the mask to reference.
    • isDuplicate

      public boolean isDuplicate()
      If true, the mask is duplicated after it is retrieved, to prevent overwriting existing data. This is a shortcut to avoid embedding beans in a MaskProviderDuplicate.
    • setDuplicate

      public void setDuplicate(boolean duplicate)
      If true, the mask is duplicated after it is retrieved, to prevent overwriting existing data. This is a shortcut to avoid embedding beans in a MaskProviderDuplicate.