Enum LineElement.LineType
- java.lang.Object
-
- java.lang.Enum<LineElement.LineType>
-
- org.openstreetmap.josm.gui.mappaint.styleelement.LineElement.LineType
-
- All Implemented Interfaces:
Serializable
,Comparable<LineElement.LineType>
- Enclosing class:
- LineElement
public static enum LineElement.LineType extends Enum<LineElement.LineType>
The type of this line
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CASING
A casing (line behind normal line, extended to the right/left)LEFT_CASING
A casing, but only to the leftNORMAL
A normal lineRIGHT_CASING
A casing, but only to the right
-
Field Summary
Fields Modifier and Type Field Description float
defaultMajorZIndex
The major z index to use during paintingString
prefix
The MapCSS line prefix used
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LineElement.LineType
valueOf(String name)
Returns the enum constant of this type with the specified name.static LineElement.LineType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORMAL
public static final LineElement.LineType NORMAL
A normal line
-
CASING
public static final LineElement.LineType CASING
A casing (line behind normal line, extended to the right/left)
-
LEFT_CASING
public static final LineElement.LineType LEFT_CASING
A casing, but only to the left
-
RIGHT_CASING
public static final LineElement.LineType RIGHT_CASING
A casing, but only to the right
-
-
Field Detail
-
defaultMajorZIndex
public final float defaultMajorZIndex
The major z index to use during painting
-
-
Method Detail
-
values
public static LineElement.LineType[] 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 (LineElement.LineType c : LineElement.LineType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LineElement.LineType 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
-
-