public enum MarkerStyle extends java.lang.Enum<MarkerStyle>
Enum Constant and Description |
---|
CIRCLE |
DASH |
DIAMOND |
DOT |
NONE |
PICTURE |
PLUS |
SQUARE |
STAR |
TRIANGLE |
X |
Modifier and Type | Method and Description |
---|---|
static MarkerStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
(返回具有指定名称的此类型的枚举常量。)
|
static MarkerStyle[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
(按照声明的顺序返回包含此枚举类型常量的数组。)
|
public static final MarkerStyle CIRCLE
public static final MarkerStyle DASH
public static final MarkerStyle DIAMOND
public static final MarkerStyle DOT
public static final MarkerStyle NONE
public static final MarkerStyle PICTURE
public static final MarkerStyle PLUS
public static final MarkerStyle SQUARE
public static final MarkerStyle STAR
public static final MarkerStyle TRIANGLE
public static final MarkerStyle X
public static MarkerStyle[] values()
for (MarkerStyle c : MarkerStyle.values()) System.out.println(c);(按照声明的顺序返回包含此枚举类型常量的数组。此方法可用于迭代常量,如下所示: for (MarkerStyle c : MarkerStyle.values()) System.out.println(c);)
public static MarkerStyle valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
(name - 要返回的枚举常量的名称。)
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified name
(java.lang.IllegalArgumentException - 如果此枚举类型没有具有指定名称的常量)
java.lang.NullPointerException
- if the argument is null
(java.lang.NullPointerException - 如果参数为空)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.