Class ReferenceFactory

Object
ReferenceFactory

public class ReferenceFactory extends Object
Creates reference (i.e. Providers that reference an existing object) of different types.

This is particularly useful to avoid referring to multiple identically named Reference classes in the same file, necessitating the use of the fully qualified class name.

Author:
Owen Feehan
  • Method Details

    • stack

      public static Reference stack(String id)
      Creates a reference to a stack.
      Parameters:
      id - the identifier of the stack
      Returns:
      a new Reference
    • channel

      public static Reference channel(String id)
      Creates a reference to a channel.
      Parameters:
      id - the identifier of the channel
      Returns:
      a new Reference
    • objects

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

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

      public static Reference histogram(String id)
      Creates a reference to a histogram.
      Parameters:
      id - the identifier of the histogram
      Returns:
      a new Reference