Enum ConflictColors
- java.lang.Object
-
- java.lang.Enum<ConflictColors>
-
- org.openstreetmap.josm.gui.conflict.ConflictColors
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ConflictColors>
public enum ConflictColors extends java.lang.Enum<ConflictColors>
Conflict color constants.- Since:
- 4162
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BGCOLORConflict backgroundBGCOLOR_COMBINEDConflict background: combinedBGCOLOR_DECIDEDConflict background: decidedBGCOLOR_DROPConflict background: dropBGCOLOR_EMPTY_ROWConflict background: empty rowBGCOLOR_FROZENConflict background: frozenBGCOLOR_IN_OPPOSITEConflict background: in oppositeBGCOLOR_KEEPConflict background: keepBGCOLOR_MEMBER_KEEPConflict background: keep memberBGCOLOR_MEMBER_REMOVEConflict background: remove memberBGCOLOR_NO_CONFLICTConflict background: no conflictBGCOLOR_NOT_IN_OPPOSITEConflict background: not in oppositeBGCOLOR_PARTICIPATING_IN_COMPARISONConflict background: in comparisonBGCOLOR_SAME_POSITION_IN_OPPOSITEConflict background: same position in oppositeBGCOLOR_SELECTEDConflict background: selectedBGCOLOR_TAG_KEEP_ALLConflict background: keep all tagsBGCOLOR_TAG_KEEP_NONEConflict background: drop tagBGCOLOR_TAG_KEEP_ONEConflict background: keep one tagBGCOLOR_TAG_SUM_ALL_NUMConflict background: sum all numeric tagsBGCOLOR_UNDECIDEDConflict background: undecidedFGCOLORConflict foregroundFGCOLOR_DROPConflict foreground: dropFGCOLOR_KEEPConflict foreground: keepFGCOLOR_MEMBER_KEEPConflict foreground: keep memberFGCOLOR_MEMBER_REMOVEConflict foreground: remove memberFGCOLOR_PARTICIPATING_IN_COMPARISONConflict foreground: in comparisonFGCOLOR_TAG_KEEP_ALLConflict foreground: keep all tagsFGCOLOR_TAG_KEEP_NONEConflict foreground: drop tagFGCOLOR_TAG_KEEP_ONEConflict foreground: keep one tagFGCOLOR_TAG_SUM_ALL_NUMConflict foreground: sum all numeric tagsFGCOLOR_UNDECIDEDConflict foreground: undecided
-
Field Summary
Fields Modifier and Type Field Description private NamedColorPropertyproperty
-
Constructor Summary
Constructors Modifier Constructor Description privateConflictColors(java.lang.String name, java.awt.Color defaultColor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Colorget()Returns the color.static voidgetColors()Loads all colors from preferences.static ConflictColorsvalueOf(java.lang.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(java.lang.String name, java.awt.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(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
-
get
public java.awt.Color get()
Returns the color.- Returns:
- the color
-
getColors
public static void getColors()
Loads all colors from preferences.
-
-