public enum HwmfMapMode extends java.lang.Enum<HwmfMapMode>
Enum Constant and Description |
---|
MM_ANISOTROPIC
Logical units are mapped to arbitrary units with arbitrarily scaled axes.
|
MM_HIENGLISH
Each logical unit is mapped to 0.001 inch.
|
MM_HIMETRIC
Each logical unit is mapped to 0.01 millimeter.
|
MM_ISOTROPIC
Logical units are mapped to arbitrary device units with equally scaled axes; that is, one unit along the x-axis is equal to one unit along the y-axis.
|
MM_LOENGLISH
Each logical unit is mapped to 0.01 inch.
|
MM_LOMETRIC
Each logical unit is mapped to 0.1 millimeter.
|
MM_TEXT
Each logical unit is mapped to one device pixel.
|
MM_TWIPS
Each logical unit is mapped to one twentieth (1/20) of a point.
|
Modifier and Type | Field and Description |
---|---|
int |
flag
native flag
(本机标志)
|
int |
scale
transformation units - usually scale relative to current dpi.
(转换单位 - 通常相对于当前 dpi 进行缩放。)
|
Modifier and Type | Method and Description |
---|---|
static HwmfMapMode |
valueOf(int flag) |
static HwmfMapMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
(返回具有指定名称的此类型的枚举常量。)
|
static HwmfMapMode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
(按照声明的顺序返回包含此枚举类型常量的数组。)
|
public static final HwmfMapMode MM_TEXT
public static final HwmfMapMode MM_LOMETRIC
public static final HwmfMapMode MM_HIMETRIC
public static final HwmfMapMode MM_LOENGLISH
public static final HwmfMapMode MM_HIENGLISH
public static final HwmfMapMode MM_TWIPS
public static final HwmfMapMode MM_ISOTROPIC
public static final HwmfMapMode MM_ANISOTROPIC
public final int flag
public final int scale
public static HwmfMapMode[] values()
for (HwmfMapMode c : HwmfMapMode.values()) System.out.println(c);(按照声明的顺序返回包含此枚举类型常量的数组。此方法可用于迭代常量,如下所示: for (HwmfMapMode c : HwmfMapMode.values()) System.out.println(c);)
public static HwmfMapMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
(name - 要返回的枚举常量的名称。)
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified name
(java.lang.IllegalArgumentException - 如果此枚举类型没有具有指定名称的常量)
java.lang.NullPointerException
- if the argument is null
(java.lang.NullPointerException - 如果参数为空)
public static HwmfMapMode valueOf(int flag)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.