public enum PaintColors extends java.lang.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 java.awt.Color |
backgroundColorCache |
private java.awt.Color |
defaultColor |
private java.lang.String |
name |
private static MapPaintStyles.MapPaintSylesUpdateListener |
styleOverrideListener |
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
get() |
static java.awt.Color |
getBackgroundColor() |
java.lang.String |
getColorName() |
static void |
getColors() |
java.awt.Color |
getDefaultValue() |
java.lang.String |
getSpecialName() |
static PaintColors |
valueOf(java.lang.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 java.lang.String name
private final java.awt.Color defaultColor
private static java.awt.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getColorName()
getColorName
in interface Preferences.ColorKey
public java.awt.Color getDefaultValue()
getDefaultValue
in interface Preferences.ColorKey
public java.lang.String getSpecialName()
getSpecialName
in interface Preferences.ColorKey
public java.awt.Color get()
public static void getColors()
public static java.awt.Color getBackgroundColor()