Package org.openstreetmap.josm.data.gpx
Enum GpxConstants.ColorFormat
- java.lang.Object
-
- java.lang.Enum<GpxConstants.ColorFormat>
-
- org.openstreetmap.josm.data.gpx.GpxConstants.ColorFormat
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<GpxConstants.ColorFormat>
- Enclosing interface:
- GpxConstants
public static enum GpxConstants.ColorFormat extends java.lang.Enum<GpxConstants.ColorFormat>
Enum with color formats that can be written by JOSM
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ColorFormat()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GpxConstants.ColorFormat
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static GpxConstants.ColorFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GPXD
public static final GpxConstants.ColorFormat GPXD
Drawing extension format
-
GPXX
public static final GpxConstants.ColorFormat GPXX
Garmin track extension format
-
-
Constructor Detail
-
ColorFormat
private ColorFormat()
-
-
Method Detail
-
values
public static GpxConstants.ColorFormat[] 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 (GpxConstants.ColorFormat c : GpxConstants.ColorFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GpxConstants.ColorFormat 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 namejava.lang.NullPointerException
- if the argument is null
-
-