Enum ColorMode
- java.lang.Object
-
- java.lang.Enum<ColorMode>
-
- org.pepstock.charba.client.sankey.enums.ColorMode
-
- All Implemented Interfaces:
Serializable
,Comparable<ColorMode>
,Key
public enum ColorMode extends Enum<ColorMode> implements Key
Enumerates the color mode of the flow to draw on the chart.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
value()
Returns the name value of propertystatic ColorMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static ColorMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GRADIENT
public static final ColorMode GRADIENT
This is the default. The mode between "from" and "to" color will be a gradient.
-
FROM
public static final ColorMode FROM
The mode to enable to use the "from" color between items.
-
TO
public static final ColorMode TO
The mode to enable to use the "to" color between items.
-
-
Method Detail
-
values
public static ColorMode[] 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 (ColorMode c : ColorMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ColorMode 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
-
-