javax.print.attribute.standard
Class Chromaticity

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

public final class Chromaticity
extends EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax
implements DocAttribute sample code for javax.print.attribute.DocAttribute definition code for javax.print.attribute.DocAttribute , PrintRequestAttribute sample code for javax.print.attribute.PrintRequestAttribute definition code for javax.print.attribute.PrintRequestAttribute , PrintJobAttribute sample code for javax.print.attribute.PrintJobAttribute definition code for javax.print.attribute.PrintJobAttribute

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 sample code for javax.print.attribute.standard.ColorSupported definition code for javax.print.attribute.standard.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 sample code for javax.print.attribute.standard.Chromaticity.MONOCHROME definition code for javax.print.attribute.standard.Chromaticity.MONOCHROME or COLOR sample code for javax.print.attribute.standard.Chromaticity.COLOR definition code for javax.print.attribute.standard.Chromaticity.COLOR for a monochrome or color document.

Chromaticity
Attribute
Effect on
Monochrome Document
Effect on
Color Document
MONOCHROME sample code for javax.print.attribute.standard.Chromaticity.MONOCHROME definition code for javax.print.attribute.standard.Chromaticity.MONOCHROME Printed as is, in monochrome Printed in monochrome, with colors converted to shades of gray
COLOR sample code for javax.print.attribute.standard.Chromaticity.COLOR definition code for javax.print.attribute.standard.Chromaticity.COLOR Printed as is, in monochrome Printed as is, in color

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

See Also:
Serialized Form

Field Summary
static Chromaticity sample code for javax.print.attribute.standard.Chromaticity definition code for javax.print.attribute.standard.Chromaticity COLOR sample code for javax.print.attribute.standard.Chromaticity.COLOR definition code for javax.print.attribute.standard.Chromaticity.COLOR
          Color printing.
static Chromaticity sample code for javax.print.attribute.standard.Chromaticity definition code for javax.print.attribute.standard.Chromaticity MONOCHROME sample code for javax.print.attribute.standard.Chromaticity.MONOCHROME definition code for javax.print.attribute.standard.Chromaticity.MONOCHROME
          Monochrome printing.
 
Constructor Summary
protected Chromaticity sample code for javax.print.attribute.standard.Chromaticity.Chromaticity(int) definition code for javax.print.attribute.standard.Chromaticity.Chromaticity(int) (int value)
          Construct a new chromaticity enumeration value with the given integer value.
 
Method Summary
 Class sample code for java.lang.Class definition code for java.lang.Class <? extends Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute > getCategory sample code for javax.print.attribute.standard.Chromaticity.getCategory() definition code for javax.print.attribute.standard.Chromaticity.getCategory() ()
          Get the printing attribute class which is to be used as the "category" for this printing attribute value.
protected  EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax [] getEnumValueTable sample code for javax.print.attribute.standard.Chromaticity.getEnumValueTable() definition code for javax.print.attribute.standard.Chromaticity.getEnumValueTable() ()
          Returns the enumeration value table for class Chromaticity.
 String sample code for java.lang.String definition code for java.lang.String getName sample code for javax.print.attribute.standard.Chromaticity.getName() definition code for javax.print.attribute.standard.Chromaticity.getName() ()
          Get the name of the category of which this attribute value is an instance.
protected  String sample code for java.lang.String definition code for java.lang.String [] getStringTable sample code for javax.print.attribute.standard.Chromaticity.getStringTable() definition code for javax.print.attribute.standard.Chromaticity.getStringTable() ()
          Returns the string table for class Chromaticity.
 
Methods inherited from class javax.print.attribute.EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax
clone sample code for javax.print.attribute.EnumSyntax.clone() definition code for javax.print.attribute.EnumSyntax.clone() , getOffset sample code for javax.print.attribute.EnumSyntax.getOffset() definition code for javax.print.attribute.EnumSyntax.getOffset() , getValue sample code for javax.print.attribute.EnumSyntax.getValue() definition code for javax.print.attribute.EnumSyntax.getValue() , hashCode sample code for javax.print.attribute.EnumSyntax.hashCode() definition code for javax.print.attribute.EnumSyntax.hashCode() , readResolve sample code for javax.print.attribute.EnumSyntax.readResolve() definition code for javax.print.attribute.EnumSyntax.readResolve() , toString sample code for javax.print.attribute.EnumSyntax.toString() definition code for javax.print.attribute.EnumSyntax.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

MONOCHROME sample code for javax.print.attribute.standard.Chromaticity.MONOCHROME

public static final Chromaticity sample code for javax.print.attribute.standard.Chromaticity definition code for javax.print.attribute.standard.Chromaticity  MONOCHROME
Monochrome printing.


COLOR sample code for javax.print.attribute.standard.Chromaticity.COLOR

public static final Chromaticity sample code for javax.print.attribute.standard.Chromaticity definition code for javax.print.attribute.standard.Chromaticity  COLOR
Color printing.

Constructor Detail

Chromaticity sample code for javax.print.attribute.standard.Chromaticity(int) definition code for javax.print.attribute.standard.Chromaticity(int)

protected Chromaticity(int value)
Construct a new chromaticity enumeration value with the given integer value.

Parameters:
value - Integer value.
Method Detail

getStringTable sample code for javax.print.attribute.standard.Chromaticity.getStringTable() definition code for javax.print.attribute.standard.Chromaticity.getStringTable()

protected String sample code for java.lang.String definition code for java.lang.String [] getStringTable()
Returns the string table for class Chromaticity.

Overrides:
getStringTable sample code for javax.print.attribute.EnumSyntax.getStringTable() definition code for javax.print.attribute.EnumSyntax.getStringTable() in class EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax
Returns:
the string table

getEnumValueTable sample code for javax.print.attribute.standard.Chromaticity.getEnumValueTable() definition code for javax.print.attribute.standard.Chromaticity.getEnumValueTable()

protected EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax [] getEnumValueTable()
Returns the enumeration value table for class Chromaticity.

Overrides:
getEnumValueTable sample code for javax.print.attribute.EnumSyntax.getEnumValueTable() definition code for javax.print.attribute.EnumSyntax.getEnumValueTable() in class EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax
Returns:
the value table

getCategory sample code for javax.print.attribute.standard.Chromaticity.getCategory() definition code for javax.print.attribute.standard.Chromaticity.getCategory()

public final Class sample code for java.lang.Class definition code for java.lang.Class <? extends Attribute sample code for javax.print.attribute.Attribute definition code for 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.

Specified by:
getCategory sample code for javax.print.attribute.Attribute.getCategory() definition code for javax.print.attribute.Attribute.getCategory() in interface Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute
Returns:
Printing attribute class (category), an instance of class java.lang.Class sample code for java.lang.Class definition code for java.lang.Class .

getName sample code for javax.print.attribute.standard.Chromaticity.getName() definition code for javax.print.attribute.standard.Chromaticity.getName()

public final String sample code for java.lang.String definition code for java.lang.String  getName()
Get the name of the category of which this attribute value is an instance.

For class Chromaticity, the category name is "chromaticity".

Specified by:
getName sample code for javax.print.attribute.Attribute.getName() definition code for javax.print.attribute.Attribute.getName() in interface Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute
Returns:
Attribute category name.