Class DataClass

    • Constructor Detail

      • DataClass

        public DataClass()
    • Method Detail

      • getColor

        public Color getColor()
        Returns the color of each data class. If not set, the color is pulled from the global or chart-specific colors array.

        Default: null.

      • setColor

        public void setColor​(Color color)
        Sets the color of each data class.
      • setColor

        public void setColor​(String color)
        Sets the color of each data class.
      • setColor

        public void setColor​(LinearGradient color)
        Sets the color of each data class.
      • setColor

        public void setColor​(RadialGradient color)
        Sets the color of each data class.
      • getFrom

        public Number getFrom()
        Returns the start of the value range that the data class represents, relating to the point value. The range of each dataClass is closed in both ends, but can be overridden by the next dataClass.

        Default: null

      • setFrom

        public void setFrom​(Number from)
        Sets the start of the value range that the data class represents, relating to the point value. The range of each dataClass is closed in both ends, but can be overridden by the next dataClass.
      • getName

        public String getName()
        Returns the name of the data class as it appears in the legend. If no name is given, it is automatically created based on the from and to values. For full programmatic control, legend.labelFormatter can be used. In the formatter, this.from and this.to can be accessed.

        Default: null

      • setName

        public void setName​(String name)
        Sets the name of the data class as it appears in the legend. If no name is given, it is automatically created based on the from and to values. For full programmatic control, legend.labelFormatter can be used. In the formatter, this.from and this.to can be accessed.
      • getTo

        public Number getTo()
        Returns the end of the value range that the data class represents, relating to the point value. The range of each dataClass is closed in both ends, but can be overridden by the next dataClass.

        Default: null

      • setTo

        public void setTo​(Number to)
        Sets the end of the value range that the data class represents, relating to the point value. The range of each dataClass is closed in both ends, but can be overridden by the next dataClass.