public enum ColorBlindness extends java.lang.Enum<ColorBlindness>
Enum Constant and Description |
---|
achromatopsia
Total color blindness is defined as the inability to see color.
|
deuteranopia
Lacking the medium-wavelength sensitive retinal cones,
those with this condition are unable to distinguish
between colors in the green-yellow-red section of the spectrum.
|
protanopia
Lacking the long-wavelength sensitive retinal cones,
those with this condition are unable to distinguish
between colors in the green-yellow-red section of the spectrum.
|
tritanopia
Lacking the short-wavelength sensitive retinal cones,
those affected see short-wavelength colors (blue, indigo and a spectral violet)
greenish and drastically dimmed, some of these colors even as black.
|
Modifier and Type | Field and Description |
---|---|
java.lang.String |
key |
Modifier and Type | Method and Description |
---|---|
static ColorBlindness |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ColorBlindness[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColorBlindness protanopia
public static final ColorBlindness deuteranopia
public static final ColorBlindness tritanopia
public static final ColorBlindness achromatopsia
public static ColorBlindness[] values()
for (ColorBlindness c : ColorBlindness.values()) System.out.println(c);
public static ColorBlindness 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 namejava.lang.NullPointerException
- if the argument is null