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

public class AbstractSeriesItem extends AbstractConfigurationObject

AbstractSeriesItem class.

Version:
$Id: $Id
Author:
Vaadin
See Also:
  • Constructor Details

    • AbstractSeriesItem

      public AbstractSeriesItem()

      Constructor for AbstractSeriesItem.

    • AbstractSeriesItem

      public AbstractSeriesItem(Number lat, Number lon)

      Constructor for AbstractSeriesItem.

      Parameters:
      lat - a Number object.
      lon - a Number object.
    • AbstractSeriesItem

      public AbstractSeriesItem(Number lat, Number lon, Number value)

      Constructor for AbstractSeriesItem.

      Parameters:
      lat - a Number object.
      lon - a Number object.
      value - a Number object.
    • AbstractSeriesItem

      public AbstractSeriesItem(String name, Number lat, Number lon, Number value)

      Constructor for AbstractSeriesItem.

      Parameters:
      name - a String object.
      lat - a Number object.
      lon - a Number object.
      value - a Number object.
  • Method Details

    • getName

      public String getName()
      Returns the name of the item.
      Returns:
      The name of the data item or null if not defined.
      See Also:
    • setName

      public void setName(String name)
      Sets the name of the data item as shown in the legend, tooltip, dataLabel etc. Defaults to "".
      Parameters:
      name - Name of the item.
    • getColor

      public Color getColor()
      Returns the color of the item.
      Returns:
      The color of the item.
      See Also:
    • setColor

      public void setColor(Color color)
      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

      public Number 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

      public void setLegendIndex(Number legendIndex)
      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

      public void setMarker(Marker marker)
      Sets the marker of this data series item
      Parameters:
      marker - Marker of the item.
    • getMarker

      public Marker getMarker()
      Returns the marker of the item.
      Returns:
      The marker of this data series item. If none is specified a new Marker will be created.
      See Also:
    • getId

      public String getId()
      Returns the id of the item.
      Returns:
      The ID of the item.
      See Also:
    • setId

      public void setId(String id)
      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

      public Number getValue()

      Getter for the field value.

      Returns:
      a Number object.
    • setValue

      public void setValue(Number value)

      Setter for the field value.

      Parameters:
      value - a Number object.
    • getLat

      public Number getLat()

      Getter for the field lat.

      Returns:
      a Number object.
    • setLat

      public void setLat(Number lat)

      Setter for the field lat.

      Parameters:
      lat - a Number object.
    • getLon

      public Number getLon()

      Getter for the field lon.

      Returns:
      a Number object.
    • setLon

      public void setLon(Number lon)

      Setter for the field lon.

      Parameters:
      lon - a Number object.
    • getX

      public Number getX()

      Getter for the field x.

      Returns:
      a Number object.
    • setX

      public void setX(Number x)

      Setter for the field x.

      Parameters:
      x - a Number object.
    • getY

      public Number getY()

      Getter for the field y.

      Returns:
      a Number object.
    • setY

      public void setY(Number y)

      Setter for the field y.

      Parameters:
      y - a Number object.