java.lang.Object
javax.print.attribute.EnumSyntax
javax.print.attribute.standard.OrientationRequested
- 所有已实现的接口:
-
Serializable,Cloneable,Attribute,DocAttribute,PrintJobAttribute,PrintRequestAttribute
public final class OrientationRequested extends EnumSyntax implements DocAttribute, PrintRequestAttribute, PrintJobAttribute
类
OrientationRequested 是一个打印属性类,一个枚举,表示打印的打印流页面的期望方向;它不描述客户端提供的打印流页面的方向。
对于某些文档格式(例如"application/postscript"),打印流页面的期望方向在文档数据中指定。这些信息是由设备驱动程序在提交打印作业之前生成的。其他文档格式(例如"text/plain")不包括文档数据中的期望方向概念。在后一种情况下,打印机可以在提交文档数据后将期望方向绑定到文档数据。预期打印机仅支持某些文档格式(例如"text/plain"或"text/html")的OrientationRequested属性,而不支持其他文档格式(例如"application/postscript")。这与任何其他作业模板属性没有区别,因为打印作业始终可以在不同作业模板属性的值之间施加约束。但是,这里特别提到,因为很可能打印机仅支持OrientationRequested属性用于受支持的文档格式的子集。
IPP兼容性: getName()返回的类别名称是IPP属性名称。枚举的整数值是IPP枚举值。 toString()方法返回属性值的IPP字符串表示。
- 参见:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OrientationRequested内容将在介质的长边上成像。static final OrientationRequested内容将在介质的短边上成像。static final OrientationRequested内容将在介质的长边上成像,但与横向方式相反。static final OrientationRequested内容将在介质的短边上成像,但与纵向方式相反。 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription获取用作此打印属性值的“类别”的打印属性类。protected EnumSyntax[]返回类OrientationRequested的枚举值表。final StringgetName()获取此属性值是其实例的类别的名称。protected int返回类OrientationRequested使用的最低整数值。protected String[]返回类OrientationRequested的字符串表。Methods declared in class javax.print.attribute.EnumSyntax
clone, getValue, hashCode, readResolve, toString
-
Field Details
-
PORTRAIT
内容将在介质的短边上成像。 -
LANDSCAPE
内容将在介质的长边上成像。横向被定义为将打印流页面旋转+90度,相对于介质(即逆时针)从纵向方向。 注意: 选择+90方向是因为简单的整理在横向和纵向时是相同的边缘。 -
REVERSE_LANDSCAPE
内容将在介质的长边上成像,但与横向方式相反。反向横向被定义为将打印流页面旋转-90度,相对于介质(即顺时针)从纵向方向。 注意: 添加了REVERSE_LANDSCAPE值,因为某些应用程序将横向从纵向旋转-90度,而不是+90度。 -
REVERSE_PORTRAIT
内容将在介质的短边上成像,但与纵向方式相反。反向纵向被定义为将打印流页面旋转180度,相对于介质从纵向方向。 注意: 添加了REVERSE_PORTRAIT值,用于在只有一个整理位置的简单整理设备上使用Finishings属性的情况下,以期望在右侧整理纵向文档,这在一些希伯来语等中东语言中是常见的用法。
-
-
Constructor Details
-
OrientationRequested
protected OrientationRequested(int value) 使用给定的整数值构造一个新的期望方向枚举值。- 参数:
-
value- 整数值
-
-
Method Details
-
getStringTable
返回类OrientationRequested的字符串表。- 覆盖:
-
getStringTable在类EnumSyntax中 - 返回:
- 字符串表
-
getEnumValueTable
返回类OrientationRequested的枚举值表。- 覆盖:
-
getEnumValueTable在类EnumSyntax中 - 返回:
- 值表
-
getOffset
protected int getOffset()返回类OrientationRequested使用的最低整数值。- 覆盖:
-
getOffset在类EnumSyntax中 - 返回:
- 最低枚举值的偏移量
-
getCategory
获取用作此打印属性值的“类别”的打印属性类。对于类
OrientationRequested,类别是类OrientationRequested本身。- 指定者:
-
getCategory在接口Attribute中 - 返回:
-
打印属性类别(类别),
java.lang.Class类的实例
-
getName
获取此属性值是其实例的类别的名称。对于类
OrientationRequested,类别名称是"orientation-requested"。
-