public enum ResolutionUnit extends Enum<ResolutionUnit> implements CodedEnum
| Enum Constant and Description |
|---|
CENTIMETER |
INCH |
NONE
No absolute unit of measurement.
|
| Modifier and Type | Method and Description |
|---|---|
static ResolutionUnit |
get(int code)
Retrieves a resolution unit by reverse lookup of its "code".
|
int |
getCode()
Retrieves the integer "code" for this enumeration.
|
String |
getName()
Retrieves the given name of the resolution unit.
|
static ResolutionUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResolutionUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResolutionUnit NONE
public static final ResolutionUnit INCH
public static final ResolutionUnit CENTIMETER
public static ResolutionUnit[] values()
for (ResolutionUnit c : ResolutionUnit.values()) System.out.println(c);
public static ResolutionUnit 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 nullpublic static ResolutionUnit get(int code)
code - The code to look up.ResolutionUnit instance for the code or
null if it does not exist.public int getCode()
CodedEnumpublic String getName()
Copyright © 2011–2026 SCIFIO. All rights reserved.