public enum PaintColors extends Enum<PaintColors> implements Preferences.ColorKey
Enum Constant and Description |
---|
AREA_TEXT |
BACKGROUND |
CONNECTION |
DEFAULT_WAY |
HIGHLIGHT |
HIGHLIGHT_WIREFRAME |
INACTIVE |
NODE |
RELATION |
RELATIONSELECTED |
SELECTED |
TAGGED |
TEXT |
UNTAGGED |
UNTAGGED_WAY |
Modifier and Type | Field and Description |
---|---|
private static Color |
backgroundColorCache |
private Color |
defaultColor |
private String |
name |
private static MapPaintStyles.MapPaintSylesUpdateListener |
styleOverrideListener |
Modifier and Type | Method and Description |
---|---|
Color |
get() |
static Color |
getBackgroundColor() |
String |
getColorName() |
static void |
getColors() |
Color |
getDefaultValue() |
String |
getSpecialName() |
static PaintColors |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PaintColors[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PaintColors INACTIVE
public static final PaintColors SELECTED
public static final PaintColors RELATIONSELECTED
public static final PaintColors NODE
public static final PaintColors CONNECTION
public static final PaintColors TAGGED
public static final PaintColors DEFAULT_WAY
public static final PaintColors RELATION
public static final PaintColors UNTAGGED_WAY
public static final PaintColors BACKGROUND
public static final PaintColors HIGHLIGHT
public static final PaintColors HIGHLIGHT_WIREFRAME
public static final PaintColors UNTAGGED
public static final PaintColors TEXT
public static final PaintColors AREA_TEXT
private final Color defaultColor
private static Color backgroundColorCache
private static final MapPaintStyles.MapPaintSylesUpdateListener styleOverrideListener
public static PaintColors[] values()
for (PaintColors c : PaintColors.values()) System.out.println(c);
public static PaintColors valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getColorName()
getColorName
in interface Preferences.ColorKey
public Color getDefaultValue()
getDefaultValue
in interface Preferences.ColorKey
public String getSpecialName()
getSpecialName
in interface Preferences.ColorKey
public static void getColors()
public static Color getBackgroundColor()