com.vaadin.flow.component.charts.model.
Enum MarkerSymbolEnum
- java.lang.Object
-
- java.lang.Enum<MarkerSymbolEnum>
-
- com.vaadin.flow.component.charts.model.MarkerSymbolEnum
-
All Implemented Interfaces:
ChartEnum
,MarkerSymbol
,Serializable
,Comparable<MarkerSymbolEnum>
public enum MarkerSymbolEnum extends Enum<MarkerSymbolEnum> implements MarkerSymbol, ChartEnum
A predefined shape or symbol for the marker. When null, the symbol is pulled from options.symbols. Other possible values are "circle", "square", "diamond", "triangle" and "triangle-down". Additionally, the URL to a graphic can be given on this form: URL.setUrl("url(graphic.png)").
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CIRCLE
DIAMOND
SQUARE
TRIANGLE
TRIANGLE_DOWN
-
Method Summary
All Methods Modifier and Type Method Description String
toString()
static MarkerSymbolEnum
valueOf​(String name)
Returns the enum constant of this type with the specified name.
static MarkerSymbolEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CIRCLE
public static final MarkerSymbolEnum CIRCLE
-
SQUARE
public static final MarkerSymbolEnum SQUARE
-
DIAMOND
public static final MarkerSymbolEnum DIAMOND
-
TRIANGLE
public static final MarkerSymbolEnum TRIANGLE
-
TRIANGLE_DOWN
public static final MarkerSymbolEnum TRIANGLE_DOWN
-
-
Method Detail
-
values
public static MarkerSymbolEnum[] 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 (MarkerSymbolEnum c : MarkerSymbolEnum.values()) System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MarkerSymbolEnum 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
-
toString
public String toString()
Overrides:
toString
in classEnum<MarkerSymbolEnum>
-
-