public enum DefaultThreshold extends Enum<DefaultThreshold>
IsThreshold
Enum Constant and Description |
---|
CRITICAL
the critical threshold.
|
NORMAL
the normal threshold
|
WARNING
the 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
null and its properties are not null . |
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
true if threshold passed as argument is not null and its properties are not null . |
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.
|
public static final DefaultThreshold NORMAL
public static final DefaultThreshold WARNING
public static final DefaultThreshold CRITICAL
public static DefaultThreshold[] values()
for (DefaultThreshold c : DefaultThreshold.values()) System.out.println(c);
public static DefaultThreshold 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 null
public 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