public enum GraphicsUnit extends java.lang.Enum<GraphicsUnit>
Enum Constant and Description |
---|
DISPLAY
Specifies the unit of measure of the display device.
|
DOCUMENT
Specifies the document unit (1/300 inch) as the unit of measure.
|
INCH
Specifies the inch as the unit of measure.
|
MILLIMETER
Specifies the millimeter as the unit of measure.
|
PIXEL
Specifies a device pixel as the unit of measure.
|
POINT
Specifies a printer's point (1/72 inch) as the unit of measure.
|
WORLD
Specifies the world coordinate system unit as the unit of measure.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getGraphicsUnitName(int graphicsUnit)
Deprecated.
|
int |
getValue() |
static GraphicsUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GraphicsUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GraphicsUnit WORLD
public static final GraphicsUnit DISPLAY
public static final GraphicsUnit PIXEL
public static final GraphicsUnit POINT
public static final GraphicsUnit INCH
public static final GraphicsUnit DOCUMENT
public static final GraphicsUnit MILLIMETER
public static GraphicsUnit[] values()
for (GraphicsUnit c : GraphicsUnit.values()) System.out.println(c);
public static GraphicsUnit 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 int getValue()
@Deprecated public static java.lang.String getGraphicsUnitName(int graphicsUnit)