Class DataClasses

All Implemented Interfaces:
Serializable

@Generated(value="This class was generated", comments="Incorrect and missing API should be reported") public class DataClasses extends AbstractConfigurationObject
An array of data classes or ranges for the choropleth map. If none given, the color axis is scalar and values are distributed as a gradient between the minimum and maximum colors.
Version:
$Id: $Id
Author:
Vaadin
See Also:
  • Constructor Details

    • DataClasses

      public DataClasses()

      Constructor for DataClasses.

  • Method Details

    • getColor

      public Color getColor()

      Getter for the field color.

      Returns:
      a Color object.
      See Also:
    • setColor

      public void setColor(Color color)
      The color of each data class. If not set, the color is pulled from the global or chart-specific colors array.
      Parameters:
      color - a Color object.
    • getFrom

      public Number getFrom()

      Getter for the field from.

      Returns:
      a Number object.
      See Also:
    • setFrom

      public void setFrom(Number from)
      The start of the value range that the data class represents, relating to the point value.
      Parameters:
      from - a Number object.
    • getName

      public String getName()

      Getter for the field name.

      Returns:
      a String object.
      See Also:
    • setName

      public void setName(String name)
      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.
      Parameters:
      name - a String object.
    • getTo

      public Number getTo()

      Getter for the field to.

      Returns:
      a Number object.
      See Also:
    • setTo

      public void setTo(Number to)
      The end of the value range that the data class represents, relating to the point value.
      Parameters:
      to - a Number object.