Package gda.px

Enum Class CentringOptions

All Implemented Interfaces:
gda.observable.IObservable, Serializable, Comparable<CentringOptions>, Constable

public enum CentringOptions extends Enum<CentringOptions> implements gda.observable.IObservable
Enum for centring modes, to be associated with collect requests
  • Enum Constant Details

  • Field Details

    • IN_USE

      public static final boolean IN_USE
    • EXPLANATION

      public static final String EXPLANATION
      for column header/option tooltips
      See Also:
    • databaseName

      public final String databaseName
      THIS SHOULD NEVER BE CHANGED. EVER. NO REALLY, I MEAN IT. DON'T DO IT.
  • Method Details

    • values

      public static CentringOptions[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CentringOptions valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getLabel

      public String getLabel()
    • getDescription

      public String getDescription()
      description for display tooltips, in tables, forms etc.
    • isAvailable

      public boolean isAvailable()
      Function to check for availability
    • getAsList

      public List<CentringOptions> getAsList()
    • addIObserver

      public void addIObserver(gda.observable.IObserver observer)
      Specified by:
      addIObserver in interface gda.observable.IObservable
    • deleteIObserver

      public void deleteIObserver(gda.observable.IObserver observer)
      Specified by:
      deleteIObserver in interface gda.observable.IObservable
    • deleteIObservers

      public void deleteIObservers()
      Specified by:
      deleteIObservers in interface gda.observable.IObservable
    • dataCollectionOptions

      public static List<CentringOptions> dataCollectionOptions()
      List of every available centring option that can be used for a data collection.
    • dataCollectionOptionLabels

      public static String[] dataCollectionOptionLabels()
    • maybeOptionFromLabel

      public static Optional<CentringOptions> maybeOptionFromLabel(String find)
      Matches given String against the label for each centring mode and returns the matching CentringOptions instance. This is used when dealing with GUI objects e.g. buttons or text boxes that use the pretty label.
    • maybeOptionFromInternalName

      public static Optional<CentringOptions> maybeOptionFromInternalName(String find)
      Matches given String against the databaseName for each centring mode and returns the matching CentringOptions instance. This is used when dealing with properties or other code.
    • defaultOption

      public static CentringOptions defaultOption()
      Gets the default centring mode from the java properties. If undefined, defaults to loop where available. Otherwise, manual.