Class CockpitValueControl

    • Constructor Detail

      • CockpitValueControl

        protected CockpitValueControl​(com.uc4.util.XMLDocument doc,
                                      org.w3c.dom.Element control)
    • Method Detail

      • 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
      • 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