Class DataClasses
java.lang.Object
com.vaadin.componentfactory.maps.model.AbstractConfigurationObject
com.vaadin.componentfactory.maps.model.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColor()Getter for the fieldcolor.getFrom()Getter for the fieldfrom.getName()Getter for the fieldname.getTo()Getter for the fieldto.voidThe color of each data class.voidThe start of the value range that the data class represents, relating to the point value.voidThe name of the data class as it appears in the legend.voidThe end of the value range that the data class represents, relating to the point value.
-
Constructor Details
-
DataClasses
public DataClasses()Constructor for DataClasses.
-
-
Method Details
-
getColor
Getter for the field
color.- Returns:
- a
Colorobject. - See Also:
-
setColor
The color of each data class. If not set, the color is pulled from the global or chart-specific colors array.- Parameters:
color- aColorobject.
-
getFrom
Getter for the field
from.- Returns:
- a
Numberobject. - See Also:
-
setFrom
The start of the value range that the data class represents, relating to the point value.- Parameters:
from- aNumberobject.
-
getName
Getter for the field
name.- Returns:
- a
Stringobject. - See Also:
-
setName
The name of the data class as it appears in the legend. If no name is given, it is automatically created based on thefromandtovalues. For full programmatic control, legend.labelFormatter can be used. In the formatter,this.fromandthis.tocan be accessed.- Parameters:
name- aStringobject.
-
getTo
Getter for the field
to.- Returns:
- a
Numberobject. - See Also:
-
setTo
The end of the value range that the data class represents, relating to the point value.- Parameters:
to- aNumberobject.
-