public enum GraphicsUnit extends Enum<GraphicsUnit>
Specifies the unit of measure for the given data.
| 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 GraphicsUnit |
valueOf(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
Specifies the world coordinate system unit as the unit of measure.
public static final GraphicsUnit Display
Specifies the unit of measure of the display device. Typically pixels for video displays, and 1/100 inch for printers.
public static final GraphicsUnit Pixel
Specifies a device pixel as the unit of measure.
public static final GraphicsUnit Point
Specifies a printer's point (1/72 inch) as the unit of measure.
public static final GraphicsUnit Inch
Specifies the inch as the unit of measure.
public static final GraphicsUnit Document
Specifies the document unit (1/300 inch) as the unit of measure.
public static final GraphicsUnit Millimeter
Specifies the millimeter as the unit of measure.
public static GraphicsUnit[] values()
for (GraphicsUnit c : GraphicsUnit.values()) System.out.println(c);
public static GraphicsUnit valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.