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
public abstract class CockpitValueControl extends CockpitControl
Basis for all Cockpit control with values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCockpitValueControl.ValueFormatFormat of the 2nd caption of theCockpitControl.
-
Field Summary
Fields Modifier and Type Field Description protected CockpitControlDataSourcedataSourceprotected booleanminColorRedprotected CockpitThresholdsthresholdsprotected CockpitValueControl.ValueFormatvalueFormat
-
Constructor Summary
Constructors Modifier Constructor Description protectedCockpitValueControl(com.uc4.util.XMLDocument doc, org.w3c.dom.Element control)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CockpitControlDataSourcedataSource()Returns theCockpitControlDataSourceof theCockpitControl.CockpitValueControl.ValueFormatgetValueFormat()Returns the format of the 2nd caption.booleanisMinColorRed()Returnstrueif 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.CockpitThresholdsthresholds()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 Detail
-
valueFormat
protected CockpitValueControl.ValueFormat valueFormat
-
minColorRed
protected boolean minColorRed
-
thresholds
protected final CockpitThresholds thresholds
-
dataSource
protected CockpitControlDataSource dataSource
-
-
Method Detail
-
thresholds
public CockpitThresholds thresholds()
Returns theCockpitThresholdsof theCockpitControl.- Returns:
- use thresholds
-
dataSource
public CockpitControlDataSource dataSource()
Returns theCockpitControlDataSourceof theCockpitControl.- Returns:
- CockpitControlDataSource
-
getValueFormat
public CockpitValueControl.ValueFormat getValueFormat()
Returns the format of the 2nd caption.- Returns:
- ValueFormat
-
setValueFormat
public void setValueFormat(CockpitValueControl.ValueFormat valueFormat)
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
-
-