Package xal.extension.wirescan.profile
Enum Class ProfileData.Angle
- All Implemented Interfaces:
Serializable
,Comparable<ProfileData.Angle>
,Constable
- Enclosing class:
- ProfileData
Enumeration of supported projection-data view angles. Typically these
values are used as method arguments identifying the projection data under
consideration.
- Author:
- Christopher K. Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic int
getCount()
Return the total number of supported viewing angles.int
getIndex()
Return the array index associated with the view angle.static ProfileData.Angle
Returns the enum constant of this class with the specified name.static ProfileData.Angle[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HOR
Horizontal projection -
VER
Vertical projection -
DIA
Diagonal projection
-
-
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
-
getCount
public static int getCount()Return the total number of supported viewing angles.- Returns:
- number of view angles
-
getIndex
public int getIndex()Return the array index associated with the view angle.- Returns:
- index associated with this view
-