ColorPrintMode

Inheritance: java.lang.Object

public class ColorPrintMode

Specifies how non-colored pages are printed if the device supports color printing.

Fields

FieldDescription
GRAYSCALE_AUTONon-colored pages if detected are printed in grayscale.
NORMALAll pages are printed according to the printer’s capabilities and settings.
length

Methods

MethodDescription
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:

ParameterTypeDescription
colorPrintModeNamejava.lang.String

Returns: int

getName(int colorPrintMode)

public static String getName(int colorPrintMode)

Parameters:

ParameterTypeDescription
colorPrintModeint

Returns: java.lang.String

getValues()

public static int[] getValues()

Returns: int[]

toString(int colorPrintMode)

public static String toString(int colorPrintMode)

Parameters:

ParameterTypeDescription
colorPrintModeint

Returns: java.lang.String