public enum Units extends Enum<Units>
This enum contains possible values for size units.
| Enum Constant and Description |
|---|
Centimeters
Centimeters.
|
Inches
Inches.
|
Millimeters
Millimeters.
|
Percents
Percents of exisiting size.
|
Points
Points (1/72 of inch).
|
| Modifier and Type | Method and Description |
|---|---|
static Units |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Units[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Units Points
Points (1/72 of inch).
public static final Units Inches
Inches.
public static final Units Millimeters
Millimeters.
public static final Units Centimeters
Centimeters.
public static final Units Percents
Percents of exisiting size.
public static Units[] values()
for (Units c : Units.values()) System.out.println(c);
public static Units 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 © 2025 Aspose. All Rights Reserved.