public static enum Line.ColorPolicy extends java.lang.Enum<Line.ColorPolicy>
Enum Constant and Description |
---|
DEFAULT
All edges drawn as a single dark-gray color
|
DISTANCE_GRADIENT
Edges drawn as a linear interpolation of their weights
relative to other edges in the graph.
|
HIGHLIGHT_TRAVEL
Edges that trucks are currently traveling drawn red, others drawn dark-gray
|
Modifier and Type | Method and Description |
---|---|
static Line.ColorPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Line.ColorPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Line.ColorPolicy DEFAULT
public static final Line.ColorPolicy HIGHLIGHT_TRAVEL
public static final Line.ColorPolicy DISTANCE_GRADIENT
public static Line.ColorPolicy[] values()
for (Line.ColorPolicy c : Line.ColorPolicy.values()) System.out.println(c);
public static Line.ColorPolicy 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 null