public enum GaugeThreshold extends Enum<GaugeThreshold>
IsThreshold| Enum Constant and Description | 
|---|
| CRITICALthe critical threshold. | 
| NORMALthe normal threshold | 
| WARNINGthe warning threshold. | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | checkIfValid(org.pepstock.charba.client.impl.charts.IsThreshold threshold)Checks if threshold passed as argument is not  nulland its properties are notnull. | 
| IsColor | getColor()Returns the color of threshold. | 
| String | getName()Returns the name of threshold. | 
| Threshold | getThreshold()Creates a new threshold cloning the constant one. | 
| double | getValue()Returns the value of threshold. | 
| static boolean | isValid(org.pepstock.charba.client.impl.charts.IsThreshold threshold)Returns  trueif threshold passed as argument is notnulland its properties are notnull. | 
| static GaugeThreshold | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static GaugeThreshold[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final GaugeThreshold NORMAL
public static final GaugeThreshold WARNING
public static final GaugeThreshold CRITICAL
public static GaugeThreshold[] values()
for (GaugeThreshold c : GaugeThreshold.values()) System.out.println(c);
public static GaugeThreshold valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic double getValue()
public IsColor getColor()
public String getName()
public Threshold getThreshold()
public static boolean isValid(org.pepstock.charba.client.impl.charts.IsThreshold threshold)
true if threshold passed as argument is not null and its properties are not
 null.threshold - threshold to be checkedtrue if threshold passed as argument is not null and its properties are not
         nullpublic static void checkIfValid(org.pepstock.charba.client.impl.charts.IsThreshold threshold)
null and its properties are not null. If not,
 throw a IllegalArgumentException.threshold - threshold to be checked