JavaTM 2 Platform
Standard Ed. 6

javax.print.attribute.standard
类 PresentationDirection

java.lang.Object
  继承者 javax.print.attribute.EnumSyntax
      继承者 javax.print.attribute.standard.PresentationDirection
所有已实现的接口:
Serializable, Cloneable, Attribute, PrintJobAttribute, PrintRequestAttribute

public final class PresentationDirection
extends EnumSyntax
implements PrintJobAttribute, PrintRequestAttribute

PresentationDirection 类是打印属性类,它是一种枚举,它与 NumberUp 属性结合使用,以指示应用于所选单面介质实例上多个打印流页的布局。这在镜像不同脚本的文本布局约定方面非常有用。例如,英语是 "toright-tobottom",希伯来语是 "toleft-tobottom",日语通常是 "tobottom-toleft"。

IPP 兼容性:此属性并非 IPP 1.1 属性;它是 IPP 1.1 的 Production Printing Extension (PDF) 中的一种属性。由 getName() 返回的类别名称是 IPP 属性名称。枚举的整数值是 IPP 枚举值。toString() 方法返回属性值的 IPP 字符串表示形式。

另请参见:
序列化表格

字段摘要
static PresentationDirection TOBOTTOM_TOLEFT
          从右上开始,按列布置各页,然后向左下部展开。
static PresentationDirection TOBOTTOM_TORIGHT
          从左上开始,按列布置各页,然后向右下部展开。
static PresentationDirection TOLEFT_TOBOTTOM
          从右上部开始,按行布置各页,然后向左下部展开。
static PresentationDirection TOLEFT_TOTOP
          从右下部开始,按行布置各页,然后向左上部展开。
static PresentationDirection TORIGHT_TOBOTTOM
          从左上部开始,按行布置各页,然后向右下部展开。
static PresentationDirection TORIGHT_TOTOP
          从左下部开始,按行布置各页,然后向右上部展开。
static PresentationDirection TOTOP_TOLEFT
          从右下部开始,按列布置各页,然后向左上部展开。
static PresentationDirection TOTOP_TORIGHT
          从左下部开始,按列布置各页,然后向右上部展开。
 
方法摘要
 Class<? extends Attribute> getCategory()
          获取将用作此打印属性值的“类别”的打印属性类。
protected  EnumSyntax[] getEnumValueTable()
          返回类 PresentationDirection 的枚举值表。
 String getName()
          获取类别的名称,此属性值是该类别的一个实例。
protected  String[] getStringTable()
          返回类 PresentationDirection 的字符串表。
 
从类 javax.print.attribute.EnumSyntax 继承的方法
clone, getOffset, getValue, hashCode, readResolve, toString
 
从类 java.lang.Object 继承的方法
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

字段详细信息

TOBOTTOM_TORIGHT

public static final PresentationDirection TOBOTTOM_TORIGHT
从左上开始,按列布置各页,然后向右下部展开。


TOBOTTOM_TOLEFT

public static final PresentationDirection TOBOTTOM_TOLEFT
从右上开始,按列布置各页,然后向左下部展开。


TOTOP_TORIGHT

public static final PresentationDirection TOTOP_TORIGHT
从左下部开始,按列布置各页,然后向右上部展开。


TOTOP_TOLEFT

public static final PresentationDirection TOTOP_TOLEFT
从右下部开始,按列布置各页,然后向左上部展开。


TORIGHT_TOBOTTOM

public static final PresentationDirection TORIGHT_TOBOTTOM
从左上部开始,按行布置各页,然后向右下部展开。


TORIGHT_TOTOP

public static final PresentationDirection TORIGHT_TOTOP
从左下部开始,按行布置各页,然后向右上部展开。


TOLEFT_TOBOTTOM

public static final PresentationDirection TOLEFT_TOBOTTOM
从右上部开始,按行布置各页,然后向左下部展开。


TOLEFT_TOTOP

public static final PresentationDirection TOLEFT_TOTOP
从右下部开始,按行布置各页,然后向左上部展开。

方法详细信息

getStringTable

protected String[] getStringTable()
返回类 PresentationDirection 的字符串表。

覆盖:
EnumSyntax 中的 getStringTable
返回:
字符串表

getEnumValueTable

protected EnumSyntax[] getEnumValueTable()
返回类 PresentationDirection 的枚举值表。

覆盖:
EnumSyntax 中的 getEnumValueTable
返回:
值表

getCategory

public final Class<? extends Attribute> getCategory()
获取将用作此打印属性值的“类别”的打印属性类。

对于类 PresentationDirection,该类别就是类 PresentationDirection 本身。

指定者:
接口 Attribute 中的 getCategory
返回:
打印属性类(类别),这是类 java.lang.Class 的一个实例。

getName

public final String getName()
获取类别的名称,此属性值是该类别的一个实例。

对于类 PresentationDirection,类别名称是 "presentation-direction"

指定者:
接口 Attribute 中的 getName
返回:
属性类别名称。

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only