public enum ColorModel extends java.lang.Enum<ColorModel>
Enum Constant and Description |
---|
BLACK |
CMY |
CMY_K
Represents CMY+K.
|
CMYK |
COLOR |
COLORMODE_COLOR
Used in samsung printer ppds.
|
COLORMODE_MONOCHROME
Used in samsung printer ppds.
|
GRAY |
GRAYSCALE |
HP_COLOR_BLACK
Used in HP color printer ppds.
|
HP_COLOR_COLOR
Used in HP color printer ppds.
|
KCMY |
PRINTOUTMODE_NORMAL
Used in foomatic ppds.
|
PRINTOUTMODE_NORMAL_GRAY
Used in foomatic ppds.
|
PROCESSCOLORMODEL_CMYK
Used in canon printer ppds.
|
PROCESSCOLORMODEL_GREYSCALE
Used in canon printer ppds.
|
PROCESSCOLORMODEL_RGB
Used in canon printer ppds.
|
RGB |
RGB16 |
RGBA |
UNKNOWN_COLOR_MODEL |
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static ColorModel |
valueOf(int value) |
static ColorModel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
返回具有指定名称的此类型的枚举常量。 |
static ColorModel[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
以声明顺序返回包含此枚举类型的常量的数组。 |
public static final ColorModel UNKNOWN_COLOR_MODEL
public static final ColorModel GRAY
public static final ColorModel COLOR
public static final ColorModel CMYK
public static final ColorModel CMY
public static final ColorModel KCMY
public static final ColorModel CMY_K
public static final ColorModel BLACK
public static final ColorModel GRAYSCALE
public static final ColorModel RGB
public static final ColorModel RGB16
public static final ColorModel RGBA
public static final ColorModel COLORMODE_COLOR
public static final ColorModel COLORMODE_MONOCHROME
public static final ColorModel HP_COLOR_COLOR
public static final ColorModel HP_COLOR_BLACK
public static final ColorModel PRINTOUTMODE_NORMAL
public static final ColorModel PRINTOUTMODE_NORMAL_GRAY
public static final ColorModel PROCESSCOLORMODEL_CMYK
public static final ColorModel PROCESSCOLORMODEL_GREYSCALE
public static final ColorModel PROCESSCOLORMODEL_RGB
public static ColorModel[] values()
for (ColorModel c : ColorModel.values()) System.out.println(c);
public static ColorModel valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
-要返回的枚举常量的名称。
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified name
java.lang.NullPointerException
- if the argument is null
public static ColorModel valueOf(int value)
public int getValue()