APIdia Launch Partner
Top Description Fields Constructors Methods
javax.print.attribute.standard

public final Class PresentationDirection

extends EnumSyntax
implements PrintJobAttribute, PrintRequestAttribute
Class Inheritance
All Implemented Interfaces
javax.print.attribute.PrintRequestAttribute, javax.print.attribute.Attribute, java.io.Serializable, javax.print.attribute.PrintJobAttribute
Imports
java.io.Serial, javax.print.attribute.Attribute, .EnumSyntax, .PrintJobAttribute, .PrintRequestAttribute

Class PresentationDirection is a printing attribute class, an enumeration, that is used in conjunction with the NumberUp attribute to indicate the layout of multiple print-stream pages to impose upon a single side of an instance of a selected medium. This is useful to mirror the text layout conventions of different scripts. For example, English is "toright-tobottom", Hebrew is "toleft-tobottom" and Japanese is usually "tobottom-toleft".

IPP Compatibility: This attribute is not an IPP 1.1 attribute; it is an attribute in the Production Printing Extension ( PDF) of IPP 1.1. 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.

Author
Phil Race

Field Summary

Modifier and TypeField and Description
private static final PresentationDirection[]
myEnumValueTable

The enumeration value table for class PresentationDirection.

private static final String[]
myStringTable

The string table for class PresentationDirection.

private static final long
serialVersionUID

Hides javax.print.attribute.EnumSyntax.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.
public static final PresentationDirection
TOBOTTOM_TOLEFT

Pages are laid out in columns starting at the top right, proceeding towards the bottom & left.

public static final PresentationDirection
TOBOTTOM_TORIGHT

Pages are laid out in columns starting at the top left, proceeding towards the bottom & right.

public static final PresentationDirection
TOLEFT_TOBOTTOM

Pages are laid out in rows starting at the top right, proceeding towards the left & bottom.

public static final PresentationDirection
TOLEFT_TOTOP

Pages are laid out in rows starting at the bottom right, proceeding towards the left & top.

public static final PresentationDirection
TORIGHT_TOBOTTOM

Pages are laid out in rows starting at the top left, proceeding towards the right & bottom.

public static final PresentationDirection
TORIGHT_TOTOP

Pages are laid out in rows starting at the bottom left, proceeding towards the right & top.

public static final PresentationDirection
TOTOP_TOLEFT

Pages are laid out in columns starting at the bottom right, proceeding towards the top & left.

public static final PresentationDirection
TOTOP_TORIGHT

Pages are laid out in columns starting at the bottom left, proceeding towards the top & right.

Constructor Summary

AccessConstructor and Description
private
PresentationDirection(int
Integer value
value
)

Construct a new presentation direction enumeration value with the given integer value.

Method Summary

Modifier and TypeMethod and Description
public final Class<? extends Attribute>

Returns:

printing attribute class (category), an instance of class java.lang.Class
getCategory
()

Implements javax.print.attribute.Attribute.getCategory.

Get the printing attribute class which is to be used as the "category" for this printing attribute value.

protected EnumSyntax[]
getEnumValueTable()

Overrides javax.print.attribute.EnumSyntax.getEnumValueTable.

Returns the enumeration value table for class PresentationDirection.

public final String

Returns:

attribute category name
getName
()

Implements javax.print.attribute.Attribute.getName.

Get the name of the category of which this attribute value is an instance.

protected String[]
getStringTable()

Overrides javax.print.attribute.EnumSyntax.getStringTable.

Returns the string table for class PresentationDirection.

Inherited from javax.print.attribute.EnumSyntax:
clonegetOffsetgetValuehashCodereadResolvetoString

Field Detail

myEnumValueTableback to summary
private static final PresentationDirection[] myEnumValueTable

The enumeration value table for class PresentationDirection.

myStringTableback to summary
private static final String[] myStringTable

The string table for class PresentationDirection.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.print.attribute.EnumSyntax.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.

Annotations
@Serial
TOBOTTOM_TOLEFTback to summary
public static final PresentationDirection TOBOTTOM_TOLEFT

Pages are laid out in columns starting at the top right, proceeding towards the bottom & left.

TOBOTTOM_TORIGHTback to summary
public static final PresentationDirection TOBOTTOM_TORIGHT

Pages are laid out in columns starting at the top left, proceeding towards the bottom & right.

TOLEFT_TOBOTTOMback to summary
public static final PresentationDirection TOLEFT_TOBOTTOM

Pages are laid out in rows starting at the top right, proceeding towards the left & bottom.

TOLEFT_TOTOPback to summary
public static final PresentationDirection TOLEFT_TOTOP

Pages are laid out in rows starting at the bottom right, proceeding towards the left & top.

TORIGHT_TOBOTTOMback to summary
public static final PresentationDirection TORIGHT_TOBOTTOM

Pages are laid out in rows starting at the top left, proceeding towards the right & bottom.

TORIGHT_TOTOPback to summary
public static final PresentationDirection TORIGHT_TOTOP

Pages are laid out in rows starting at the bottom left, proceeding towards the right & top.

TOTOP_TOLEFTback to summary
public static final PresentationDirection TOTOP_TOLEFT

Pages are laid out in columns starting at the bottom right, proceeding towards the top & left.

TOTOP_TORIGHTback to summary
public static final PresentationDirection TOTOP_TORIGHT

Pages are laid out in columns starting at the bottom left, proceeding towards the top & right.

Constructor Detail

PresentationDirectionback to summary
private PresentationDirection(int value)

Construct a new presentation direction enumeration value with the given integer value.

Parameters
value:int

Integer value

Method Detail

getCategoryback to summary
public final Class<? extends Attribute> getCategory()

Implements javax.print.attribute.Attribute.getCategory.

Get the printing attribute class which is to be used as the "category" for this printing attribute value.

For class PresentationDirection the category is class PresentationDirection itself.

Returns:Class<? extends Attribute>

printing attribute class (category), an instance of class java.lang.Class

Annotations
@Override
getEnumValueTableback to summary
protected EnumSyntax[] getEnumValueTable()

Overrides javax.print.attribute.EnumSyntax.getEnumValueTable.

Returns the enumeration value table for class PresentationDirection.

Annotations
@Override
getNameback to summary
public final String getName()

Implements javax.print.attribute.Attribute.getName.

Get the name of the category of which this attribute value is an instance.

For class PresentationDirection the category name is "presentation-direction".

Returns:String

attribute category name

Annotations
@Override
getStringTableback to summary
protected String[] getStringTable()

Overrides javax.print.attribute.EnumSyntax.getStringTable.

Returns the string table for class PresentationDirection.

Annotations
@Override