@DoNotObfuscate public enum FormatUnit extends java.lang.Enum<FormatUnit>
DocumentFormatMillis
Enum Constant and Description |
---|
MILLIMETER
Deprecated.
|
MILLIMETERS |
POINTS |
Modifier and Type | Method and Description |
---|---|
double |
getMillisPerUnit()
Returns the conversion factor from the current unit to millimeter.
|
double |
getPointsPerUnit()
Returns the conversion factor from the current unit to points.
|
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.
|
@Deprecated public static final FormatUnit MILLIMETER
The value is marked as deprecated. Use the plural instead.
public static final FormatUnit MILLIMETERS
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 getMillisPerUnit()
public double getPointsPerUnit()
public java.lang.String toString()
toString
in class java.lang.Enum<FormatUnit>
Copyright (C) PDFUnit.com. See here for license.