- java.lang.Object
-
- javax.print.attribute.EnumSyntax
-
- javax.print.attribute.standard.OrientationRequested
-
- All Implemented Interfaces:
- Serializable, Cloneable, Attribute, DocAttribute, PrintJobAttribute, PrintRequestAttribute
public final class OrientationRequested extends EnumSyntax implements DocAttribute, PrintRequestAttribute, PrintJobAttribute
Class 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. ThetoString()
method returns the IPP string representation of the attribute value.- See Also:
- Serialized Form
-
-
Field Summary
Fields 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.
-
Constructor Summary
Constructors Modifier Constructor and Description protected
OrientationRequested(int value)
Construct a new orientation requested enumeration value with the given integer value.
-
Method Summary
Methods Modifier and Type Method and Description 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.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 inherited from class javax.print.attribute.EnumSyntax
clone, getValue, hashCode, readResolve, toString
-
-
-
-
Field Detail
-
PORTRAIT
public static final OrientationRequested PORTRAIT
The content will be imaged across the short edge of the medium.
-
LANDSCAPE
public static final OrientationRequested LANDSCAPE
The content will be imaged across the long edge of the medium. Landscape is defined to be a rotation of the print-stream page to be imaged by +90 degrees with respect to the medium (i.e. anti-clockwise) from the portrait orientation. Note: The +90 direction was chosen because simple finishing on the long edge is the same edge whether portrait or landscape.
-
REVERSE_LANDSCAPE
public static final OrientationRequested REVERSE_LANDSCAPE
The content will be imaged across the long edge of the medium, but in the opposite manner from landscape. Reverse-landscape is defined to be a rotation of the print-stream page to be imaged by -90 degrees with respect to the medium (i.e. clockwise) from the portrait orientation. Note: The REVERSE_LANDSCAPE value was added because some applications rotate landscape -90 degrees from portrait, rather than +90 degrees.
-
REVERSE_PORTRAIT
public static final OrientationRequested REVERSE_PORTRAIT
The content will be imaged across the short edge of the medium, but in the opposite manner from portrait. Reverse-portrait is defined to be a rotation of the print-stream page to be imaged by 180 degrees with respect to the medium from the portrait orientation. Note: The REVERSE_PORTRAIT value was added for use with theFinishings
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 Detail
-
OrientationRequested
protected OrientationRequested(int value)
Construct a new orientation requested enumeration value with the given integer value.- Parameters:
value
- Integer value.
-
-
Method Detail
-
getStringTable
protected String[] getStringTable()
Returns the string table for class OrientationRequested.- Overrides:
getStringTable
in classEnumSyntax
- Returns:
- the string table
-
getEnumValueTable
protected EnumSyntax[] getEnumValueTable()
Returns the enumeration value table for class OrientationRequested.- Overrides:
getEnumValueTable
in classEnumSyntax
- Returns:
- the value table
-
getOffset
protected int getOffset()
Returns the lowest integer value used by class OrientationRequested.- Overrides:
getOffset
in classEnumSyntax
- Returns:
- the offset of the lowest enumeration value.
-
getCategory
public final Class<? extends Attribute> getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.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
.
-
-
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
24/11/2024 23:25:01 Cette version de la page est en cache (à la date du 24/11/2024 23:25:01) afin d'accélérer le traitement. Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la dernère version de la page.Document créé le 18/11/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-javax/print/attribute/standard/OrientationRequested.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.