MeasurementUnitpublic enum MeasurementUnit extends Enum<MeasurementUnit>
| Enum Constant and Description |
|---|
CENTIMETERS
Deprecated.
|
INCHES
Deprecated.
|
MILLIMETERS
Deprecated.
|
PICAS
Deprecated.
|
PIXELS
Deprecated.
|
POINTS
Deprecated.
|
TWIPS
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static MeasurementUnit |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static MeasurementUnit[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MeasurementUnit INCHES
public static final MeasurementUnit PIXELS
public static final MeasurementUnit CENTIMETERS
public static final MeasurementUnit MILLIMETERS
public static final MeasurementUnit PICAS
public static final MeasurementUnit POINTS
public static final MeasurementUnit TWIPS
public static MeasurementUnit[] values()
for (MeasurementUnit c : MeasurementUnit.values()) System.out.println(c);
public static MeasurementUnit 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 null