Package org.pepstock.charba.client.enums
Enum CubicInterpolationMode
- java.lang.Object
-
- java.lang.Enum<CubicInterpolationMode>
-
- org.pepstock.charba.client.enums.CubicInterpolationMode
-
- All Implemented Interfaces:
Serializable
,Comparable<CubicInterpolationMode>
,Key
public enum CubicInterpolationMode extends Enum<CubicInterpolationMode> implements Key
Determines the interpolation mode of lines.- Author:
- Andrea "Stock" Stocchero
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT
The 'default' algorithm uses a custom weighted cubic interpolation, which produces pleasant curves for all types of datasets.
Default.MONOTONE
The 'monotone' algorithm is more suited to datasets: it preserves monotonicity (or piecewise monotonicity) of the dataset being interpolated, and ensures local extremums (if any) stay at input data points.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
value()
Returns the name value of propertystatic CubicInterpolationMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static CubicInterpolationMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final CubicInterpolationMode DEFAULT
The 'default' algorithm uses a custom weighted cubic interpolation, which produces pleasant curves for all types of datasets.
Default.
-
MONOTONE
public static final CubicInterpolationMode MONOTONE
The 'monotone' algorithm is more suited to datasets: it preserves monotonicity (or piecewise monotonicity) of the dataset being interpolated, and ensures local extremums (if any) stay at input data points.
-
-
Method Detail
-
values
public static CubicInterpolationMode[] 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 (CubicInterpolationMode c : CubicInterpolationMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CubicInterpolationMode 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
-
-