Class MapDataSeriesItem

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BubblemapDataSeriesItem

public class MapDataSeriesItem extends AbstractSeriesItem
The MapDataSeriesItem class represents a single entry in a MapDataSeries.
Version:
$Id: $Id
Author:
Vaadin
See Also:
  • Constructor Details

    • MapDataSeriesItem

      public MapDataSeriesItem()
      Creates an empty item, without values, colors, etc.
    • MapDataSeriesItem

      public MapDataSeriesItem(String code, Number value)

      Constructor for MapDataSeriesItem.

      Parameters:
      code - a String object.
      value - a Number object.
    • MapDataSeriesItem

      public MapDataSeriesItem(String code, Number value, boolean drilldown)

      Constructor for MapDataSeriesItem.

      Parameters:
      code - a String object.
      value - a Number object.
      drilldown - a boolean.
    • MapDataSeriesItem

      public MapDataSeriesItem(String code, Number value, Color color)

      Constructor for MapDataSeriesItem.

      Parameters:
      code - a String object.
      value - a Number object.
      color - a Color object.
  • Method Details

    • isSelected

      public boolean isSelected()
      Checks whether or not the item is selected.
      Returns:
      true if the item is selected, false otherwise.
    • 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.
      Overrides:
      setLegendIndex in class AbstractSeriesItem
      Parameters:
      legendIndex - Index in the legend.
    • getDataLabels

      public DataLabels getDataLabels()

      Getter for the field dataLabels.

      Returns:
      dataLabels
      See Also:
    • setDataLabels

      public void setDataLabels(DataLabels dataLabels)
      Set the label configuration for this item
      Parameters:
      dataLabels - a DataLabels object.
    • getCursor

      public String getCursor()

      Getter for the field cursor.

      Returns:
      cursor
      See Also:
    • setCursor

      public void setCursor(String cursor)
      Sets the cursor CSS attribute to be shown on mouse over

      Accepts CSS cursor values 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-out

      Note that not all browsers have support for all values.

      Parameters:
      cursor - a String object.
    • getCode

      public String getCode()

      Getter for the field code.

      Returns:
      a String object.
    • setCode

      public void setCode(String code)

      Setter for the field code.

      Parameters:
      code - a String object.