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 SummaryNested ClassesModifier and TypeClassDescriptionstatic enumFormat of the 2nd caption of theCockpitControl.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected CockpitControlDataSourceprotected booleanprotected final CockpitThresholdsprotected CockpitValueControl.ValueFormat
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCockpitValueControl(com.uc4.util.XMLDocument doc, Element control) 
- 
Method SummaryModifier 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.CockpitControlgetCaption, getHeight, getId, getLeft, getTop, getWidth, setCaption, setHeight, setLeft, setTop, setWidth, store
- 
Field Details- 
valueFormat
- 
minColorRedprotected boolean minColorRed
- 
thresholds
- 
dataSource
 
- 
- 
Constructor Details- 
CockpitValueControl
 
- 
- 
Method Details- 
thresholdsReturns theCockpitThresholdsof theCockpitControl.- Returns:
- use thresholds
 
- 
dataSourceReturns theCockpitControlDataSourceof theCockpitControl.- Returns:
- CockpitControlDataSource
 
- 
getValueFormatReturns the format of the 2nd caption.- Returns:
- ValueFormat
 
- 
setValueFormatSets the format of the 2nd caption.- Parameters:
- valueFormat- ValueFormat
 
- 
setMinColorRedpublic void setMinColorRed(boolean minColorRed) Sets the color for the minimum value to red.- Parameters:
- minColorRed- Minimum color is red
 
- 
isMinColorRedpublic boolean isMinColorRed()Returnstrueif the color for the minimum value is red,falseif the color for the minimum value is green.- Returns:
- color red
 
 
-