org.openstreetmap.josm.data.osm.visitor.paint
Enum PaintColors

java.lang.Object
  extended by java.lang.Enum<PaintColors>
      extended by 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


Enum Constant Summary
AREA_TEXT
           
BACKGROUND
           
CONNECTION
           
DEFAULT_WAY
           
HIGHLIGHT
           
HIGHLIGHT_WIREFRAME
           
INACTIVE
           
NODE
           
RELATION
           
RELATIONSELECTED
           
SELECTED
           
TAGGED
           
TEXT
           
UNTAGGED
           
UNTAGGED_WAY
           
 
Field Summary
private static java.awt.Color backgroundColorCache
           
private  java.awt.Color defaultColor
           
private  java.lang.String name
           
private static MapPaintStyles.MapPaintSylesUpdateListener styleOverrideListener
           
 
Method Summary
 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.
 
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

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
Field Detail

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
Method Detail

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