javax.print.attribute.standard
Class Chromaticity

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

public final class Chromaticity
extends EnumSyntax
implements DocAttribute, PrintRequestAttribute, PrintJobAttribute

The Chromaticity printing attribute specifies if print data should be printed in monochrome or color.

The attribute interacts with the document to be printed. If the document to be printed is a monochrome document it will be printed monochrome regardless of the value of this attribute category. However if it is a color document supplying the attribute value MONOCHROME will prepare the document to be printed in monochrome instead of color.

This printing attribute has nothing to do with the capabilities of the printer device. To check if a specific printer service supports printing in color you have to use the attribute ColorSupported

IPP Compatibility: Chromaticity is not an IPP 1.1 attribute.

See Also:
Serialized Form

Field Summary
static Chromaticity COLOR
          Specifies color printing.
static Chromaticity MONOCHROME
          Specifies monochrome printing.
 
Constructor Summary
protected Chromaticity(int value)
          Creates a Chromaticity 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  String[] getStringTable()
          Returns a table with the enumeration values represented as strings for this object.
 
Methods inherited from class javax.print.attribute.EnumSyntax
clone, getOffset, getValue, hashCode, readResolve, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MONOCHROME

public static final Chromaticity MONOCHROME
Specifies monochrome printing.


COLOR

public static final Chromaticity COLOR
Specifies color printing.

Constructor Detail

Chromaticity

protected Chromaticity(int value)
Creates a Chromaticity object.

Parameters:
value - the enum value
Method Detail

getCategory

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

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

getName

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

Specified by:
getName in interface Attribute
Returns:
The name "chromaticity".

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.