public static enum Angle.Units extends java.lang.Enum<Angle.Units> implements Units, java.io.Serializable
Enum Constant and Description |
---|
ARCMINUTES |
ARCSECONDS |
DEGREES |
HOURS |
RADIANS |
TIMEMINUTES |
TIMESECONDS |
Modifier and Type | Method and Description |
---|---|
Angle.Units |
createUnitsFromName(java.lang.String unitsName)
Create an object of this type that matches the units name
(ignoring case).
|
java.util.List<java.lang.String> |
getNames()
Suitable for constructing a javax.swing.JComboBox, for user selection.
|
java.lang.String |
getSymbol() |
static Angle.Units |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Angle.Units[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Angle.Units ARCMINUTES
public static final Angle.Units ARCSECONDS
public static final Angle.Units DEGREES
public static final Angle.Units HOURS
public static final Angle.Units RADIANS
public static final Angle.Units TIMEMINUTES
public static final Angle.Units TIMESECONDS
public static Angle.Units[] values()
for (Angle.Units c : Angle.Units.values()) System.out.println(c);
public static Angle.Units valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic Angle.Units createUnitsFromName(java.lang.String unitsName)
createUnitsFromName
in interface Units