com.trolltech.qt.gui
Class QPrinter.Unit
java.lang.Object
java.lang.Enum
com.trolltech.qt.gui.QPrinter.Unit
- All Implemented Interfaces:
- QtEnumerator, java.io.Serializable, java.lang.Comparable
- Enclosing class:
- QPrinter
public static final class QPrinter.Unit
- extends java.lang.Enum
- implements QtEnumerator
This enum type is used to specify the measurement unit for page and paper sizes. Note the difference between Point and DevicePixel
. The Point unit is defined to be 1/72th of an inch, while the DevicePixel
unit is resolution dependant and is based on the actual pixels, or dots, on the printer.
- See Also:
- Serialized Form
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 |
Millimeter
public static final QPrinter.Unit Millimeter
Point
public static final QPrinter.Unit Point
Inch
public static final QPrinter.Unit Inch
Pica
public static final QPrinter.Unit Pica
Didot
public static final QPrinter.Unit Didot
Cicero
public static final QPrinter.Unit Cicero
DevicePixel
public static final QPrinter.Unit DevicePixel
values
public static QPrinter.Unit[] values()
valueOf
public static QPrinter.Unit valueOf(java.lang.String name)
value
public int value()
- This function should return an integer value for the enum values of the enumeration that implements this interface.
- Specified by:
value
in interface QtEnumerator
resolve
public static QPrinter.Unit resolve(int value)
- Returns the Unit constant with the specified int.