Class AbstractSeries

java.lang.Object
com.vaadin.componentfactory.maps.model.AbstractConfigurationObject
com.vaadin.componentfactory.maps.model.AbstractSeries
All Implemented Interfaces:
Series, Serializable
Direct Known Subclasses:
MapDataSeries

public abstract class AbstractSeries extends AbstractConfigurationObject implements Series
Abstract base class for series
Version:
$Id: $Id
Author:
Vaadin
See Also:
  • Constructor Details

    • AbstractSeries

      public AbstractSeries()

      Constructor for AbstractSeries.

    • AbstractSeries

      public AbstractSeries(String name)
      Constructs a named series
      Parameters:
      name - a String object.
  • Method Details

    • getName

      public String getName()

      getName.

      Specified by:
      getName in interface Series
      Returns:
      The name of the series.
      See Also:
    • setName

      public void setName(String name)
      Sets the name of the series as shown in the legend, tooltip etc. Defaults to "".
      Specified by:
      setName in interface Series
      Parameters:
      name - a String object.
    • getId

      public String getId()

      getId.

      Specified by:
      getId in interface Series
      Returns:
      the series ID
    • setId

      public void setId(String id)
      Sets an id for the series
      Specified by:
      setId in interface Series
      Parameters:
      id - new ID to set
    • setConfiguration

      public void setConfiguration(Configuration configuration)
      Sets the configuration to which this series is linked.
      Specified by:
      setConfiguration in interface Series
      Parameters:
      configuration - a Configuration object.
    • getConfiguration

      public Configuration getConfiguration()

      Getter for the field configuration.

      Returns:
      the Configuration that this series is linked to.
    • getPlotOptions

      public AbstractPlotOptions getPlotOptions()
      Gets the plot options related to this specific series. This is needed e.g. in combined charts.
      Specified by:
      getPlotOptions in interface Series
      Returns:
      a AbstractPlotOptions object.
    • setPlotOptions

      public void setPlotOptions(AbstractPlotOptions plotOptions)
      Sets the plot options for this specific series. The type of the plot options also explicitly sets the chart type used when rendering this particular series. If plot options is null, the component wide chart type is used.

      Options that are not defined at this level will be inherited from the chart and theme levels.

      Specified by:
      setPlotOptions in interface Series
      Parameters:
      plotOptions - a AbstractPlotOptions object.
    • setVisible

      public void setVisible(Boolean visible)
      Control the visibility of the series. Although the series is invisible in the client it is still "cached" there and thus setting it visible happens quickly.
      Parameters:
      visible - true if the series should be displayed, false if not
      See Also:
    • setVisible

      public void setVisible(Boolean visible, boolean updateMapImmediately)
      Control the visibility of the series.

      With this version of the method developer can disable immediate map update for already rendered map, if e.g. multiple changes to the map configuration are wished to be applied at once.

      Parameters:
      visible - true if the series should be displayed, false if not
      updateMapImmediately - Updates the map immediately if true.
      See Also:
    • isVisible

      public Boolean isVisible()

      isVisible.

      Returns:
      true if the series is displayed on the client
    • getxAxis

      public Integer getxAxis()

      Getter for the field xAxis.

      Returns:
      The index of the X-axis that this data series is bound to. Returns null if undefined.
      See Also:
    • setxAxis

      public void setxAxis(Integer xAxis)
      When using dual or multiple X-axes, this number defines which X-axis the particular series is connected to. It refers to the index of the axis in the X-axis array, with 0 being the first. Defaults to 0.
      Parameters:
      xAxis - The index of the X-axis to bind this data series to.
    • getyAxis

      public Integer getyAxis()

      Getter for the field yAxis.

      Returns:
      The index of the Y-axis that this data series is bound to. Returns null if undefined.
      See Also:
    • setyAxis

      public void setyAxis(Integer yAxis)
      When using dual or multiple Y-axes, this number defines which Y-axis the particular series is connected to. It refers to the index of the axis in the Y-axis array, with 0 being the first. Defaults to 0.
      Parameters:
      yAxis - The index of the Y-axis to bind this data series to.
    • setyAxis

      public void setyAxis(YAxis secondaryAxis)
      * When using dual or multiple Y-axes, this number defines which Y-axis the particular series is connected to.

      Note, that this method cannot be used until series and axis are both attached to same configuration object.

      Parameters:
      secondaryAxis - a YAxis object.
      See Also:
    • updateSeries

      public void updateSeries()

      updateSeries.