Enum ConflictColors
- java.lang.Object
-
- java.lang.Enum<ConflictColors>
-
- org.openstreetmap.josm.gui.conflict.ConflictColors
-
- All Implemented Interfaces:
Serializable
,Comparable<ConflictColors>
public enum ConflictColors extends Enum<ConflictColors>
Conflict color constants.- Since:
- 4162
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BGCOLOR
Conflict backgroundBGCOLOR_COMBINED
Conflict background: combinedBGCOLOR_DECIDED
Conflict background: decidedBGCOLOR_DROP
Conflict background: dropBGCOLOR_EMPTY_ROW
Conflict background: empty rowBGCOLOR_FROZEN
Conflict background: frozenBGCOLOR_IN_OPPOSITE
Conflict background: in oppositeBGCOLOR_KEEP
Conflict background: keepBGCOLOR_MEMBER_KEEP
Conflict background: keep memberBGCOLOR_MEMBER_REMOVE
Conflict background: remove memberBGCOLOR_NO_CONFLICT
Conflict background: no conflictBGCOLOR_NOT_IN_OPPOSITE
Conflict background: not in oppositeBGCOLOR_PARTICIPATING_IN_COMPARISON
Conflict background: in comparisonBGCOLOR_SAME_POSITION_IN_OPPOSITE
Conflict background: same position in oppositeBGCOLOR_SELECTED
Conflict background: selectedBGCOLOR_TAG_KEEP_ALL
Conflict background: keep all tagsBGCOLOR_TAG_KEEP_NONE
Conflict background: drop tagBGCOLOR_TAG_KEEP_ONE
Conflict background: keep one tagBGCOLOR_TAG_SUM_ALL_NUM
Conflict background: sum all numeric tagsBGCOLOR_UNDECIDED
Conflict background: undecidedFGCOLOR
Conflict foregroundFGCOLOR_DROP
Conflict foreground: dropFGCOLOR_KEEP
Conflict foreground: keepFGCOLOR_MEMBER_KEEP
Conflict foreground: keep memberFGCOLOR_MEMBER_REMOVE
Conflict foreground: remove memberFGCOLOR_PARTICIPATING_IN_COMPARISON
Conflict foreground: in comparisonFGCOLOR_TAG_KEEP_ALL
Conflict foreground: keep all tagsFGCOLOR_TAG_KEEP_NONE
Conflict foreground: drop tagFGCOLOR_TAG_KEEP_ONE
Conflict foreground: keep one tagFGCOLOR_TAG_SUM_ALL_NUM
Conflict foreground: sum all numeric tagsFGCOLOR_UNDECIDED
Conflict foreground: undecided
-
Field Summary
Fields Modifier and Type Field Description private NamedColorProperty
property
-
Constructor Summary
Constructors Modifier Constructor Description private
ConflictColors(String name, Color defaultColor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Color
get()
Returns the color.static void
getColors()
Loads all colors from preferences.static ConflictColors
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConflictColors[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BGCOLOR_NO_CONFLICT
public static final ConflictColors BGCOLOR_NO_CONFLICT
Conflict background: no conflict
-
BGCOLOR_DECIDED
public static final ConflictColors BGCOLOR_DECIDED
Conflict background: decided
-
BGCOLOR_UNDECIDED
public static final ConflictColors BGCOLOR_UNDECIDED
Conflict background: undecided
-
BGCOLOR_DROP
public static final ConflictColors BGCOLOR_DROP
Conflict background: drop
-
BGCOLOR_KEEP
public static final ConflictColors BGCOLOR_KEEP
Conflict background: keep
-
BGCOLOR_COMBINED
public static final ConflictColors BGCOLOR_COMBINED
Conflict background: combined
-
BGCOLOR_SELECTED
public static final ConflictColors BGCOLOR_SELECTED
Conflict background: selected
-
FGCOLOR_UNDECIDED
public static final ConflictColors FGCOLOR_UNDECIDED
Conflict foreground: undecided
-
FGCOLOR_DROP
public static final ConflictColors FGCOLOR_DROP
Conflict foreground: drop
-
FGCOLOR_KEEP
public static final ConflictColors FGCOLOR_KEEP
Conflict foreground: keep
-
BGCOLOR_EMPTY_ROW
public static final ConflictColors BGCOLOR_EMPTY_ROW
Conflict background: empty row
-
BGCOLOR_FROZEN
public static final ConflictColors BGCOLOR_FROZEN
Conflict background: frozen
-
BGCOLOR_PARTICIPATING_IN_COMPARISON
public static final ConflictColors BGCOLOR_PARTICIPATING_IN_COMPARISON
Conflict background: in comparison
-
FGCOLOR_PARTICIPATING_IN_COMPARISON
public static final ConflictColors FGCOLOR_PARTICIPATING_IN_COMPARISON
Conflict foreground: in comparison
-
BGCOLOR
public static final ConflictColors BGCOLOR
Conflict background
-
FGCOLOR
public static final ConflictColors FGCOLOR
Conflict foreground
-
BGCOLOR_NOT_IN_OPPOSITE
public static final ConflictColors BGCOLOR_NOT_IN_OPPOSITE
Conflict background: not in opposite
-
BGCOLOR_IN_OPPOSITE
public static final ConflictColors BGCOLOR_IN_OPPOSITE
Conflict background: in opposite
-
BGCOLOR_SAME_POSITION_IN_OPPOSITE
public static final ConflictColors BGCOLOR_SAME_POSITION_IN_OPPOSITE
Conflict background: same position in opposite
-
BGCOLOR_TAG_KEEP_ONE
public static final ConflictColors BGCOLOR_TAG_KEEP_ONE
Conflict background: keep one tag
-
FGCOLOR_TAG_KEEP_ONE
public static final ConflictColors FGCOLOR_TAG_KEEP_ONE
Conflict foreground: keep one tag
-
BGCOLOR_TAG_KEEP_NONE
public static final ConflictColors BGCOLOR_TAG_KEEP_NONE
Conflict background: drop tag
-
FGCOLOR_TAG_KEEP_NONE
public static final ConflictColors FGCOLOR_TAG_KEEP_NONE
Conflict foreground: drop tag
-
BGCOLOR_TAG_KEEP_ALL
public static final ConflictColors BGCOLOR_TAG_KEEP_ALL
Conflict background: keep all tags
-
FGCOLOR_TAG_KEEP_ALL
public static final ConflictColors FGCOLOR_TAG_KEEP_ALL
Conflict foreground: keep all tags
-
BGCOLOR_TAG_SUM_ALL_NUM
public static final ConflictColors BGCOLOR_TAG_SUM_ALL_NUM
Conflict background: sum all numeric tags
-
FGCOLOR_TAG_SUM_ALL_NUM
public static final ConflictColors FGCOLOR_TAG_SUM_ALL_NUM
Conflict foreground: sum all numeric tags
-
BGCOLOR_MEMBER_KEEP
public static final ConflictColors BGCOLOR_MEMBER_KEEP
Conflict background: keep member
-
FGCOLOR_MEMBER_KEEP
public static final ConflictColors FGCOLOR_MEMBER_KEEP
Conflict foreground: keep member
-
BGCOLOR_MEMBER_REMOVE
public static final ConflictColors BGCOLOR_MEMBER_REMOVE
Conflict background: remove member
-
FGCOLOR_MEMBER_REMOVE
public static final ConflictColors FGCOLOR_MEMBER_REMOVE
Conflict foreground: remove member
-
-
Field Detail
-
property
private final NamedColorProperty property
-
-
Constructor Detail
-
ConflictColors
private ConflictColors(String name, Color defaultColor)
-
-
Method Detail
-
values
public static ConflictColors[] 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 (ConflictColors c : ConflictColors.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConflictColors 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
-
getColors
public static void getColors()
Loads all colors from preferences.
-
-