Package org.odftoolkit.odfdom.type
Enum Length.Unit
- All Implemented Interfaces:
Serializable
,Comparable<Length.Unit>
,java.lang.constant.Constable
- Enclosing class:
- Length
Measurement units for ODF datatype length
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionabbr()
double
static Length.Unit
Returns the enum constant of this type with the specified name.static Length.Unit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
POINT
-
PIXEL
-
MILLIMETER
-
MICROMETER
-
PICA
-
CENTIMETER
-
INCH
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
unitInMillimiter
public double unitInMillimiter()- Returns:
- the length of the Unit in Millimeter
-
abbr
- Returns:
- the abbreviation of the Unit (e.g. cm for Centimeter)
-