javax.print.attribute.standard
Class OrientationRequested

java.lang.Object
  extended by javax.print.attribute.EnumSyntax
      extended by javax.print.attribute.standard.OrientationRequested
All Implemented Interfaces:
Serializable, Cloneable, Attribute, DocAttribute, PrintJobAttribute, PrintRequestAttribute

public final class OrientationRequested
extends EnumSyntax
implements DocAttribute, PrintRequestAttribute, PrintJobAttribute

The OrientationRequested printing attribute specifies the desired orientation of the print data on the media sheet.

The effect of this attribute may depend on the document format as some document formats (e.g. postscript) contains the orientation inside the print data. However for other formats like e.g. plain text this attribute will have an effect on the orientation.

IPP Compatibility: OrientationRequested is an IPP 1.1 attribute.

See Also:
Serialized Form

Field Summary
static OrientationRequested LANDSCAPE
          Orientation as landscape.
static OrientationRequested PORTRAIT
          Orientation as portrait.
static OrientationRequested REVERSE_LANDSCAPE
          Orientation as reversed landscape.
static OrientationRequested REVERSE_PORTRAIT
          Orientation as reversed portrait.
 
Constructor Summary
protected OrientationRequested(int value)
          Constructs a OrientationRequested object.
 
Method Summary
 Class<? extends Attribute> getCategory()
          Returns category of this class.
protected  EnumSyntax[] getEnumValueTable()
          Returns a table with the enumeration values for this object.
 String getName()
          Returns the name of this attribute.
protected  int getOffset()
          Returns the lowest used value by the enumerations of this class. .
protected  String[] getStringTable()
          Returns a table with the enumeration values represented as strings for this object.
 
Methods inherited from class javax.print.attribute.EnumSyntax
clone, getValue, hashCode, readResolve, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PORTRAIT

public static final OrientationRequested PORTRAIT
Orientation as portrait.


LANDSCAPE

public static final OrientationRequested LANDSCAPE
Orientation as landscape.


REVERSE_LANDSCAPE

public static final OrientationRequested REVERSE_LANDSCAPE
Orientation as reversed landscape.


REVERSE_PORTRAIT

public static final OrientationRequested REVERSE_PORTRAIT
Orientation as reversed portrait.

Constructor Detail

OrientationRequested

protected OrientationRequested(int value)
Constructs a OrientationRequested object.

Parameters:
value - the value
Method Detail

getCategory

public Class<? extends Attribute> getCategory()
Returns category of this class.

Specified by:
getCategory in interface Attribute
Returns:
The class OrientationRequested itself.

getName

public String getName()
Returns the name of this attribute.

Specified by:
getName in interface Attribute
Returns:
The name "orientation-requested".

getStringTable

protected String[] getStringTable()
Returns a table with the enumeration values represented as strings for this object.

Overrides:
getStringTable in class EnumSyntax
Returns:
The enumeration values as strings.

getEnumValueTable

protected EnumSyntax[] getEnumValueTable()
Returns a table with the enumeration values for this object.

Overrides:
getEnumValueTable in class EnumSyntax
Returns:
The enumeration values.

getOffset

protected int getOffset()
Returns the lowest used value by the enumerations of this class. .

Overrides:
getOffset in class EnumSyntax
Returns:
The lowest value used.