APIdia Launch Partner
Top Description Fields Constructors Methods
javax.print.attribute.standard

public Class PrintQuality

extends EnumSyntax
implements DocAttribute, PrintRequestAttribute, PrintJobAttribute
Class Inheritance
All Implemented Interfaces
javax.print.attribute.PrintJobAttribute, javax.print.attribute.Attribute, java.io.Serializable, javax.print.attribute.PrintRequestAttribute, javax.print.attribute.DocAttribute
Imports
java.io.Serial, javax.print.attribute.Attribute, .DocAttribute, .EnumSyntax, .PrintJobAttribute, .PrintRequestAttribute

Class PrintQuality is a printing attribute class, an enumeration, that specifies the print quality that the printer uses for the job.

IPP Compatibility: The category name returned by getName() is the IPP attribute name. The enumeration's integer value is the IPP enum value. The toString() method returns the IPP string representation of the attribute value.

Authors
David Mendenhall, Alan Kaminsky

Field Summary

Modifier and TypeField and Description
public static final PrintQuality
DRAFT

Lowest quality available on the printer.

public static final PrintQuality
HIGH

Highest quality available on the printer.

private static final PrintQuality[]
myEnumValueTable

The enumeration value table for class PrintQuality.

private static final String[]
myStringTable

The string table for class PrintQuality.

public static final PrintQuality
NORMAL

Normal or intermediate quality on the printer.

private static final long
serialVersionUID

Hides javax.print.attribute.EnumSyntax.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.

Constructor Summary

AccessConstructor and Description
protected
PrintQuality(int
Integer value
value
)

Construct a new print quality enumeration value with the given integer value.

Method Summary

Modifier and TypeMethod and Description
public final Class<? extends Attribute>

Returns:

printing attribute class (category), an instance of class java.lang.Class
getCategory
()

Implements javax.print.attribute.Attribute.getCategory.

Get the printing attribute class which is to be used as the "category" for this printing attribute value.

protected EnumSyntax[]
getEnumValueTable()

Overrides javax.print.attribute.EnumSyntax.getEnumValueTable.

Returns the enumeration value table for class PrintQuality.

public final String

Returns:

attribute category name
getName
()

Implements javax.print.attribute.Attribute.getName.

Get the name of the category of which this attribute value is an instance.

protected int
getOffset()

Overrides javax.print.attribute.EnumSyntax.getOffset.

Returns the lowest integer value used by class PrintQuality.

protected String[]
getStringTable()

Overrides javax.print.attribute.EnumSyntax.getStringTable.

Returns the string table for class PrintQuality.

Inherited from javax.print.attribute.EnumSyntax:
clonegetValuehashCodereadResolvetoString

Field Detail

DRAFTback to summary
public static final PrintQuality DRAFT

Lowest quality available on the printer.

HIGHback to summary
public static final PrintQuality HIGH

Highest quality available on the printer.

myEnumValueTableback to summary
private static final PrintQuality[] myEnumValueTable

The enumeration value table for class PrintQuality.

myStringTableback to summary
private static final String[] myStringTable

The string table for class PrintQuality.

NORMALback to summary
public static final PrintQuality NORMAL

Normal or intermediate quality on the printer.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.print.attribute.EnumSyntax.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.

Annotations
@Serial

Constructor Detail

PrintQualityback to summary
protected PrintQuality(int value)

Construct a new print quality enumeration value with the given integer value.

Parameters
value:int

Integer value

Method Detail

getCategoryback to summary
public final Class<? extends Attribute> getCategory()

Implements javax.print.attribute.Attribute.getCategory.

Get the printing attribute class which is to be used as the "category" for this printing attribute value.

For class PrintQuality and any vendor-defined subclasses, the category is class PrintQuality itself.

Returns:Class<? extends Attribute>

printing attribute class (category), an instance of class java.lang.Class

Annotations
@Override
getEnumValueTableback to summary
protected EnumSyntax[] getEnumValueTable()

Overrides javax.print.attribute.EnumSyntax.getEnumValueTable.

Returns the enumeration value table for class PrintQuality.

Annotations
@Override
getNameback to summary
public final String getName()

Implements javax.print.attribute.Attribute.getName.

Get the name of the category of which this attribute value is an instance.

For class PrintQuality and any vendor-defined subclasses, the category name is "print-quality".

Returns:String

attribute category name

Annotations
@Override
getOffsetback to summary
protected int getOffset()

Overrides javax.print.attribute.EnumSyntax.getOffset.

Returns the lowest integer value used by class PrintQuality.

Annotations
@Override
getStringTableback to summary
protected String[] getStringTable()

Overrides javax.print.attribute.EnumSyntax.getStringTable.

Returns the string table for class PrintQuality.

Annotations
@Override