javax.print.attribute.standard
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.
| Constructor Summary | |
|---|---|
| PrinterResolution(int crossFeedResolution, int feedResolution, int units)
Creates a PrinterResolution object with the given cross
feed and feed resolutions.
| |
| Method Summary | |
|---|---|
| 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.
|
PrinterResolution object with the given cross
feed and feed resolutions.
Parameters: crossFeedResolution the cross feed resolution feedResolution the feed resolution units the unit to use (e.g. {@link #DPCM} or {@link #DPI})
Throws: IllegalArgumentException if either parameter is < 1
Parameters: obj the object to test
Returns: true if both objects are equal,
false otherwise.
Returns: The class PrinterResolution itself.
Returns: The name "printer-resolution".