public final class Chromaticity extends javax.print.attribute.EnumSyntax implements javax.print.attribute.DocAttribute, javax.print.attribute.PrintRequestAttribute, javax.print.attribute.PrintJobAttribute
Chromaticity printing attribute specifies if print data
should be printed in monochrome or color.
The attribute interacts with the document to be printed. If the document
to be printed is a monochrome document it will be printed monochrome
regardless of the value of this attribute category. However if it is a
color document supplying the attribute value MONOCHROME
will prepare the document to be printed in monochrome instead of color.
This printing attribute has nothing to do with the capabilities of the
printer device. To check if a specific printer service supports printing
in color you have to use the attribute
ColorSupported
IPP Compatibility: Chromaticity is not an IPP 1.1 attribute.
| Modifier and Type | Field and Description |
|---|---|
static Chromaticity |
COLOR
Specifies color printing.
|
static Chromaticity |
MONOCHROME
Specifies monochrome printing.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Chromaticity(int value)
Creates a
Chromaticity object. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<? extends javax.print.attribute.Attribute> |
getCategory()
Returns category of this class.
|
protected javax.print.attribute.EnumSyntax[] |
getEnumValueTable()
Returns a table with the enumeration values for this object.
|
java.lang.String |
getName()
Returns the name of this attribute.
|
protected java.lang.String[] |
getStringTable()
Returns a table with the enumeration values represented as strings
for this object.
|
public static final Chromaticity MONOCHROME
public static final Chromaticity COLOR
protected Chromaticity(int value)
Chromaticity object.value - the enum valuepublic java.lang.Class<? extends javax.print.attribute.Attribute> getCategory()
getCategory in interface javax.print.attribute.AttributeChromaticity itself.public java.lang.String getName()
getName in interface javax.print.attribute.Attributeprotected java.lang.String[] getStringTable()
getStringTable in class javax.print.attribute.EnumSyntaxprotected javax.print.attribute.EnumSyntax[] getEnumValueTable()
getEnumValueTable in class javax.print.attribute.EnumSyntax