public enum ScreenDistanceUnit extends Enum<ScreenDistanceUnit>
Enum Constant and Description |
---|
Millimeters
Physical millimeters on the screen.
|
Pixels
Device independent pixels.
|
Modifier and Type | Method and Description |
---|---|
static ScreenDistanceUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScreenDistanceUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScreenDistanceUnit Pixels
public static final ScreenDistanceUnit Millimeters
public static ScreenDistanceUnit[] values()
for (ScreenDistanceUnit c : ScreenDistanceUnit.values()) System.out.println(c);
public static ScreenDistanceUnit 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