Enum DefaultThreshold
- java.lang.Object
-
- java.lang.Enum<DefaultThreshold>
-
- org.pepstock.charba.client.impl.charts.DefaultThreshold
-
- All Implemented Interfaces:
Serializable
,Comparable<DefaultThreshold>
public enum DefaultThreshold extends Enum<DefaultThreshold>
Default gauge thresholds.- Author:
- Andrea "Stock" Stocchero
- See Also:
IsThreshold
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IsColor
getColor()
String
getName()
Threshold
getThreshold()
Creates a new threshold cloning the constant one.double
getValue()
static DefaultThreshold
valueOf(String name)
Returns the enum constant of this type with the specified name.static DefaultThreshold[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORMAL
public static final DefaultThreshold NORMAL
the normal threshold
-
WARNING
public static final DefaultThreshold WARNING
the warning threshold.
-
CRITICAL
public static final DefaultThreshold CRITICAL
the critical threshold.
-
-
Method Detail
-
values
public static DefaultThreshold[] 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 (DefaultThreshold c : DefaultThreshold.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultThreshold 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
-
getValue
public double getValue()
-
getColor
public IsColor getColor()
-
getName
public String getName()
-
getThreshold
public Threshold getThreshold()
Creates a new threshold cloning the constant one. This is helpful to change standard color or value.- Returns:
- the threshold
-
-