Enum AxisType
- java.lang.Object
-
- java.lang.Enum<AxisType>
-
- com.vaadin.flow.component.charts.model.AxisType
-
- All Implemented Interfaces:
ChartEnum
,Serializable
,Comparable<AxisType>
public enum AxisType extends Enum<AxisType> implements ChartEnum
Enum representing different axis types. Can be one of LINEAR, LOGARITHMIC, CATEGORY or DATETIME. In a DATETIME axis, the numbers are given in milliseconds (or asDate
s), and tick marks are placed on appropriate values like full hours or days. The default for new axes is LINEAR. CATEGORY is a convenience mode for where the point names of the first series are used for categories - avoiding the need to callAxis.setCategories(String...)
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CATEGORY
a convenience mode for where the point names of the first series are used for categories - avoiding the need to callAxis.setCategories(String...)
.DATETIME
In axis mode, the numbers are given in milliseconds (or asDate
s), and tick marks are placed on appropriate values like full hours or days and formatted appropriately.LINEAR
LOGARITHMIC
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
static AxisType
valueOf(String name)
Returns the enum constant of this type with the specified name.static AxisType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LINEAR
public static final AxisType LINEAR
-
LOGARITHMIC
public static final AxisType LOGARITHMIC
-
DATETIME
public static final AxisType DATETIME
In axis mode, the numbers are given in milliseconds (or asDate
s), and tick marks are placed on appropriate values like full hours or days and formatted appropriately.
-
CATEGORY
public static final AxisType CATEGORY
a convenience mode for where the point names of the first series are used for categories - avoiding the need to callAxis.setCategories(String...)
. Note that mode does not affect "x" value, so all series must have same points defined in same order.
-
-
Method Detail
-
values
public static AxisType[] 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 (AxisType c : AxisType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AxisType 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
-
-