public class CockpitThresholds
extends java.lang.Object
CockpitControl
Pie, Bar and TrafficLight.
You can specify the minimum and maximum value as well as the threshold values for the yellow indicator.Modifier and Type | Method and Description |
---|---|
int |
getMax()
Returns the maximal value.
|
int |
getMin()
Returns the minimal value.
|
int |
getThreshold1()
Returns the maximal value for lowest indicator.
|
int |
getThreshold2()
Returns the maximal value for middle indicator (yellow area).
|
void |
setMax(int max)
Sets the maximal value.
|
void |
setMin(int min)
Sets the minimal value.
|
void |
setThreshold1(int threshold1)
Sets the maximal value for the lowest indicator.
|
void |
setThreshold2(int threshold2)
Sets the maximal value for the middle indicator (yellow area).
|
public int getMin()
public void setMin(int min)
min
- minimal valuepublic int getMax()
public void setMax(int max)
max
- maximal valuepublic int getThreshold1()
public void setThreshold1(int threshold1)
threshold1
- maximal value for the lowest indicator.public int getThreshold2()
public void setThreshold2(int threshold2)
threshold2
- maximal value for the middle indicator (yellow area).