javax.print.attribute.standard

Class PrinterResolution

public final class PrinterResolution extends ResolutionSyntax implements DocAttribute, PrintJobAttribute, PrintRequestAttribute

The 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
booleanequals(Object obj)
Tests if the given object is equal to this object.
Class<? extends Attribute>getCategory()
Returns category of this class.
StringgetName()
Returns the name of this attribute.

Constructor Detail

PrinterResolution

public PrinterResolution(int crossFeedResolution, int feedResolution, int units)
Creates a 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

Method Detail

equals

public boolean equals(Object obj)
Tests if the given object is equal to this object.

Parameters: obj the object to test

Returns: true if both objects are equal, false otherwise.

getCategory

public Class<? extends Attribute> getCategory()
Returns category of this class.

Returns: The class PrinterResolution itself.

getName

public String getName()
Returns the name of this attribute.

Returns: The name "printer-resolution".