Please note that this translation of the specification is the result of a java.net community project ( https://jdk5-api-pt-br.dev.java.net/ ). The official version of the specification is the US English language version which can be found at http://java.sun.com/j2se/1.5.0/docs/api/. In case of disputes, the authoritative version of the specification is the original, English document.
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.print.attribute.IntegerSyntax
javax.print.attribute.standard.NumberUp
public final class NumberUp
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.
MultipleDocumentHandling makes
sense, and the printer's processing depends on the MultipleDocumentHandling value:
getName() gives the IPP
attribute name.
| Constructor Summary | |
|---|---|
NumberUp(int value)
Construct a new number up attribute with the given integer value. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object object)
Returns whether this number up attribute is equivalent to the passed in object. |
Class<? extends Attribute> |
getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value. |
String |
getName()
Get the name of the category of which this attribute value is an instance. |
| Methods inherited from class javax.print.attribute.IntegerSyntax |
|---|
getValue, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NumberUp(int value)
value - Integer value.
IllegalArgumentException - (Unchecked exception) Thrown if value is less than 1.| Method Detail |
|---|
public boolean equals(Object object)
object is not null.
object is an instance of class NumberUp.
object's value are
equal.
equals in class IntegerSyntaxobject - Object to compare to.
object is equivalent to this number up
attribute, false otherwise.Object.hashCode(),
Hashtablepublic final Class<? extends Attribute> getCategory()
For class NumberUp, the category is class NumberUp itself.
getCategory in interface Attributejava.lang.Class.public final String getName()
For class NumberUp, the category name is "number-up".
getName in interface Attribute
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
Copyright 2006 Sun Microsystems, Inc. Todos os direitos reservados. O uso está sujeito aos termos da licensa.