Package org.exbin.bined.color
Enum CodeAreaBasicColors
- java.lang.Object
-
- java.lang.Enum<CodeAreaBasicColors>
-
- org.exbin.bined.color.CodeAreaBasicColors
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CodeAreaBasicColors>
,CodeAreaColorType
@ParametersAreNonnullByDefault public enum CodeAreaBasicColors extends java.lang.Enum<CodeAreaBasicColors> implements CodeAreaColorType
Enumeration of color types for main group.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALTERNATE_BACKGROUND
ALTERNATE_COLOR
CURSOR_COLOR
CURSOR_NEGATIVE_COLOR
SELECTION_BACKGROUND
SELECTION_COLOR
SELECTION_MIRROR_BACKGROUND
SELECTION_MIRROR_COLOR
TEXT_BACKGROUND
TEXT_COLOR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<CodeAreaColorGroup>
getGroup()
Returns group which this color belongs to or empty.java.lang.String
getId()
Returns unique string identifier.static CodeAreaBasicColors
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CodeAreaBasicColors[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TEXT_COLOR
public static final CodeAreaBasicColors TEXT_COLOR
-
TEXT_BACKGROUND
public static final CodeAreaBasicColors TEXT_BACKGROUND
-
SELECTION_COLOR
public static final CodeAreaBasicColors SELECTION_COLOR
-
SELECTION_BACKGROUND
public static final CodeAreaBasicColors SELECTION_BACKGROUND
-
SELECTION_MIRROR_COLOR
public static final CodeAreaBasicColors SELECTION_MIRROR_COLOR
-
SELECTION_MIRROR_BACKGROUND
public static final CodeAreaBasicColors SELECTION_MIRROR_BACKGROUND
-
ALTERNATE_COLOR
public static final CodeAreaBasicColors ALTERNATE_COLOR
-
ALTERNATE_BACKGROUND
public static final CodeAreaBasicColors ALTERNATE_BACKGROUND
-
CURSOR_COLOR
public static final CodeAreaBasicColors CURSOR_COLOR
-
CURSOR_NEGATIVE_COLOR
public static final CodeAreaBasicColors CURSOR_NEGATIVE_COLOR
-
-
Method Detail
-
values
public static CodeAreaBasicColors[] 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 (CodeAreaBasicColors c : CodeAreaBasicColors.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CodeAreaBasicColors valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getId
@Nonnull public java.lang.String getId()
Description copied from interface:CodeAreaColorType
Returns unique string identifier. Custom implementations should start with full package name to avoid collisions.- Specified by:
getId
in interfaceCodeAreaColorType
- Returns:
- unique identification ID key
-
getGroup
@Nonnull public java.util.Optional<CodeAreaColorGroup> getGroup()
Description copied from interface:CodeAreaColorType
Returns group which this color belongs to or empty.- Specified by:
getGroup
in interfaceCodeAreaColorType
- Returns:
- group
-
-