org.openstreetmap.josm.data.osm.visitor.paint
Enum PaintColors
java.lang.Object
java.lang.Enum<PaintColors>
org.openstreetmap.josm.data.osm.visitor.paint.PaintColors
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<PaintColors>, Preferences.ColorKey
public enum PaintColors
- extends java.lang.Enum<PaintColors>
- implements Preferences.ColorKey
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 |
INACTIVE
public static final PaintColors INACTIVE
SELECTED
public static final PaintColors SELECTED
RELATIONSELECTED
public static final PaintColors RELATIONSELECTED
NODE
public static final PaintColors NODE
CONNECTION
public static final PaintColors CONNECTION
TAGGED
public static final PaintColors TAGGED
DEFAULT_WAY
public static final PaintColors DEFAULT_WAY
RELATION
public static final PaintColors RELATION
UNTAGGED_WAY
public static final PaintColors UNTAGGED_WAY
BACKGROUND
public static final PaintColors BACKGROUND
HIGHLIGHT
public static final PaintColors HIGHLIGHT
HIGHLIGHT_WIREFRAME
public static final PaintColors HIGHLIGHT_WIREFRAME
UNTAGGED
public static final PaintColors UNTAGGED
TEXT
public static final PaintColors TEXT
AREA_TEXT
public static final PaintColors AREA_TEXT
name
private final java.lang.String name
defaultColor
private final java.awt.Color defaultColor
backgroundColorCache
private static java.awt.Color backgroundColorCache
styleOverrideListener
private static final MapPaintStyles.MapPaintSylesUpdateListener styleOverrideListener
values
public static PaintColors[] 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 (PaintColors c : PaintColors.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static PaintColors 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()
getBackgroundColor
public static java.awt.Color getBackgroundColor()
JOSM