javax.print.attribute.standard

Class NumberUp

public final class NumberUp extends IntegerSyntax implements DocAttribute, PrintJobAttribute, PrintRequestAttribute

The 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 {@link javax.print.attribute.standard.MultipleDocumentHandling}.

IPP Compatibility: NumberUp is an IPP 1.1 attribute.

Constructor Summary
NumberUp(int value)
Creates a NumberUp object.
Method Summary
booleanequals(Object obj)
Tests if the given object is equal to this object.
Class<? extends Attribute>getCategory()
Returns category of this class.
StringgetName()
Returns the name of this attribute.

Constructor Detail

NumberUp

public NumberUp(int value)
Creates a NumberUp object.

Parameters: value the number of print-stream pages to print on a single side of a media

Throws: IllegalArgumentException if value < 1

Method Detail

equals

public boolean equals(Object obj)
Tests if the given object is equal to this object.

Parameters: obj the object to test

Returns: true if both objects are equal, false otherwise.

getCategory

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

Returns: The class NumberUp itself.

getName

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

Returns: The name "number-up".