public final class PrinterResolution extends ResolutionSyntax implements DocAttribute, PrintJobAttribute, PrintRequestAttribute
PrinterResolution printing attribute specifies a
resolution supported by a print service or to be used by a print job.
IPP Compatibility: PrinterResolution is an IPP 1.1 attribute.
DPCM, DPI| Constructor and Description |
|---|
PrinterResolution(int crossFeedResolution,
int feedResolution,
int units)
Creates a
PrinterResolution object with the given cross
feed and feed resolutions. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Tests if the given object is equal to this object.
|
Class<? extends Attribute> |
getCategory()
Returns category of this class.
|
String |
getName()
Returns the name of this attribute.
|
getCrossFeedResolution, getCrossFeedResolutionDphi, getFeedResolution, getFeedResolutionDphi, getResolution, hashCode, lessThanOrEquals, toString, toStringpublic PrinterResolution(int crossFeedResolution, int feedResolution, int units)
PrinterResolution object with the given cross
feed and feed resolutions.crossFeedResolution - the cross feed resolutionfeedResolution - the feed resolutionunits - the unit to use (e.g. ResolutionSyntax.DPCM or ResolutionSyntax.DPI)IllegalArgumentException - if either parameter is < 1public boolean equals(Object obj)
equals in class ResolutionSyntaxobj - the object to testtrue if both objects are equal,
false otherwise.Object.hashCode()public Class<? extends Attribute> getCategory()
getCategory in interface AttributePrinterResolution itself.