javax.print.attribute.standard
Class ColorSupported

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.ColorSupported
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 , PrintServiceAttribute sample code for javax.print.attribute.PrintServiceAttribute definition code for javax.print.attribute.PrintServiceAttribute

public final class ColorSupported
extends EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax
implements PrintServiceAttribute sample code for javax.print.attribute.PrintServiceAttribute definition code for javax.print.attribute.PrintServiceAttribute

Class ColorSupported is a printing attribute class, an enumeration, that identifies whether the device is capable of any type of color printing at all, including highlight color as well as full process color. All document instructions having to do with color are embedded within the print data (none are attributes attached to the job outside the print data).

Note: End users are able to determine the nature and details of the color support by querying the PrinterMoreInfoManufacturer sample code for javax.print.attribute.standard.PrinterMoreInfoManufacturer definition code for javax.print.attribute.standard.PrinterMoreInfoManufacturer attribute.

Don't confuse the ColorSupported attribute with the Chromaticity sample code for javax.print.attribute.standard.Chromaticity definition code for javax.print.attribute.standard.Chromaticity attribute. Chromaticity sample code for javax.print.attribute.standard.Chromaticity definition code for javax.print.attribute.standard.Chromaticity is an attribute the client can specify for a job to tell the printer whether to print a document in monochrome or color, possibly causing the printer to print a color document in monochrome. ColorSupported is a printer description attribute that tells whether the printer can print in color regardless of how the client specifies to print any particular document.

IPP Compatibility: The IPP boolean value is "true" for SUPPORTED and "false" for NOT_SUPPORTED. 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.

See Also:
Serialized Form

Field Summary
static ColorSupported sample code for javax.print.attribute.standard.ColorSupported definition code for javax.print.attribute.standard.ColorSupported NOT_SUPPORTED sample code for javax.print.attribute.standard.ColorSupported.NOT_SUPPORTED definition code for javax.print.attribute.standard.ColorSupported.NOT_SUPPORTED
          The printer is not capable of any type of color printing.
static ColorSupported sample code for javax.print.attribute.standard.ColorSupported definition code for javax.print.attribute.standard.ColorSupported SUPPORTED sample code for javax.print.attribute.standard.ColorSupported.SUPPORTED definition code for javax.print.attribute.standard.ColorSupported.SUPPORTED
          The printer is capable of some type of color printing, such as highlight color or full process color.
 
Constructor Summary
protected ColorSupported sample code for javax.print.attribute.standard.ColorSupported.ColorSupported(int) definition code for javax.print.attribute.standard.ColorSupported.ColorSupported(int) (int value)
          Construct a new color supported 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.ColorSupported.getCategory() definition code for javax.print.attribute.standard.ColorSupported.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.ColorSupported.getEnumValueTable() definition code for javax.print.attribute.standard.ColorSupported.getEnumValueTable() ()
          Returns the enumeration value table for class ColorSupported.
 String sample code for java.lang.String definition code for java.lang.String getName sample code for javax.print.attribute.standard.ColorSupported.getName() definition code for javax.print.attribute.standard.ColorSupported.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.ColorSupported.getStringTable() definition code for javax.print.attribute.standard.ColorSupported.getStringTable() ()
          Returns the string table for class ColorSupported.
 
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

NOT_SUPPORTED sample code for javax.print.attribute.standard.ColorSupported.NOT_SUPPORTED

public static final ColorSupported sample code for javax.print.attribute.standard.ColorSupported definition code for javax.print.attribute.standard.ColorSupported  NOT_SUPPORTED
The printer is not capable of any type of color printing.


SUPPORTED sample code for javax.print.attribute.standard.ColorSupported.SUPPORTED

public static final ColorSupported sample code for javax.print.attribute.standard.ColorSupported definition code for javax.print.attribute.standard.ColorSupported  SUPPORTED
The printer is capable of some type of color printing, such as highlight color or full process color.

Constructor Detail

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

protected ColorSupported(int value)
Construct a new color supported enumeration value with the given integer value.

Parameters:
value - Integer value.
Method Detail

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

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

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.ColorSupported.getEnumValueTable() definition code for javax.print.attribute.standard.ColorSupported.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 ColorSupported.

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.ColorSupported.getCategory() definition code for javax.print.attribute.standard.ColorSupported.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 ColorSupported, the category is class ColorSupported 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.ColorSupported.getName() definition code for javax.print.attribute.standard.ColorSupported.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 ColorSupported, the category name is "color-supported".

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.