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
Abstract base class for series
- Version:
- $Id: $Id
- Author:
- Vaadin
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for AbstractSeries.AbstractSeries(String name) Constructs a named series -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldconfiguration.getId()getId.getName()getName.Gets the plot options related to this specific series.getxAxis()Getter for the fieldxAxis.getyAxis()Getter for the fieldyAxis.isVisible.voidsetConfiguration(Configuration configuration) Sets the configuration to which this series is linked.voidSets an id for the seriesvoidSets the name of the series as shown in the legend, tooltip etc.voidsetPlotOptions(AbstractPlotOptions plotOptions) Sets the plot options for this specific series.voidsetVisible(Boolean visible) Control the visibility of the series.voidsetVisible(Boolean visible, boolean updateMapImmediately) Control the visibility of the series.voidWhen using dual or multiple X-axes, this number defines which X-axis the particular series is connected to.void* When using dual or multiple Y-axes, this number defines which Y-axis the particular series is connected to.voidWhen using dual or multiple Y-axes, this number defines which Y-axis the particular series is connected to.voidupdateSeries.
-
Constructor Details
-
AbstractSeries
public AbstractSeries()Constructor for AbstractSeries.
-
AbstractSeries
Constructs a named series- Parameters:
name- aStringobject.
-
-
Method Details
-
getName
getName.
-
setName
Sets the name of the series as shown in the legend, tooltip etc. Defaults to "". -
getId
getId.
-
setId
Sets an id for the series -
setConfiguration
Sets the configuration to which this series is linked.- Specified by:
setConfigurationin interfaceSeries- Parameters:
configuration- aConfigurationobject.
-
getConfiguration
Getter for the field
configuration.- Returns:
- the
Configurationthat this series is linked to.
-
getPlotOptions
Gets the plot options related to this specific series. This is needed e.g. in combined charts.- Specified by:
getPlotOptionsin interfaceSeries- Returns:
- a
AbstractPlotOptionsobject.
-
setPlotOptions
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:
setPlotOptionsin interfaceSeries- Parameters:
plotOptions- aAbstractPlotOptionsobject.
-
setVisible
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
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 notupdateMapImmediately- Updates the map immediately if true.- See Also:
-
isVisible
isVisible.
- Returns:
- true if the series is displayed on the client
-
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
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
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
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
* 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- aYAxisobject.- See Also:
-
updateSeries
public void updateSeries()updateSeries.
-