Package org.ka2ddo.yaac.osm
Enum Class OSMColour
- All Implemented Interfaces:
Serializable
,Comparable<OSMColour>
,Constable
This specifies color attribute values that can be found in OSM tags, to handle types of amenities
where the type is the same but the map rendering should be of a different color to show some significance
of the instance. For example, a Node with the seamark:type tag value of "buoy_lateral" would
probably have a seamark:buoy_lateral:colour tag indicating which side of a channel the buoy was on,
which would be significant on a marine chart. However, this is not restricted to marine map features.
Any new values for any of these attributes must be added at the end of the list to maintain enum ordinal stability and therefore backwards compatibility with maps imported with previous versions of this enumeration.
- Author:
- Andrew Pavlin, KA2DDO
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic OSMColour
Get the OSMColour object corresponding to thisstatic OSMColour
Returns the enum constant of this class with the specified name.static OSMColour[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
unknown
-
white
-
red
-
green
-
yellow
-
black
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
value
Get the OSMColour object corresponding to this- Parameters:
name
- String name of colour- Returns:
- OSMColour object matching the name, or null if it is an unsupported colour
-