Home » openjdk-7 » javax » print » attribute » standard » [javadoc | source]
javax.print.attribute.standard
public final class: NumberUp [javadoc | source]
java.lang.Object
   javax.print.attribute.IntegerSyntax
      javax.print.attribute.standard.NumberUp

All Implemented Interfaces:
    PrintJobAttribute, PrintRequestAttribute, DocAttribute, Cloneable, Serializable

Class NumberUp is an integer valued printing attribute class that specifies the number of print-stream pages to impose upon a single side of an instance of a selected medium. That is, if the NumberUp value is n, the printer must place n print-stream pages on a single side of an instance of the selected medium. To accomplish this, the printer may add some sort of translation, scaling, or rotation. This attribute primarily controls the translation, scaling and rotation of print-stream pages.

The effect of a NumberUp attribute on a multidoc print job (a job with multiple documents) depends on whether all the docs have the same number up values specified or whether different docs have different number up values specified, and on the (perhaps defaulted) value of the MultipleDocumentHandling attribute.

IPP Compatibility: The integer value gives the IPP integer value. The category name returned by getName() gives the IPP attribute name.

Constructor:
 public NumberUp(int value) 
Method from javax.print.attribute.standard.NumberUp Summary:
equals,   getCategory,   getName
Methods from javax.print.attribute.IntegerSyntax:
equals,   getValue,   hashCode,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.print.attribute.standard.NumberUp Detail:
 public boolean equals(Object object) 
    Returns whether this number up attribute is equivalent to the passed in object. To be equivalent, all of the following conditions must be true:
    1. object is not null.
    2. object is an instance of class NumberUp.
    3. This number up attribute's value and object's value are equal.
 public final Class<Attribute> getCategory() 
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.

    For class NumberUp, the category is class NumberUp itself.

 public final String getName() 
    Get the name of the category of which this attribute value is an instance.

    For class NumberUp, the category name is "number-up".