Package gda.px
Enum Class CentringOptions
- All Implemented Interfaces:
gda.observable.IObservable,Serializable,Comparable<CentringOptions>,Constable
Enum for centring modes, to be associated with collect requests
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIObserver(gda.observable.IObserver observer) static String[]static List<CentringOptions> List of every available centring option that can be used for a data collection.static CentringOptionsGets the default centring mode from the java properties.voiddeleteIObserver(gda.observable.IObserver observer) voiddescription for display tooltips, in tables, forms etc.getLabel()booleanFunction to check for availabilitystatic Optional<CentringOptions> Matches given String against the databaseName for each centring mode and returns the matching CentringOptions instance.static Optional<CentringOptions> maybeOptionFromLabel(String find) Matches given String against the label for each centring mode and returns the matching CentringOptions instance.static CentringOptionsReturns the enum constant of this class with the specified name.static CentringOptions[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSPECIFIED
-
LOOP
-
MANUAL
-
XRAY
-
MANUAL_XRAY
-
DISABLE
-
-
Field Details
-
IN_USE
public static final boolean IN_USE -
EXPLANATION
for column header/option tooltips- See Also:
-
databaseName
THIS SHOULD NEVER BE CHANGED. EVER. NO REALLY, I MEAN IT. DON'T DO IT.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getLabel
-
getDescription
description for display tooltips, in tables, forms etc. -
isAvailable
public boolean isAvailable()Function to check for availability -
getAsList
-
addIObserver
public void addIObserver(gda.observable.IObserver observer) - Specified by:
addIObserverin interfacegda.observable.IObservable
-
deleteIObserver
public void deleteIObserver(gda.observable.IObserver observer) - Specified by:
deleteIObserverin interfacegda.observable.IObservable
-
deleteIObservers
public void deleteIObservers()- Specified by:
deleteIObserversin interfacegda.observable.IObservable
-
dataCollectionOptions
List of every available centring option that can be used for a data collection. -
dataCollectionOptionLabels
-
maybeOptionFromLabel
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
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
Gets the default centring mode from the java properties. If undefined, defaults to loop where available. Otherwise, manual.
-