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

public final Class Chromaticity

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 Chromaticity is a printing attribute class, an enumeration, that specifies monochrome or color printing. This is used by a print client to specify how the print data should be generated or processed. It is not descriptive of the color capabilities of the device. Query the service's ColorSupported attribute to determine if the device can be verified to support color printing.

The table below shows the effects of specifying a Chromaticity attribute of MONOCHROME or COLOR for a monochrome or color document.

Shows effects of specifying MONOCHROME or COLOR Chromaticity attributes
Chromaticity
Attribute
Effect on
Monochrome Document
Effect on
Color Document
MONOCHROME Printed as is, in monochrome Printed in monochrome, with colors converted to shades of gray
COLOR Printed as is, in monochrome Printed as is, in color

IPP Compatibility: Chromaticity is not an IPP attribute at present.

Author
Alan Kaminsky

Field Summary

Modifier and TypeField and Description
public static final Chromaticity
COLOR

Color printing.

public static final Chromaticity
MONOCHROME

Monochrome printing.

private static final Chromaticity[]
myEnumValueTable

The enumeration value table for class Chromaticity.

private static final String[]
myStringTable

The string table for class Chromaticity.

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
Chromaticity(int
Integer value
value
)

Construct a new chromaticity 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 Chromaticity.

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 String[]
getStringTable()

Overrides javax.print.attribute.EnumSyntax.getStringTable.

Returns the string table for class Chromaticity.

Inherited from javax.print.attribute.EnumSyntax:
clonegetOffsetgetValuehashCodereadResolvetoString

Field Detail

COLORback to summary
public static final Chromaticity COLOR

Color printing.

MONOCHROMEback to summary
public static final Chromaticity MONOCHROME

Monochrome printing.

myEnumValueTableback to summary
private static final Chromaticity[] myEnumValueTable

The enumeration value table for class Chromaticity.

myStringTableback to summary
private static final String[] myStringTable

The string table for class Chromaticity.

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

Chromaticityback to summary
protected Chromaticity(int value)

Construct a new chromaticity 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 Chromaticity, the category is the class Chromaticity 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 Chromaticity.

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 Chromaticity, the category name is "chromaticity".

Returns:String

attribute category name

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

Overrides javax.print.attribute.EnumSyntax.getStringTable.

Returns the string table for class Chromaticity.

Annotations
@Override