public enum PaintColors extends java.lang.Enum<PaintColors>
This enum stores the colors to be set in the preferences
Enum Constant and Description |
---|
AREA_TEXT
Default text color for areas
|
BACKGROUND
Background of the map
|
CONNECTION
Connected nodes
|
DEFAULT_WAY
Default way color
|
HIGHLIGHT
Highlight around a selected node/way, MapCSS renderer
|
HIGHLIGHT_WIREFRAME
Highlight around a selected node/way, Wireframe renderer
|
INACTIVE
Inactive objects
|
NODE
Normal nodes
|
RELATION
Relation color
|
RELATIONSELECTED
Objects that are part of a selected relation
|
SELECTED
Currently selected objects
|
TAGGED
A tagged node
|
TEXT
Default text color
|
UNTAGGED
Untagged way
|
UNTAGGED_WAY
Color for untagged way
|
Modifier and Type | Field and Description |
---|---|
private NamedColorProperty |
baseProperty |
private CachingProperty<java.awt.Color> |
property |
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
get()
Get the given color
|
static java.awt.Color |
getBackgroundColor()
Returns the background color.
|
java.awt.Color |
getDefaultValue()
Gets the default value for this color.
|
NamedColorProperty |
getProperty()
Get the color property
|
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 NamedColorProperty baseProperty
private final CachingProperty<java.awt.Color> property
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.awt.Color getDefaultValue()
public java.awt.Color get()
public static java.awt.Color getBackgroundColor()
public NamedColorProperty getProperty()