Enum HemfPlusDraw.EmfPlusUnitType
- java.lang.Object
-
- java.lang.Enum<HemfPlusDraw.EmfPlusUnitType>
-
- org.apache.poi.hemf.record.emfplus.HemfPlusDraw.EmfPlusUnitType
-
- All Implemented Interfaces:
Serializable,Comparable<HemfPlusDraw.EmfPlusUnitType>
- Enclosing class:
- HemfPlusDraw
public static enum HemfPlusDraw.EmfPlusUnitType extends Enum<HemfPlusDraw.EmfPlusUnitType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DisplaySpecifies a unit of distance based on the characteristics of the physical display.DocumentSpecifies a unit of 1/300 inch.InchSpecifies a unit of 1 inch.MillimeterSpecifies a unit of 1 millimeter.PixelSpecifies a unit of 1 pixel.PointSpecifies a unit of 1 printer's point, or 1/72 inch.WorldSpecifies a unit of logical distance within the world space.
-
Field Summary
Fields Modifier and Type Field Description intid
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HemfPlusDraw.EmfPlusUnitTypevalueOf(int id)Returns the enum constant of this type with the specified name.static HemfPlusDraw.EmfPlusUnitTypevalueOf(String name)Returns the enum constant of this type with the specified name.static HemfPlusDraw.EmfPlusUnitType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
World
public static final HemfPlusDraw.EmfPlusUnitType World
Specifies a unit of logical distance within the world space.
-
Display
public static final HemfPlusDraw.EmfPlusUnitType Display
Specifies a unit of distance based on the characteristics of the physical display.
-
Pixel
public static final HemfPlusDraw.EmfPlusUnitType Pixel
Specifies a unit of 1 pixel.
-
Point
public static final HemfPlusDraw.EmfPlusUnitType Point
Specifies a unit of 1 printer's point, or 1/72 inch.
-
Inch
public static final HemfPlusDraw.EmfPlusUnitType Inch
Specifies a unit of 1 inch.
-
Document
public static final HemfPlusDraw.EmfPlusUnitType Document
Specifies a unit of 1/300 inch.
-
Millimeter
public static final HemfPlusDraw.EmfPlusUnitType Millimeter
Specifies a unit of 1 millimeter.
-
-
Method Detail
-
values
public static HemfPlusDraw.EmfPlusUnitType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HemfPlusDraw.EmfPlusUnitType c : HemfPlusDraw.EmfPlusUnitType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HemfPlusDraw.EmfPlusUnitType valueOf(String name)
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
-
valueOf
public static HemfPlusDraw.EmfPlusUnitType valueOf(int id)
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:
id- 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
-
-