public final class ColorSupported extends EnumSyntax implements PrintServiceAttribute
Note: End users are able to determine the nature and details of the color
support by querying the PrinterMoreInfoManufacturer
attribute.
Don't confuse the ColorSupported attribute with the Chromaticity
attribute. 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.
Modifier and Type | Field and Description |
---|---|
static ColorSupported |
NOT_SUPPORTED
The printer is not capable of any type of color printing.
|
static ColorSupported |
SUPPORTED
The printer is capable of some type of color printing, such as
highlight color or full process color.
|
Modifier | Constructor and Description |
---|---|
protected |
ColorSupported(int value)
Construct a new color supported enumeration value with the given
integer value.
|
Modifier and Type | Method and Description |
---|---|
Class<? extends Attribute> |
getCategory()
Get the printing attribute class which is to be used as the "category"
for this printing attribute value.
|
protected EnumSyntax[] |
getEnumValueTable()
Returns the enumeration value table for class ColorSupported.
|
String |
getName()
Get the name of the category of which this attribute value is an
instance.
|
protected String[] |
getStringTable()
Returns the string table for class ColorSupported.
|
clone, getOffset, getValue, hashCode, readResolve, toString
public static final ColorSupported NOT_SUPPORTED
public static final ColorSupported SUPPORTED
protected ColorSupported(int value)
value
- Integer value.protected String[] getStringTable()
getStringTable
in class EnumSyntax
protected EnumSyntax[] getEnumValueTable()
getEnumValueTable
in class EnumSyntax
public final Class<? extends Attribute> getCategory()
For class ColorSupported, the category is class ColorSupported itself.
getCategory
in interface Attribute
java.lang.Class
. Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2011, Oracle and/or its affiliates. All rights reserved.
DRAFT ea-b138