public enum MeasurementUnit extends Enum<MeasurementUnit>
| Enum Constant and Description |
|---|
CENTIMETERS
Centimeters.
|
INCHES
Inches.
|
MILLIMETERS
Millimeters.
|
PICAS
Picas.
|
PIXELS
Pixels.
|
POINTS
Points.
|
TWIPS
Twips.
|
| Modifier and Type | Method and Description |
|---|---|
static MeasurementUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MeasurementUnit[] |
values()
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