Package com.uc4.api.objects
Class CockpitTrafficLights
java.lang.Object
com.uc4.api.objects.CockpitControl
com.uc4.api.objects.CockpitValueControl
com.uc4.api.objects.CockpitTrafficLights
Represents the Traffic light control of the
Cockpit.-
Nested Class Summary
Nested classes/interfaces inherited from class com.uc4.api.objects.CockpitValueControl
CockpitValueControl.ValueFormat -
Field Summary
Fields inherited from class com.uc4.api.objects.CockpitValueControl
dataSource, minColorRed, thresholds, valueFormat -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCockpitTrafficLights(com.uc4.util.XMLDocument doc, Element control) -
Method Summary
Methods inherited from class com.uc4.api.objects.CockpitValueControl
dataSource, getValueFormat, isMinColorRed, setMinColorRed, setValueFormat, thresholdsMethods inherited from class com.uc4.api.objects.CockpitControl
getCaption, getHeight, getId, getLeft, getTop, getWidth, setCaption, setHeight, setLeft, setTop, setWidth, store
-
Constructor Details
-
CockpitTrafficLights
-
-
Method Details
-
isOnOff
public boolean isOnOff()Returntrueif the On/Off function is used,falseif the threshold values. It also returnsfalseif the value format is set toValueFormat.TEXT.- Returns:
- OnOff
-
setOnOff
public void setOnOff(boolean onOff) Specify, whether the On/Off mode is used or not. If set tofalsethe threshold values are used.- Parameters:
onOff- On/Off mode
-