public final class OrientationRequested extends EnumSyntaximplements DocAttribute , PrintRequestAttribute , PrintJobAttribute
For some document formats (such as "application/postscript"), the desired orientation of the print-stream pages is specified within the document data. This information is generated by a device driver prior to the submission of the print job. Other document formats (such as "text/plain") do not include the notion of desired orientation within the document data. In the latter case it is possible for the printer to bind the desired orientation to the document data after it has been submitted. It is expected that a printer would only support the OrientationRequested attribute for some document formats (e.g., "text/plain" or "text/html") but not others (e.g. "application/postscript"). This is no different from any other job template attribute, since a print job can always impose constraints among the values of different job template attributes. However, a special mention is made here since it is very likely that a printer will support the OrientationRequested attribute for only a subset of the supported document formats.
IPP Compatibility: The category name returned by getName() is the IPP attribute name. The enumeration's integer value is the IPP enum value. The toString() method returns the IPP string representation of the attribute value.
| Modifier and Type | Field and Description |
|---|---|
static OrientationRequested |
LANDSCAPE
The content will be imaged across the long edge of the medium.
|
static OrientationRequested |
PORTRAIT
The content will be imaged across the short edge of the medium.
|
static OrientationRequested |
REVERSE_LANDSCAPE
The content will be imaged across the long edge of the medium, but in the opposite manner from landscape.
|
static OrientationRequested |
REVERSE_PORTRAIT
The content will be imaged across the short edge of the medium, but in the opposite manner from portrait.
|
| Modifier | Constructor and Description |
|---|---|
protected |
OrientationRequested(int value)
Construct a new orientation requested enumeration value with the given integer value.
|
| Modifier and Type | Method and Description |
|---|---|
Class |
getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.
|
protected EnumSyntax |
getEnumValueTable()
Returns the enumeration value table for class OrientationRequested.
|
String |
getName()
Get the name of the category of which this attribute value is an instance.
|
protected int |
getOffset()
Returns the lowest integer value used by class OrientationRequested.
|
protected String |
getStringTable()
Returns the string table for class OrientationRequested.
|
clone, getValue, hashCode, readResolve, toStringpublic static final OrientationRequestedPORTRAIT
public static final OrientationRequestedLANDSCAPE
public static final OrientationRequestedREVERSE_LANDSCAPE
public static final OrientationRequestedREVERSE_PORTRAIT
Finishings attribute in cases where the opposite edge is desired for finishing a portrait document on simple finishing devices that have only one finishing position. Thus a
"text/plain" portrait document can be stapled "on the right" by a simple finishing device as is common use with some Middle Eastern languages such as Hebrew.
protected OrientationRequested(int value)
value - Integer value.
protected String[] getStringTable()
getStringTable in class
EnumSyntax
protected EnumSyntax[] getEnumValueTable()
getEnumValueTable in class
EnumSyntax
protected int getOffset()
getOffset in class
EnumSyntax
public final Class<? extends Attribute > getCategory()
For class OrientationRequested, the category is class OrientationRequested itself.
getCategory in interface
Attribute
java.lang.Class.