Package com.uc4.api.objects
Class CockpitValueControl
java.lang.Object
com.uc4.api.objects.CockpitControl
com.uc4.api.objects.CockpitValueControl
- Direct Known Subclasses:
CockpitBar
,CockpitBox
,CockpitLamp
,CockpitPie
,CockpitTrafficLights
Basis for all Cockpit control with values.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Format of the 2nd caption of theCockpitControl
. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CockpitControlDataSource
protected boolean
protected final CockpitThresholds
protected CockpitValueControl.ValueFormat
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CockpitValueControl
(com.uc4.util.XMLDocument doc, Element control) -
Method Summary
Modifier and TypeMethodDescriptionReturns theCockpitControlDataSource
of theCockpitControl
.Returns the format of the 2nd caption.boolean
Returnstrue
if the color for the minimum value is red,false
if the color for the minimum value is green.void
setMinColorRed
(boolean minColorRed) Sets the color for the minimum value to red.void
setValueFormat
(CockpitValueControl.ValueFormat valueFormat) Sets the format of the 2nd caption.Returns theCockpitThresholds
of theCockpitControl
.Methods inherited from class com.uc4.api.objects.CockpitControl
getCaption, getHeight, getId, getLeft, getTop, getWidth, setCaption, setHeight, setLeft, setTop, setWidth, store
-
Field Details
-
valueFormat
-
minColorRed
protected boolean minColorRed -
thresholds
-
dataSource
-
-
Constructor Details
-
CockpitValueControl
-
-
Method Details
-
thresholds
Returns theCockpitThresholds
of theCockpitControl
.- Returns:
- use thresholds
-
dataSource
Returns theCockpitControlDataSource
of theCockpitControl
.- Returns:
- CockpitControlDataSource
-
getValueFormat
Returns the format of the 2nd caption.- Returns:
- ValueFormat
-
setValueFormat
Sets the format of the 2nd caption.- Parameters:
valueFormat
- ValueFormat
-
setMinColorRed
public void setMinColorRed(boolean minColorRed) Sets the color for the minimum value to red.- Parameters:
minColorRed
- Minimum color is red
-
isMinColorRed
public boolean isMinColorRed()Returnstrue
if the color for the minimum value is red,false
if the color for the minimum value is green.- Returns:
- color red
-