public enum PsdColorMode extends Enum<PsdColorMode> implements IEnumValue
Represents the psd file format color mode.
Enum Constant and Description |
---|
Bitmap
The bitmap color mode.
|
Cmyk
The CMYK color mode.
|
Duotone
The duotone color mode.
|
Grayscale
The grayscale mode.
|
Indexed
The indexed color mode.
|
Lab
The LAB color mode.
|
Multichannel
The multichannel color mode.
|
Rgb
The RGB color mode.
|
Modifier and Type | Method and Description |
---|---|
Object[] |
getAllValues()
Returns the array of all values defined in the class.
|
static PsdColorMode |
getByRawValue(int rawValue) |
IEnumValue |
getEnumValueByName(String name)
Returns the enumeration value by its name.
|
IEnumValue |
getEnumValueByRawValue(int rawValue)
Returns the enumeration value by the raw value associated with it.
|
static IEnumValue |
getFirst() |
int |
getRawValue()
Returns the raw value of this enumeration value.
|
RawIntegerType |
getRawValueType()
Returns the underlying type of the raw value of this enumeration value.
|
static PsdColorMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PsdColorMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
name
public static final PsdColorMode Bitmap
The bitmap color mode.
public static final PsdColorMode Grayscale
The grayscale mode.
public static final PsdColorMode Indexed
The indexed color mode.
public static final PsdColorMode Rgb
The RGB color mode.
public static final PsdColorMode Cmyk
The CMYK color mode.
public static final PsdColorMode Multichannel
The multichannel color mode.
public static final PsdColorMode Duotone
The duotone color mode.
public static final PsdColorMode Lab
The LAB color mode.
public static PsdColorMode[] values()
for (PsdColorMode c : PsdColorMode.values()) System.out.println(c);
public static PsdColorMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static PsdColorMode getByRawValue(int rawValue)
public static IEnumValue getFirst()
public Object[] getAllValues()
IEnumValue
Returns the array of all values defined in the class.
getAllValues
in interface IEnumValue
public IEnumValue getEnumValueByRawValue(int rawValue)
IEnumValue
Returns the enumeration value by the raw value associated with it.
getEnumValueByRawValue
in interface IEnumValue
rawValue
- The raw value.public IEnumValue getEnumValueByName(String name)
IEnumValue
Returns the enumeration value by its name.
getEnumValueByName
in interface IEnumValue
name
- The name of the enumeration value.public RawIntegerType getRawValueType()
IEnumValue
Returns the underlying type of the raw value of this enumeration value.
getRawValueType
in interface IEnumValue
public int getRawValue()
IEnumValue
Returns the raw value of this enumeration value.
getRawValue
in interface IEnumValue