public enum PointStyle extends Enum<PointStyle>
Enum Constant and Description |
---|
CIRCLE |
DIAMOND |
POINT |
SQUARE |
TRIANGLE |
X |
Modifier and Type | Method and Description |
---|---|
static int |
getIndexForName(String name)
Returns the point shape index based on the given name.
|
String |
getName()
Returns the point shape name.
|
static PointStyle |
getPointStyleForName(String name)
Return the point shape that has the provided symbol.
|
String |
toString()
Returns the point shape name.
|
static PointStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PointStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, valueOf
public static final PointStyle X
public static final PointStyle CIRCLE
public static final PointStyle TRIANGLE
public static final PointStyle SQUARE
public static final PointStyle DIAMOND
public static final PointStyle POINT
public static PointStyle[] values()
for (PointStyle c : PointStyle.values()) System.out.println(c);
public static PointStyle valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
public String toString()
toString
in class Enum<PointStyle>
public static PointStyle getPointStyleForName(String name)
name
- the point style namepublic static int getIndexForName(String name)