Enum SoUnitsElement.Units
- java.lang.Object
-
- java.lang.Enum<SoUnitsElement.Units>
-
- com.openinventor.inventor.elements.SoUnitsElement.Units
-
- All Implemented Interfaces:
IntegerValuedEnum
,java.io.Serializable
,java.lang.Comparable<SoUnitsElement.Units>
- Enclosing class:
- SoUnitsElement
public static enum SoUnitsElement.Units extends java.lang.Enum<SoUnitsElement.Units> implements IntegerValuedEnum
These are the available types of units.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANGSTROMS
CENTIMETERS
FEET
INCHES
KILOMETERS
METERS
MICROMETERS
MICRONS
MILES
MILLIMETERS
NANOMETERS
NAUTICAL_MILES
POINTS
YARDS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
Returns the integer value of the enum constant.static SoUnitsElement.Units
valueOf(int val)
Returns the enum constant of this type with the specified integer valuestatic SoUnitsElement.Units
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SoUnitsElement.Units[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
METERS
public static final SoUnitsElement.Units METERS
-
CENTIMETERS
public static final SoUnitsElement.Units CENTIMETERS
-
MILLIMETERS
public static final SoUnitsElement.Units MILLIMETERS
-
MICROMETERS
public static final SoUnitsElement.Units MICROMETERS
-
MICRONS
public static final SoUnitsElement.Units MICRONS
-
NANOMETERS
public static final SoUnitsElement.Units NANOMETERS
-
ANGSTROMS
public static final SoUnitsElement.Units ANGSTROMS
-
KILOMETERS
public static final SoUnitsElement.Units KILOMETERS
-
FEET
public static final SoUnitsElement.Units FEET
-
INCHES
public static final SoUnitsElement.Units INCHES
-
POINTS
public static final SoUnitsElement.Units POINTS
-
YARDS
public static final SoUnitsElement.Units YARDS
-
MILES
public static final SoUnitsElement.Units MILES
-
NAUTICAL_MILES
public static final SoUnitsElement.Units NAUTICAL_MILES
-
-
Method Detail
-
values
public static SoUnitsElement.Units[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SoUnitsElement.Units c : SoUnitsElement.Units.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SoUnitsElement.Units valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
valueOf
public static SoUnitsElement.Units valueOf(int val)
Returns the enum constant of this type with the specified integer value- Returns:
- the enum constant of this type with the specified integer value.
-
getValue
public int getValue()
Description copied from interface:IntegerValuedEnum
Returns the integer value of the enum constant.- Specified by:
getValue
in interfaceIntegerValuedEnum
- Returns:
- the integer value of the enum constant.
-
-