|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<HwmfMapMode>
org.apache.poi.hwmf.record.HwmfMapMode
public enum HwmfMapMode
A 16-bit unsigned integer that defines the mapping mode. The MapMode defines how logical units are mapped to physical units; that is, assuming that the origins in both the logical and physical coordinate systems are at the same point on the drawing surface, what is the physical coordinate (x',y') that corresponds to logical coordinate (x,y). For example, suppose the mapping mode is MM_TEXT. Given the following definition of that mapping mode, and an origin (0,0) at the top left corner of the drawing surface, logical coordinate (4,5) would map to physical coordinate (4,5) in pixels. Now suppose the mapping mode is MM_LOENGLISH, with the same origin as the previous example. Given the following definition of that mapping mode, logical coordinate (4,-5) would map to physical coordinate (0.04,0.05) in inches.
Enum Constant Summary | |
---|---|
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. |
Field Summary | |
---|---|
int |
flag
native flag |
int |
scale
transformation units - usually scale relative to current dpi. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Field Detail |
---|
public final int flag
public final int scale
Method Detail |
---|
public static HwmfMapMode[] values()
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.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |