- java.lang.Object
-
- javafx.print.PaperSource
-
public final class PaperSource extends Object
A PaperSource is the input tray to be used for the Paper. The enumerated values here cover many of the most common sources, which may map to platform IDs. However there are also printer specific tray names which may be in use. So queries of the supported paper sources may include other values.- Since:
- JavaFX 8.0
-
-
Field Summary
Fields Modifier and Type Field Description static PaperSource
AUTOMATIC
Specify to automatically select the tray.static PaperSource
BOTTOM
Specify to select the BOTTOM tray.static PaperSource
ENVELOPE
Specify to select the ENVELOPE tray.static PaperSource
LARGE_CAPACITY
Specify to select the LARGE_CAPACITY tray.static PaperSource
MAIN
Specify to select the MAIN tray.static PaperSource
MANUAL
Specify to select the MANUAL tray.static PaperSource
MIDDLE
Specify to select the MIDDLE tray.static PaperSource
SIDE
Specify to select the SIDE tray.static PaperSource
TOP
Specify to select the TOP tray.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Returns the name of this paper source.String
toString()
Returns a string representation of the object.
-
-
-
Field Detail
-
AUTOMATIC
public static final PaperSource AUTOMATIC
Specify to automatically select the tray.
-
MAIN
public static final PaperSource MAIN
Specify to select the MAIN tray.
-
MANUAL
public static final PaperSource MANUAL
Specify to select the MANUAL tray.
-
BOTTOM
public static final PaperSource BOTTOM
Specify to select the BOTTOM tray.
-
MIDDLE
public static final PaperSource MIDDLE
Specify to select the MIDDLE tray.
-
TOP
public static final PaperSource TOP
Specify to select the TOP tray.
-
SIDE
public static final PaperSource SIDE
Specify to select the SIDE tray.
-
ENVELOPE
public static final PaperSource ENVELOPE
Specify to select the ENVELOPE tray.
-
LARGE_CAPACITY
public static final PaperSource LARGE_CAPACITY
Specify to select the LARGE_CAPACITY tray.
-
-
Method Detail
-
getName
public String getName()
Returns the name of this paper source.- Returns:
- paper source name.
-
toString
public String toString()
Description copied from class:Object
Returns a string representation of the object. In general, thetoString
method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.The
toString
method for classObject
returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@
', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:getClass().getName() + '@' + Integer.toHexString(hashCode())
-
-