public enum MeasurementUnit extends Enum<MeasurementUnit>
Enum Constant and Description |
---|
CENTIMETER |
INCH |
MILLIMETER |
PERCENTAGE |
PIXEL |
POINTS |
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 INCH
public static final MeasurementUnit MILLIMETER
public static final MeasurementUnit CENTIMETER
public static final MeasurementUnit PERCENTAGE
public static final MeasurementUnit PIXEL
public static final MeasurementUnit POINTS
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 nullCopyright © 2022–2023 Iron Software. All rights reserved.