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 enumFormat of the 2nd caption of theCockpitControl. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CockpitControlDataSourceprotected booleanprotected final CockpitThresholdsprotected CockpitValueControl.ValueFormat -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCockpitValueControl(com.uc4.util.XMLDocument doc, Element control) -
Method Summary
Modifier and TypeMethodDescriptionReturns theCockpitControlDataSourceof theCockpitControl.Returns the format of the 2nd caption.booleanReturnstrueif the color for the minimum value is red,falseif the color for the minimum value is green.voidsetMinColorRed(boolean minColorRed) Sets the color for the minimum value to red.voidsetValueFormat(CockpitValueControl.ValueFormat valueFormat) Sets the format of the 2nd caption.Returns theCockpitThresholdsof 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 theCockpitThresholdsof theCockpitControl.- Returns:
- use thresholds
-
dataSource
Returns theCockpitControlDataSourceof 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()Returnstrueif the color for the minimum value is red,falseif the color for the minimum value is green.- Returns:
- color red
-