public final class PrinterResolution extends javax.print.attribute.ResolutionSyntax implements javax.print.attribute.DocAttribute, javax.print.attribute.PrintJobAttribute, javax.print.attribute.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.
| 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(java.lang.Object obj)
Tests if the given object is equal to this object.
|
java.lang.Class<? extends javax.print.attribute.Attribute> |
getCategory()
Returns category of this class.
|
java.lang.String |
getName()
Returns the name of this attribute.
|
public 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)java.lang.IllegalArgumentException - if either parameter is < 1public boolean equals(java.lang.Object obj)
equals in class javax.print.attribute.ResolutionSyntaxobj - the object to testtrue if both objects are equal,
false otherwise.Object.hashCode()public java.lang.Class<? extends javax.print.attribute.Attribute> getCategory()
getCategory in interface javax.print.attribute.AttributePrinterResolution itself.public java.lang.String getName()
getName in interface javax.print.attribute.Attribute