org.openstreetmap.josm.gui.conflict
Enum ConflictColors

java.lang.Object
  extended by java.lang.Enum<ConflictColors>
      extended by org.openstreetmap.josm.gui.conflict.ConflictColors
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ConflictColors>, Preferences.ColorKey

public enum ConflictColors
extends java.lang.Enum<ConflictColors>
implements Preferences.ColorKey


Enum Constant Summary
BGCOLOR
           
BGCOLOR_COMBINED
           
BGCOLOR_DECIDED
           
BGCOLOR_DROP
           
BGCOLOR_EMPTY_ROW
           
BGCOLOR_FROZEN
           
BGCOLOR_IN_OPPOSITE
           
BGCOLOR_KEEP
           
BGCOLOR_NO_CONFLICT
           
BGCOLOR_NOT_IN_OPPOSITE
           
BGCOLOR_PARTICIPAING_IN_COMPARISON
           
BGCOLOR_SAME_POSITION_IN_OPPOSITE
           
BGCOLOR_SELECTED
           
BGCOLOR_UNDECIDED
           
FGCOLOR
           
FGCOLOR_DROP
           
FGCOLOR_KEEP
           
FGCOLOR_PARTICIPAING_IN_COMPARISON
           
FGCOLOR_UNDECIDED
           
 
Field Summary
private static java.awt.Color backgroundColorCache
           
private  java.awt.Color defaultColor
           
private  java.lang.String name
           
 
Method Summary
 java.awt.Color get()
           
 java.lang.String getColorName()
           
static void getColors()
           
 java.awt.Color getDefaultValue()
           
 java.lang.String getSpecialName()
           
static ConflictColors valueOf(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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BGCOLOR_NO_CONFLICT

public static final ConflictColors BGCOLOR_NO_CONFLICT

BGCOLOR_DECIDED

public static final ConflictColors BGCOLOR_DECIDED

BGCOLOR_UNDECIDED

public static final ConflictColors BGCOLOR_UNDECIDED

BGCOLOR_DROP

public static final ConflictColors BGCOLOR_DROP

BGCOLOR_KEEP

public static final ConflictColors BGCOLOR_KEEP

BGCOLOR_COMBINED

public static final ConflictColors BGCOLOR_COMBINED

BGCOLOR_SELECTED

public static final ConflictColors BGCOLOR_SELECTED

FGCOLOR_UNDECIDED

public static final ConflictColors FGCOLOR_UNDECIDED

FGCOLOR_DROP

public static final ConflictColors FGCOLOR_DROP

FGCOLOR_KEEP

public static final ConflictColors FGCOLOR_KEEP

BGCOLOR_EMPTY_ROW

public static final ConflictColors BGCOLOR_EMPTY_ROW

BGCOLOR_FROZEN

public static final ConflictColors BGCOLOR_FROZEN

BGCOLOR_PARTICIPAING_IN_COMPARISON

public static final ConflictColors BGCOLOR_PARTICIPAING_IN_COMPARISON

FGCOLOR_PARTICIPAING_IN_COMPARISON

public static final ConflictColors FGCOLOR_PARTICIPAING_IN_COMPARISON

BGCOLOR

public static final ConflictColors BGCOLOR

FGCOLOR

public static final ConflictColors FGCOLOR

BGCOLOR_NOT_IN_OPPOSITE

public static final ConflictColors BGCOLOR_NOT_IN_OPPOSITE

BGCOLOR_IN_OPPOSITE

public static final ConflictColors BGCOLOR_IN_OPPOSITE

BGCOLOR_SAME_POSITION_IN_OPPOSITE

public static final ConflictColors BGCOLOR_SAME_POSITION_IN_OPPOSITE
Field Detail

name

private final java.lang.String name

defaultColor

private final java.awt.Color defaultColor

backgroundColorCache

private static java.awt.Color backgroundColorCache
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 name
java.lang.NullPointerException - if the argument is null

getColorName

public java.lang.String getColorName()
Specified by:
getColorName in interface Preferences.ColorKey

getDefaultValue

public java.awt.Color getDefaultValue()
Specified by:
getDefaultValue in interface Preferences.ColorKey

getSpecialName

public java.lang.String getSpecialName()
Specified by:
getSpecialName in interface Preferences.ColorKey

get

public java.awt.Color get()

getColors

public static void getColors()


JOSM