public enum ResolutionUnit extends Enum<ResolutionUnit>
枚举常量和说明 |
---|
CENTIMETER
units per centimeter
|
INCH
units per inch
|
NONE
no resolution unit
|
限定符和类型 | 方法和说明 |
---|---|
static ResolutionUnit |
get(int value)
Reverse lookup by value.
|
String |
getDescription()
Retrieves the standard textual description of the resolution unit.
|
int |
getValue()
Retrieves the numeric value of the resolution unit.
|
static ResolutionUnit |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ResolutionUnit[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值public int getValue()
public String getDescription()
public static ResolutionUnit get(int value)
value
- the numeric value of the resolution unitCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.