public final class OrientationRequested extends javax.print.attribute.EnumSyntax implements javax.print.attribute.DocAttribute, javax.print.attribute.PrintRequestAttribute, javax.print.attribute.PrintJobAttribute
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.
| Modifier and Type | Field and Description |
|---|---|
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.
|
| Modifier | Constructor and Description |
|---|---|
protected |
OrientationRequested(int value)
Constructs a
OrientationRequested object. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<? extends javax.print.attribute.Attribute> |
getCategory()
Returns category of this class.
|
protected javax.print.attribute.EnumSyntax[] |
getEnumValueTable()
Returns a table with the enumeration values for this object.
|
java.lang.String |
getName()
Returns the name of this attribute.
|
protected int |
getOffset()
Returns the lowest used value by the enumerations of this class.
.
|
protected java.lang.String[] |
getStringTable()
Returns a table with the enumeration values represented as strings
for this object.
|
public static final OrientationRequested PORTRAIT
public static final OrientationRequested LANDSCAPE
public static final OrientationRequested REVERSE_LANDSCAPE
public static final OrientationRequested REVERSE_PORTRAIT
protected OrientationRequested(int value)
OrientationRequested object.value - the valuepublic java.lang.Class<? extends javax.print.attribute.Attribute> getCategory()
getCategory in interface javax.print.attribute.AttributeOrientationRequested itself.public java.lang.String getName()
getName in interface javax.print.attribute.Attributeprotected java.lang.String[] getStringTable()
getStringTable in class javax.print.attribute.EnumSyntaxprotected javax.print.attribute.EnumSyntax[] getEnumValueTable()
getEnumValueTable in class javax.print.attribute.EnumSyntaxprotected int getOffset()
getOffset in class javax.print.attribute.EnumSyntax