@DoNotObfuscate public enum FormatUnit extends java.lang.Enum<FormatUnit>
DocumentFormat
| Enum Constant and Description |
|---|
CENTIMETER |
DPI72 |
INCH |
MILLIMETER |
POINTS |
| Modifier and Type | Method and Description |
|---|---|
double |
getConversionFactorToMillimeter()
Returns the factor to multiply each instance of this class to convert
to millimeter.
|
java.lang.String |
toString()
This method can be used for logging and debugging.
|
static FormatUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FormatUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FormatUnit MILLIMETER
public static final FormatUnit CENTIMETER
public static final FormatUnit INCH
public static final FormatUnit DPI72
public static final FormatUnit POINTS
public static FormatUnit[] values()
for (FormatUnit c : FormatUnit.values()) System.out.println(c);
public static FormatUnit valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic double getConversionFactorToMillimeter()
public java.lang.String toString()
toString in class java.lang.Enum<FormatUnit>Copyright (C) PDFUnit.com. See here for license.