javax.print.attribute.standard
Class PrintQuality

java.lang.Object
  extended by javax.print.attribute.EnumSyntax
      extended by javax.print.attribute.standard.PrintQuality
All Implemented Interfaces:
Serializable, Cloneable, Attribute, DocAttribute, PrintJobAttribute, PrintRequestAttribute

public class PrintQuality
extends EnumSyntax
implements DocAttribute, PrintJobAttribute, PrintRequestAttribute

The PrintQuality printing attribute specifies the print quality that should be used by the print services for a job.

IPP Compatibility: PrintQuality is an IPP 1.1 attribute.

See Also:
Serialized Form

Field Summary
static PrintQuality DRAFT
          Draft quality of the printer.
static PrintQuality HIGH
          High quality of the printer.
static PrintQuality NORMAL
          Normal quality of the printer.
 
Constructor Summary
protected PrintQuality(int value)
          Constructs a PrintQuality object.
 
Method Summary
 Class<? extends Attribute> getCategory()
          Returns category of this class.
protected  EnumSyntax[] getEnumValueTable()
          Returns a table with the enumeration values for this object.
 String getName()
          Returns the name of this attribute.
protected  int getOffset()
          Returns the lowest used value by the enumerations of this class. .
protected  String[] getStringTable()
          Returns a table with the enumeration values represented as strings for this object.
 
Methods inherited from class javax.print.attribute.EnumSyntax
clone, getValue, hashCode, readResolve, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DRAFT

public static final PrintQuality DRAFT
Draft quality of the printer.


NORMAL

public static final PrintQuality NORMAL
Normal quality of the printer.


HIGH

public static final PrintQuality HIGH
High quality of the printer.

Constructor Detail

PrintQuality

protected PrintQuality(int value)
Constructs a PrintQuality object.

Parameters:
value - the value of the enum
Method Detail

getCategory

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

Specified by:
getCategory in interface Attribute
Returns:
The class PrintQuality itself.

getName

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

Specified by:
getName in interface Attribute
Returns:
The name "print-quality".

getStringTable

protected String[] getStringTable()
Returns a table with the enumeration values represented as strings for this object.

Overrides:
getStringTable in class EnumSyntax
Returns:
The enumeration values as strings.

getEnumValueTable

protected EnumSyntax[] getEnumValueTable()
Returns a table with the enumeration values for this object.

Overrides:
getEnumValueTable in class EnumSyntax
Returns:
The enumeration values.

getOffset

protected int getOffset()
Returns the lowest used value by the enumerations of this class. .

Overrides:
getOffset in class EnumSyntax
Returns:
The lowest value used.