public enum LengthUnit extends Enum<LengthUnit>
To convert values between various LengthUnit
s, use LengthUnitConverter
.
Enum Constant and Description |
---|
CENTIMETER
Centimeter (1 inch is around 2.54 centimeters).
|
EMU
English Metric Unit (1 point is equal as 12,700 EMUs)
|
INCH
Inch.
|
MILLIMETER
Millimeter (10 millimeters are equal as 1 centimeter).
|
PIXEL
Pixel (1 inch is equal as 96 pixels).
|
POINT
Point (1 inch is equal as 72 points).
|
TWIP
Twip (twentieth of a point, 1 point is equal as 20 twips).
|
ZERO_CHARACTER_WIDTH
Unit is the width of the zero character in default font (width of zero character is fixed to 7 pixel).
|
ZERO_CHARACTER_WIDTH_256_TH_PART
Unit is 1/256th of the width of the zero character in default font (width of zero character is fixed to 7 pixel).
|
Modifier and Type | Method and Description |
---|---|
static LengthUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LengthUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LengthUnit CENTIMETER
public static final LengthUnit EMU
public static final LengthUnit INCH
public static final LengthUnit MILLIMETER
public static final LengthUnit PIXEL
public static final LengthUnit POINT
public static final LengthUnit TWIP
public static final LengthUnit ZERO_CHARACTER_WIDTH
public static final LengthUnit ZERO_CHARACTER_WIDTH_256_TH_PART
public static LengthUnit valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static LengthUnit[] values()
for (LengthUnit c : LengthUnit.values()) System.out.println(c);
© GemBox Ltd. — All rights reserved.