PrinterResolution is a printing attribute class that specifies
an exact resolution supported by a printer or to be used for a print job.
This attribute assumes that printers have a small set of device resolutions
at which they can operate rather than a continuum.
PrinterResolution is used in multiple ways:
PrinterResolution indicating the exact resolution
the client wants. Only printers supporting that exact resolution will match
the search.
PrinterResolution as an attribute of the Print Job. This will
fail if the Print Job doesn't support that exact resolution, and
Fidelity is set to true.
PrintQuality attribute which often controls resolution.
IPP Compatibility: The information needed to construct an IPP
"printer-resolution" attribute can be obtained by calling methods on
the PrinterResolution object. The category name returned by getName()
gives the IPP attribute name.
| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
Hides javax. |
| Access | Constructor and Description |
|---|---|
| public | PrinterResolution(int
cross feed direction resolution crossFeedResolution, int feed direction resolution feedResolution, int unit conversion factor, e.g. units)ResolutionSyntax.DPI
or ResolutionSyntax.DPCMConstruct a new printer resolution attribute from the given items. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if object is equivalent to this printer
resolution attribute, false otherwiseObject to compare toOverrides javax. Returns whether this printer resolution attribute is equivalent to the passed in object. |
| public final Class | Returns: printing attribute class (category), an instance of classjava.Implements javax. Get the printing attribute class which is to be used as the "category" for this printing attribute value. |
| public final String | Returns: attribute category nameImplements javax. Get the name of the category of which this attribute value is an instance. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides javax. Use serialVersionUID from JDK 1.4 for interoperability. | |
| PrinterResolution | back to summary |
|---|---|
| public PrinterResolution(int crossFeedResolution, int feedResolution, int units) Construct a new printer resolution attribute from the given items.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides javax. Returns whether this printer resolution attribute is equivalent to the passed in object. To be equivalent, all of the following conditions must be true:
| |
| getCategory | back to summary |
|---|---|
| public final Class Implements javax. Get the printing attribute class which is to be used as the "category" for this printing attribute value.
For class
| |
| getName | back to summary |
|---|---|
| public final String getName() Implements javax. Get the name of the category of which this attribute value is an instance.
For class | |