public final class OrientationRequested extends EnumSyntax implements DocAttribute, PrintRequestAttribute, PrintJobAttribute
 对于某些文档格式(如"application/postscript" ),在文档数据中指定打印流页面的所需方向。 此信息由设备驱动程序在提交打印作业之前生成。 其他文档格式(如"text/plain" )不包括文档数据中所需方向的概念。 在后一种情况下,打印机可以在文档数据提交后将所需方向与文档数据绑定。 预期打印机只支持一些文档格式的OrientationRequested属性(例如, "text/plain"或"text/html" ),而不支持其他(例如"application/postscript" )。 这与任何其他作业模板属性没有什么不同,因为打印作业可以总是在不同作业模板属性的值之间施加约束。 但是,由于打印机很有可能仅支持一部分支持的文档格式支持OrientationRequested属性。 
 IPP兼容性:由getName()返回的类别名称是IPP属性名称。 枚举的整数值是IPP枚举值。 toString()方法返回属性值的IPP字符串表示形式。 
| Modifier and Type | Field and Description | 
|---|---|
| static OrientationRequested | LANDSCAPE
              内容将在介质的长边缘成像。 
             | 
| static OrientationRequested | PORTRAIT
              内容将在介质的短边成像。 
             | 
| static OrientationRequested | REVERSE_LANDSCAPE
              这些内容将以介质的长边成像,但与风景相反。 
             | 
| static OrientationRequested | REVERSE_PORTRAIT
              内容将在介质的短边成像,但是与纵向相反。 
             | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | OrientationRequested(int value)
              使用给定的整数值构造新的定向请求枚举值。 
             | 
| Modifier and Type | Method and Description | 
|---|---|
| 类<? extends Attribute> | getCategory()
              获取要用作此打印属性值的“类别”的打印属性类。 
             | 
| protected EnumSyntax[] | getEnumValueTable()
              返回类OrientationRequested的枚举值表。 
             | 
| String | getName()
              获取此属性值是一个实例的类别的名称。 
             | 
| protected int | getOffset()
              返回类OrientationRequested使用的最小整数值。 
             | 
| protected String[] | getStringTable()
              返回类OrientationRequested的字符串表。 
             | 
clone, getValue, hashCode, readResolve, toStringpublic static final OrientationRequested PORTRAIT
public static final OrientationRequested LANDSCAPE
public static final OrientationRequested REVERSE_LANDSCAPE
public static final OrientationRequested REVERSE_PORTRAIT
Finishings属性一起使用的情况下,需要相反的边缘来完成只有一个完成位置的简单整理设备上的肖像文档。 
           因此, "text/plain"肖像文档可以通过简单的整理设备“在右侧”装订,就像一些中东语言(如希伯来语)一样。 
          protected OrientationRequested(int value)
value - 整数值。 
           protected String[] getStringTable()
getStringTable在类 
            EnumSyntax 
           protected EnumSyntax[] getEnumValueTable()
getEnumValueTable在 
            EnumSyntax 
           protected int getOffset()
getOffset在 
            EnumSyntax 
           public final 类<? extends Attribute> getCategory()
对于类OrientationRequested,类是本身的OrientationRequested类。
getCategory中的 
            Attribute 
           java.lang.Class的实例。 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.