public final class NumberUp extends javax.print.attribute.IntegerSyntax implements javax.print.attribute.DocAttribute, javax.print.attribute.PrintJobAttribute, javax.print.attribute.PrintRequestAttribute
NumberUp printing attribute specifies the number of pages
to be arranged upon a single media sheet.
Note: The effect of this attribute on jobs with multiple documents
is controlled by the job attribute
MultipleDocumentHandling.
IPP Compatibility: NumberUp is an IPP 1.1 attribute.
| Constructor and Description |
|---|
NumberUp(int value)
Creates a
NumberUp object. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests if the given object is equal to this object.
|
java.lang.Class<? extends javax.print.attribute.Attribute> |
getCategory()
Returns category of this class.
|
java.lang.String |
getName()
Returns the name of this attribute.
|
public NumberUp(int value)
NumberUp object.value - the number of print-stream pages to print on a single side
of a mediajava.lang.IllegalArgumentException - if value < 1public boolean equals(java.lang.Object obj)
equals in class javax.print.attribute.IntegerSyntaxobj - the object to testtrue if both objects are equal,
false otherwise.Object.hashCode()public java.lang.Class<? extends javax.print.attribute.Attribute> getCategory()
getCategory in interface javax.print.attribute.AttributeNumberUp itself.public java.lang.String getName()
getName in interface javax.print.attribute.Attribute