Class MapDataSeriesItem
java.lang.Object
com.vaadin.componentfactory.maps.model.AbstractConfigurationObject
com.vaadin.componentfactory.maps.model.AbstractSeriesItem
com.vaadin.componentfactory.maps.model.MapDataSeriesItem
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BubblemapDataSeriesItem
The MapDataSeriesItem class represents a single entry in a
MapDataSeries.- Version:
- $Id: $Id
- Author:
- Vaadin
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty item, without values, colors, etc.MapDataSeriesItem(String code, Number value) Constructor for MapDataSeriesItem.MapDataSeriesItem(String code, Number value, boolean drilldown) Constructor for MapDataSeriesItem.MapDataSeriesItem(String code, Number value, Color color) Constructor for MapDataSeriesItem. -
Method Summary
Modifier and TypeMethodDescriptiongetCode()Getter for the fieldcode.Getter for the fieldcursor.Getter for the fielddataLabels.booleanChecks whether or not the item is selected.voidSetter for the fieldcode.voidSets thecursorCSS attribute to be shown on mouse overvoidsetDataLabels(DataLabels dataLabels) Set the label configuration for this itemvoidsetLegendIndex(Number legendIndex) Sets the sequential index of the pie slice in the legend.
-
Constructor Details
-
MapDataSeriesItem
public MapDataSeriesItem()Creates an empty item, without values, colors, etc. -
MapDataSeriesItem
Constructor for MapDataSeriesItem.
-
MapDataSeriesItem
Constructor for MapDataSeriesItem.
-
MapDataSeriesItem
Constructor for MapDataSeriesItem.
-
-
Method Details
-
isSelected
public boolean isSelected()Checks whether or not the item is selected.- Returns:
- true if the item is selected, false otherwise.
-
setLegendIndex
Sets the sequential index of the pie slice in the legend. Defaults to undefined. Note This applies to pie charts only.- Overrides:
setLegendIndexin classAbstractSeriesItem- Parameters:
legendIndex- Index in the legend.
-
getDataLabels
Getter for the field
dataLabels.- Returns:
- dataLabels
- See Also:
-
setDataLabels
Set the label configuration for this item- Parameters:
dataLabels- aDataLabelsobject.
-
getCursor
Getter for the field
cursor.- Returns:
- cursor
- See Also:
-
setCursor
Sets thecursorCSS attribute to be shown on mouse overAccepts CSS
cursorvalues like: alias, all-scroll, auto, cell, context-menu, col-resize, copy, crosshair, default, e-resize, ew-resize, grab, grabbing, help, move, n-resize, ne-resize, nesw-resize, ns-resize, nw-resize, nwse-resize, no-drop, none, not-allowed, pointer, progress, row-resize, s-resize, se-resize, sw-resize, text, vertical-text, w-resize, wait, zoom-in, zoom-outNote that not all browsers have support for all values.
- Parameters:
cursor- aStringobject.
-
getCode
Getter for the field
code.- Returns:
- a
Stringobject.
-
setCode
Setter for the field
code.- Parameters:
code- aStringobject.
-