public enum MeasurementUnit extends java.lang.Enum<MeasurementUnit>
Enum Constant and Description |
---|
CENTIMETER
Centimeter unit.
|
INCH
Inch unit.
|
MILLIMETER
Millimeter unit.
|
PICA
Pica unit.
|
PIXEL
Pixel unit.
|
POINT
Point unit.
|
Modifier and Type | Method and Description |
---|---|
static MeasurementUnit |
find(int id) |
int |
getID() |
static MeasurementUnit |
valueOf(java.lang.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 CENTIMETER
public static final MeasurementUnit MILLIMETER
public static final MeasurementUnit POINT
public static final MeasurementUnit PIXEL
public static final MeasurementUnit PICA
public static MeasurementUnit[] values()
for (MeasurementUnit c : MeasurementUnit.values()) System.out.println(c);
public static MeasurementUnit valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static MeasurementUnit find(int id)
public int getID()
www.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.