javax.print.attribute.standard

Class ColorSupported

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 {@link javax.print.attribute.standard.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.

Field Summary
static ColorSupportedNOT_SUPPORTED
The printer does not support printing in color.
static ColorSupportedSUPPORTED
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.
StringgetName()
Returns the name of this attribute.
protected String[]getStringTable()
Returns a table with the enumeration values represented as strings for this object.

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.

Returns: The class ColorSupported itself.

getEnumValueTable

protected EnumSyntax[] getEnumValueTable()
Returns a table with the enumeration values for this object.

Returns: The enumeration values.

getName

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

Returns: The name "color-supported".

getStringTable

protected String[] getStringTable()
Returns a table with the enumeration values represented as strings for this object.

Returns: The enumeration values as strings.