Class OrientationRequested
- All Implemented Interfaces:
-
Serializable
,Cloneable
,Attribute
,DocAttribute
,PrintJobAttribute
,PrintRequestAttribute
public final class OrientationRequested extends EnumSyntax implements DocAttribute, PrintRequestAttribute, PrintJobAttribute
OrientationRequested
is a printing attribute class, an enumeration, that indicates the desired orientation for printed print-stream pages; it does not describe the orientation of the client-supplied print-stream pages. 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.
- See Also:
Field Summary
Modifier and Type | Field | Description |
---|---|---|
static final OrientationRequested |
LANDSCAPE |
The content will be imaged across the long edge of the medium. |
static final OrientationRequested |
PORTRAIT |
The content will be imaged across the short edge of the medium. |
static final OrientationRequested |
REVERSE_LANDSCAPE |
The content will be imaged across the long edge of the medium, but in the opposite manner from landscape. |
static final OrientationRequested |
REVERSE_PORTRAIT |
The content will be imaged across the short edge of the medium, but in the opposite manner from portrait. |
Constructor Summary
Modifier | Constructor | Description |
---|---|---|
protected |
Construct a new orientation requested enumeration value with the given integer value. |
Method Summary
Modifier and Type | Method | Description |
---|---|---|
final Class<? extends Attribute> |
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 . |
final 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 . |
Methods declared in class javax.print.attribute.EnumSyntax
clone, getValue, hashCode, readResolve, toString
Field Details
PORTRAIT
public static final OrientationRequested PORTRAIT
LANDSCAPE
public static final OrientationRequested LANDSCAPE
REVERSE_LANDSCAPE
public static final OrientationRequested REVERSE_LANDSCAPE
REVERSE_PORTRAIT
public static final OrientationRequested REVERSE_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.Constructor Details
OrientationRequested
protected OrientationRequested(int value)
- Parameters:
-
value
- Integer value
Method Details
getStringTable
protected String[] getStringTable()
OrientationRequested
.- Overrides:
-
getStringTable
in classEnumSyntax
- Returns:
- the string table
getEnumValueTable
protected EnumSyntax[] getEnumValueTable()
OrientationRequested
.- Overrides:
-
getEnumValueTable
in classEnumSyntax
- Returns:
- the value table
getOffset
protected int getOffset()
OrientationRequested
.- Overrides:
-
getOffset
in classEnumSyntax
- Returns:
- the offset of the lowest enumeration value
getCategory
public final Class<? extends Attribute> getCategory()
For class OrientationRequested
, the category is class OrientationRequested
itself.
- Specified by:
-
getCategory
in interfaceAttribute
- Returns:
- printing attribute class (category), an instance of class
java.lang.Class
getName
public final String getName()
For class OrientationRequested
, the category name is "orientation-requested"
.
© 1993, 2021, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/print/attribute/standard/OrientationRequested.html