Enum PaintColors
- java.lang.Object
-
- java.lang.Enum<PaintColors>
-
- org.openstreetmap.josm.data.osm.visitor.paint.PaintColors
-
- All Implemented Interfaces:
Serializable
,Comparable<PaintColors>
public enum PaintColors extends Enum<PaintColors>
The colors used to paint the map, especially with the wireframe rendererThis enum stores the colors to be set in the preferences
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AREA_TEXT
Default text color for areasBACKGROUND
Background of the mapCONNECTION
Connected nodesDEFAULT_WAY
Default way colorHIGHLIGHT
Highlight around a selected node/way, MapCSS rendererHIGHLIGHT_WIREFRAME
Highlight around a selected node/way, Wireframe rendererINACTIVE
Inactive objectsNODE
Normal nodesRELATION
Relation colorRELATIONSELECTED
Objects that are part of a selected relationSELECTED
Currently selected objectsTAGGED
A tagged nodeTEXT
Default text colorUNTAGGED
Untagged wayUNTAGGED_WAY
Color for untagged way
-
Field Summary
Fields Modifier and Type Field Description private NamedColorProperty
baseProperty
private CachingProperty<Color>
property
-
Constructor Summary
Constructors Modifier Constructor Description private
PaintColors(String name, Color defaultColor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Color
get()
Get the given colorstatic Color
getBackgroundColor()
Returns the background color.Color
getDefaultValue()
Gets the default value for this color.NamedColorProperty
getProperty()
Get the color propertystatic 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.
-
-
-
Enum Constant Detail
-
INACTIVE
public static final PaintColors INACTIVE
Inactive objects
-
SELECTED
public static final PaintColors SELECTED
Currently selected objects
-
RELATIONSELECTED
public static final PaintColors RELATIONSELECTED
Objects that are part of a selected relation
-
NODE
public static final PaintColors NODE
Normal nodes
-
CONNECTION
public static final PaintColors CONNECTION
Connected nodes
-
TAGGED
public static final PaintColors TAGGED
A tagged node
-
DEFAULT_WAY
public static final PaintColors DEFAULT_WAY
Default way color
-
RELATION
public static final PaintColors RELATION
Relation color
-
UNTAGGED_WAY
public static final PaintColors UNTAGGED_WAY
Color for untagged way
-
BACKGROUND
public static final PaintColors BACKGROUND
Background of the map
-
HIGHLIGHT
public static final PaintColors HIGHLIGHT
Highlight around a selected node/way, MapCSS renderer
-
HIGHLIGHT_WIREFRAME
public static final PaintColors HIGHLIGHT_WIREFRAME
Highlight around a selected node/way, Wireframe renderer
-
UNTAGGED
public static final PaintColors UNTAGGED
Untagged way
-
TEXT
public static final PaintColors TEXT
Default text color
-
AREA_TEXT
public static final PaintColors AREA_TEXT
Default text color for areas
-
-
Field Detail
-
baseProperty
private final NamedColorProperty baseProperty
-
property
private final CachingProperty<Color> property
-
-
Constructor Detail
-
PaintColors
private PaintColors(String name, Color defaultColor)
-
-
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(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getDefaultValue
public Color getDefaultValue()
Gets the default value for this color.- Returns:
- The default value
-
getBackgroundColor
public static Color getBackgroundColor()
Returns the background color.- Returns:
- the background color
-
getProperty
public NamedColorProperty getProperty()
Get the color property- Returns:
- The property that is used to access the color.
- Since:
- 10874
-
-