ColorPrintMode
Contents
[
Hide
]Inheritance: java.lang.Object
public class ColorPrintMode
Specifies how non-colored pages are printed if the device supports color printing.
Fields
Field | Description |
---|---|
GRAYSCALE_AUTO | Non-colored pages if detected are printed in grayscale. |
NORMAL | All pages are printed according to the printer’s capabilities and settings. |
length |
Methods
Method | Description |
---|---|
fromName(String colorPrintModeName) | |
getName(int colorPrintMode) | |
getValues() | |
toString(int colorPrintMode) |
GRAYSCALE_AUTO
public static int GRAYSCALE_AUTO
Non-colored pages if detected are printed in grayscale.
Remarks:
PageSettings#getColor().getColor() / PageSettings#setColor(boolean).setColor(boolean) is automatically set false for detected non-colored pages. If the printer does not support color printing, this setting is ignored.
NORMAL
public static int NORMAL
All pages are printed according to the printer’s capabilities and settings.
length
public static int length
fromName(String colorPrintModeName)
public static int fromName(String colorPrintModeName)
Parameters:
Parameter | Type | Description |
---|---|---|
colorPrintModeName | java.lang.String |
Returns: int
getName(int colorPrintMode)
public static String getName(int colorPrintMode)
Parameters:
Parameter | Type | Description |
---|---|---|
colorPrintMode | int |
Returns: java.lang.String
getValues()
public static int[] getValues()
Returns: int[]
toString(int colorPrintMode)
public static String toString(int colorPrintMode)
Parameters:
Parameter | Type | Description |
---|---|---|
colorPrintMode | int |
Returns: java.lang.String