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.
  • Field Details

  • Constructor Details

    • CockpitValueControl

      protected CockpitValueControl(com.uc4.util.XMLDocument doc, Element control)
  • Method Details

    • thresholds

      public CockpitThresholds thresholds()
      Returns the CockpitThresholds of the CockpitControl.
      Returns:
      use thresholds
    • dataSource

      public CockpitControlDataSource dataSource()
      Returns the CockpitControlDataSource of the CockpitControl.
      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()
      Returns true if the color for the minimum value is red, false if the color for the minimum value is green.
      Returns:
      color red