javax.print.attribute.standard
Class ColorSupported

java.lang.Object
  extended by javax.print.attribute.EnumSyntax
      extended by javax.print.attribute.standard.ColorSupported
All Implemented Interfaces:
Serializable, Cloneable, Attribute, PrintServiceAttribute

public final class ColorSupported
extends EnumSyntax
implements PrintServiceAttribute

The ColorSupported printing attribute specifies if a printing device is capable of color printing.

This attributes just tells if a printer device supports color printing but does not specify how a specific print job is printed. Therefore the attribute Chromaticity exists.

IPP Compatibility: ColorSupported is an IPP 1.1 attribute. The IPP specification treats ColorSupported as a boolean type which is not available in the Java Print Service API. The IPP boolean value true corresponds to SUPPORTED and "false" to NOT_SUPPORTED.

See Also:
Serialized Form

Field Summary
static ColorSupported NOT_SUPPORTED
          The printer does not support printing in color.
static ColorSupported SUPPORTED
          The printer supports printing in color.
 
Constructor Summary
protected ColorSupported(int value)
          Constructs a ColorSupported 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

NOT_SUPPORTED

public static final ColorSupported NOT_SUPPORTED
The printer does not support printing in color.


SUPPORTED

public static final ColorSupported SUPPORTED
The printer supports printing in color.

Constructor Detail

ColorSupported

protected ColorSupported(int value)
Constructs a ColorSupported 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 ColorSupported itself.

getName

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

Specified by:
getName in interface Attribute
Returns:
The name "color-supported".

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.