Package xyz.cofe.term.common
Enum Color
- java.lang.Object
-
- java.lang.Enum<Color>
-
- xyz.cofe.term.common.Color
-
- All Implemented Interfaces:
Serializable,Comparable<Color>
public enum Color extends Enum<Color>
Цвет
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BlackЧерный - rgb(0,0,0)BlackBrightСерый - rgb(85,85,85) | rgb(128,128,128)BlueСиний - rgb(0,0,170) | rgb(0,0,128)BlueBrightСиний-светлый - rgb(85,85,255) | rgb(0,0,255)CyanГолубой(циан) - rgb(0,170,170) | rgb(0,128,128)CyanBrightГолубой(циан)-светлый - rgb(85,255,255) | rgb(0,255,255)GreenЗеленый - rgb(0,170,0) | rgb(0,128,0)GreenBrightЗеленый-светлый - rgb(85,255,85) | rgb(0,255,0)MagentaФиолетовый - rgb(170,0,170) | rgb(128,0,128)MagentaBrightФиолетовый-светлый - rgb(255,85,255) | rgb(255,0,255)RedКрасный - rgb(170,0,0) | rgb(128,0,0)RedBrightКрасный-светлый - rgb(255,85,85) | rgb(255,0,0)WhiteСветло серый - rgb(170,170,170) | rgb(0,128,128)WhiteBrightБелый - rgb(255,255,255)YellowЖелтый - rgb(170,85,0) | rgb(128,128,0)YellowBrightЖелтый-светлый - rgb(255,255,85) | rgb(255,255,0)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ColorvalueOf(String name)Returns the enum constant of this type with the specified name.static Color[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Black
public static final Color Black
Черный - rgb(0,0,0)
-
BlackBright
public static final Color BlackBright
Серый - rgb(85,85,85) | rgb(128,128,128)
-
Red
public static final Color Red
Красный - rgb(170,0,0) | rgb(128,0,0)
-
RedBright
public static final Color RedBright
Красный-светлый - rgb(255,85,85) | rgb(255,0,0)
-
Green
public static final Color Green
Зеленый - rgb(0,170,0) | rgb(0,128,0)
-
GreenBright
public static final Color GreenBright
Зеленый-светлый - rgb(85,255,85) | rgb(0,255,0)
-
Yellow
public static final Color Yellow
Желтый - rgb(170,85,0) | rgb(128,128,0)
-
YellowBright
public static final Color YellowBright
Желтый-светлый - rgb(255,255,85) | rgb(255,255,0)
-
Blue
public static final Color Blue
Синий - rgb(0,0,170) | rgb(0,0,128)
-
BlueBright
public static final Color BlueBright
Синий-светлый - rgb(85,85,255) | rgb(0,0,255)
-
Magenta
public static final Color Magenta
Фиолетовый - rgb(170,0,170) | rgb(128,0,128)
-
MagentaBright
public static final Color MagentaBright
Фиолетовый-светлый - rgb(255,85,255) | rgb(255,0,255)
-
Cyan
public static final Color Cyan
Голубой(циан) - rgb(0,170,170) | rgb(0,128,128)
-
CyanBright
public static final Color CyanBright
Голубой(циан)-светлый - rgb(85,255,255) | rgb(0,255,255)
-
White
public static final Color White
Светло серый - rgb(170,170,170) | rgb(0,128,128)
-
WhiteBright
public static final Color WhiteBright
Белый - rgb(255,255,255)
-
-
Method Detail
-
values
public static Color[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Color c : Color.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Color valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-