Package org.scictrl.mp.orbitcorrect
Enum Class Orientation
- All Implemented Interfaces:
Serializable,Comparable<Orientation>,Constable
Indicates Horizontal or Vertical orientation of data.
- Author:
- igor@scictrl.com
-
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
FieldsModifier and TypeFieldDescriptionstatic final intConstant_H=_HORIZONTALstatic final intConstant_HORIZONTAL=0static final intConstant_V=_VERTICALstatic final intConstant_VERTICAL=1static final OrientationConstantHstatic final OrientationConstantV -
Method Summary
Modifier and TypeMethodDescriptionShort name, H or V.booleanisHorizontal.booleanisVertical.intvalue()Deprecated.use ordinal()static OrientationReturns the enum constant of this class with the specified name.static Orientation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HORIZONTAL
Horizontal orientation. -
VERTICAL
Vertical orientation.
-
-
Field Details
-
_HORIZONTAL
public static final int _HORIZONTALConstant_HORIZONTAL=0- See Also:
-
_VERTICAL
public static final int _VERTICALConstant_VERTICAL=1- See Also:
-
_H
public static final int _HConstant_H=_HORIZONTAL- See Also:
-
_V
public static final int _VConstant_V=_VERTICAL- See Also:
-
H
ConstantH -
V
ConstantV
-
-
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
-
value
Deprecated.use ordinal()Same as ordinal.- Returns:
- ordinal
-
isHorizontal
public boolean isHorizontal()isHorizontal.
- Returns:
- a boolean
-
isVertical
public boolean isVertical()isVertical.
- Returns:
- a boolean
-
getShortName
Short name, H or V.
- Returns:
- a short name, H or V
-