|
Préférences
Moteurs de recherche
|
||||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
javax.print.attribute.standard
|
Field Summary |
---|
Fields inherited from class javax.print.attribute.ResolutionSyntax |
---|
DPCM, DPI |
Constructor Summary | |
---|---|
PrinterResolution(int crossFeedResolution,
int feedResolution,
int units)
Construct a new printer resolution attribute from the given items. |
Method Summary | |
---|---|
boolean |
equals(Object object)
Returns whether this printer resolution 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.ResolutionSyntax |
---|
getCrossFeedResolution, getCrossFeedResolutionDphi, getFeedResolution, getFeedResolutionDphi, getResolution, hashCode, lessThanOrEquals, toString, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PrinterResolution(int crossFeedResolution, int feedResolution, int units)
crossFeedResolution
- Cross feed direction resolution.feedResolution
- Feed direction resolution.units
- Unit conversion factor, e.g. ResolutionSyntax.DPI
or ResolutionSyntax.>DPCM
.
IllegalArgumentException
- (unchecked exception) Thrown if crossFeedResolution
<
1 or feedResolution
< 1 or units
< 1.Method Detail |
---|
public boolean equals(Object object)
object
is not null.
object
is an instance of class PrinterResolution.
object
's cross feed direction resolution.
object
's feed direction resolution.
equals
in class ResolutionSyntax
object
- Object to compare to.
object
is equivalent to this printer
resolution attribute, false otherwise.Object.hashCode()
,
Hashtable
public final Class<? extends Attribute> getCategory()
For class PrinterResolution, the category is class PrinterResolution itself.
getCategory
in interface Attribute
java.lang.Class
.public final String getName()
For class PrinterResolution, the
category name is "printer-resolution"
.