Enum ResolutionUnit
- All Implemented Interfaces:
Serializable
,Comparable<ResolutionUnit>
,java.lang.constant.Constable
Enumeration for resolution units used by images; 1 for None, 2 for Inch and 3 for Centimeter.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionunits per centimeterunits per inchno resolution unit -
Method Summary
Modifier and TypeMethodDescriptionstatic ResolutionUnit
get
(int value) Reverse lookup by value.Retrieves the standard textual description of the resolution unit.int
getValue()
Retrieves the numeric value of the resolution unit.static ResolutionUnit
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.
-
Enum Constant Details
-
NONE
no resolution unit -
INCH
units per inch -
CENTIMETER
units per centimeter
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()Retrieves the numeric value of the resolution unit.- Returns:
- 1, 2 or 3.
-
getDescription
Retrieves the standard textual description of the resolution unit.- Returns:
- None, Inch or Centimeter.
-
get
Reverse lookup by value.- Parameters:
value
- the numeric value of the resolution unit- Returns:
- the resolution unit
-