Class AbstractSeriesItem
java.lang.Object
com.vaadin.componentfactory.maps.model.AbstractConfigurationObject
com.vaadin.componentfactory.maps.model.AbstractSeriesItem
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MapDataSeriesItem
AbstractSeriesItem class.
- Version:
- $Id: $Id
- Author:
- Vaadin
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for AbstractSeriesItem.AbstractSeriesItem(Number lat, Number lon) Constructor for AbstractSeriesItem.AbstractSeriesItem(Number lat, Number lon, Number value) Constructor for AbstractSeriesItem.AbstractSeriesItem(String name, Number lat, Number lon, Number value) Constructor for AbstractSeriesItem. -
Method Summary
Modifier and TypeMethodDescriptiongetColor()Returns the color of the item.getId()Returns the id of the item.getLat()Getter for the fieldlat.Returns the index of the legend.getLon()Getter for the fieldlon.Returns the marker of the item.getName()Returns the name of the item.getValue()Getter for the fieldvalue.getX()Getter for the fieldx.getY()Getter for the fieldy.voidSets the individual color for the point.voidSets the ID for the point.voidSetter for the fieldlat.voidsetLegendIndex(Number legendIndex) Sets the sequential index of the pie slice in the legend.voidSetter for the fieldlon.voidSets the marker of this data series itemvoidSets the name of the data item as shown in the legend, tooltip, dataLabel etc.voidSetter for the fieldvalue.voidSetter for the fieldx.voidSetter for the fieldy.
-
Constructor Details
-
AbstractSeriesItem
public AbstractSeriesItem()Constructor for AbstractSeriesItem.
-
AbstractSeriesItem
Constructor for AbstractSeriesItem.
-
AbstractSeriesItem
Constructor for AbstractSeriesItem.
-
AbstractSeriesItem
Constructor for AbstractSeriesItem.
-
-
Method Details
-
getName
Returns the name of the item.- Returns:
- The name of the data item or null if not defined.
- See Also:
-
setName
Sets the name of the data item as shown in the legend, tooltip, dataLabel etc. Defaults to "".- Parameters:
name- Name of the item.
-
getColor
Returns the color of the item.- Returns:
- The color of the item.
- See Also:
-
setColor
Sets the individual color for the point. Defaults to null. This might not work for all chart types.- Parameters:
color- Color of the item.
-
getLegendIndex
Returns the index of the legend. Applicable only to pie charts.- Returns:
- The index of the legend or null if not defined. Only applicable for pie charts.
- See Also:
-
setLegendIndex
Sets the sequential index of the pie slice in the legend. Defaults to undefined. Note This applies to pie charts only.- Parameters:
legendIndex- Index in the legend.
-
setMarker
Sets the marker of this data series item- Parameters:
marker- Marker of the item.
-
getMarker
Returns the marker of the item.- Returns:
- The marker of this data series item. If none is specified a new
Markerwill be created. - See Also:
-
getId
Returns the id of the item.- Returns:
- The ID of the item.
- See Also:
-
setId
Sets the ID for the point. This can be used after rendering to get a reference to the point object. Defaults to null.- Parameters:
id- New id.
-
getValue
Getter for the field
value.- Returns:
- a
Numberobject.
-
setValue
Setter for the field
value.- Parameters:
value- aNumberobject.
-
getLat
Getter for the field
lat.- Returns:
- a
Numberobject.
-
setLat
Setter for the field
lat.- Parameters:
lat- aNumberobject.
-
getLon
Getter for the field
lon.- Returns:
- a
Numberobject.
-
setLon
Setter for the field
lon.- Parameters:
lon- aNumberobject.
-
getX
Getter for the field
x.- Returns:
- a
Numberobject.
-
setX
Setter for the field
x.- Parameters:
x- aNumberobject.
-
getY
Getter for the field
y.- Returns:
- a
Numberobject.
-
setY
Setter for the field
y.- Parameters:
y- aNumberobject.
-