Enum GpxDrawHelper.ColorMode
- java.lang.Object
-
- java.lang.Enum<GpxDrawHelper.ColorMode>
-
- org.openstreetmap.josm.gui.layer.gpx.GpxDrawHelper.ColorMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<GpxDrawHelper.ColorMode>
- Enclosing class:
- GpxDrawHelper
public static enum GpxDrawHelper.ColorMode extends java.lang.Enum<GpxDrawHelper.ColorMode>
Different color modes
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DIRECTION
Color by traveling directionFIX
Color by GPS fixHDOP
Color by accuracyHEATMAP
Color using a heatmap instead of normal linesNONE
No special colorsQUALITY
Color by quality (RTKLib)REF
Color by differential IDTIME
Color by timeVELOCITY
Color by velocity
-
Constructor Summary
Constructors Modifier Constructor Description private
ColorMode()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static GpxDrawHelper.ColorMode
fromIndex(int index)
(package private) int
toIndex()
static GpxDrawHelper.ColorMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static GpxDrawHelper.ColorMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final GpxDrawHelper.ColorMode NONE
No special colors
-
VELOCITY
public static final GpxDrawHelper.ColorMode VELOCITY
Color by velocity
-
HDOP
public static final GpxDrawHelper.ColorMode HDOP
Color by accuracy
-
DIRECTION
public static final GpxDrawHelper.ColorMode DIRECTION
Color by traveling direction
-
TIME
public static final GpxDrawHelper.ColorMode TIME
Color by time
-
HEATMAP
public static final GpxDrawHelper.ColorMode HEATMAP
Color using a heatmap instead of normal lines
-
QUALITY
public static final GpxDrawHelper.ColorMode QUALITY
Color by quality (RTKLib)
-
FIX
public static final GpxDrawHelper.ColorMode FIX
Color by GPS fix
-
REF
public static final GpxDrawHelper.ColorMode REF
Color by differential ID
-
-
Constructor Detail
-
ColorMode
private ColorMode()
-
-
Method Detail
-
values
public static GpxDrawHelper.ColorMode[] 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 (GpxDrawHelper.ColorMode c : GpxDrawHelper.ColorMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GpxDrawHelper.ColorMode 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
-
fromIndex
static GpxDrawHelper.ColorMode fromIndex(int index)
-
toIndex
int toIndex()
-
-