Class GaugeDataset

    • Constructor Detail

      • GaugeDataset

        public GaugeDataset​(double max)
        Creates a dataset for gauge with maximum value of data. It uses the global options has default.
        Parameters:
        max - maximum value of data.
      • GaugeDataset

        public GaugeDataset​(double max,
                            IsDefaultOptions defaultValues)
        Creates a dataset setting the maximum value of dataset and defaults value.
        Parameters:
        max - maximum value of dataset.
        defaultValues - default options
    • Method Detail

      • setColor

        public void setColor​(IsColor valueColor)
        Description copied from class: MeterDataset
        Sets the fill color for value.
        Overrides:
        setColor in class MeterDataset
        Parameters:
        valueColor - the fill color for value.
      • setColor

        public void setColor​(String valueColor)
        Description copied from class: MeterDataset
        Sets the fill color for value.
        Overrides:
        setColor in class MeterDataset
        Parameters:
        valueColor - the fill color for value.
      • setMax

        public void setMax​(double max)
        Description copied from class: MeterDataset
        Sets the maximum value of chart.
        Overrides:
        setMax in class MeterDataset
        Parameters:
        max - the maximum value of chart.
      • getCurrent

        public Threshold getCurrent()
        Returns the current threshold.
        Returns:
        the current
      • isPercentageThreshold

        public boolean isPercentageThreshold()
        Returns true if percentage threshold is used, otherwise false.
        Returns:
        true if percentage threshold is used, otherwise false
      • setPercentageThreshold

        public void setPercentageThreshold​(boolean percentageThreshold)
        Sets true if percentage threshold is used, otherwise false.
        Parameters:
        percentageThreshold - true if percentage threshold is used, otherwise false
      • setThresholds

        public void setThresholds​(Threshold... newThresholds)
        Sets all thresholds to use for this gauge.
        Parameters:
        newThresholds - thresholds array.
      • getThresholds

        public List<Threshold> getThresholds()
        Gets all thresholds by an unmodifiable list.
        Returns:
        all thresholds by an unmodifiable list
      • setValue

        public void setValue​(double value)
        Overrides:
        setValue in class MeterDataset
        Parameters:
        value - the value to set