Package org.pepstock.charba.client.enums
Enum ScaleDataType
- java.lang.Object
-
- java.lang.Enum<ScaleDataType>
-
- org.pepstock.charba.client.enums.ScaleDataType
-
- All Implemented Interfaces:
Serializable
,Comparable<ScaleDataType>
public enum ScaleDataType extends Enum<ScaleDataType>
Enumeration with all possible types of data set in the scale.- Author:
- Andrea "Stock" Stocchero
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATE
NUMBER
The data property is set as a double.
Used byCartesianLinearAxis
,CartesianLogarithmicAxis
andRadialAxis
.STRING
The data property is set as a string.
Used byCartesianCategoryAxis
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ScaleDataType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ScaleDataType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NUMBER
public static final ScaleDataType NUMBER
The data property is set as a double.
Used byCartesianLinearAxis
,CartesianLogarithmicAxis
andRadialAxis
.
-
DATE
public static final ScaleDataType DATE
-
STRING
public static final ScaleDataType STRING
The data property is set as a string.
Used byCartesianCategoryAxis
.
-
-
Method Detail
-
values
public static ScaleDataType[] 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 (ScaleDataType c : ScaleDataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ScaleDataType 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
-
-