SeriesDataChangedListener Interface

The interface that should be implemented by a data adapter that notifies a chart about data changes.

Declaration

public interface SeriesDataChangedListener

Methods

SeriesDataChangedListener.onItemAdded() Method

Called when a new point is added to the data source.

Declaration

public void onItemAdded()

SeriesDataChangedListener.onItemChanged(int) Method

Called when values of the point at the specified index, are updated.

Declaration

public void onItemChanged(int index)

Parameters

Type Name Description
int index

The series point index.

SeriesDataChangedListener.onItemInserted(int) Method

Called when a new point is added to the data source at the specified index.

Declaration

public void onItemInserted(int index)

Parameters

Type Name Description
int index

The series point index.

SeriesDataChangedListener.onItemRemoved(int) Method

Called when the point is removed at the specified index.

Declaration

public void onItemRemoved(int index)

Parameters

Type Name Description
int index

The series point index.

SeriesDataChangedListener.onItemsAdded(int) Method

Called when new points are added to the data source.

Declaration

public void onItemsAdded(int count)

Parameters

Type Name Description
int count

Newly added points' count.

SeriesDataChangedListener.onItemsChanged(int, int) Method

Called when values of points within the specified range are updated.

Declaration

public void onItemsChanged(int startIndex, int count)

Parameters

Type Name Description
int startIndex

The first updated point's index.

int count

Updated points' count.

SeriesDataChangedListener.onItemsInserted(int, int) Method

Called when new points are added to the data source at the specified range.

Declaration

public void onItemsInserted(int startIndex, int count)

Parameters

Type Name Description
int startIndex

The first inserted point's index.

int count

Inserted points' count.

SeriesDataChangedListener.onItemsRemoved(int, int) Method

Called when points are removed from the data source at the specified range.

Declaration

public void onItemsRemoved(int startIndex, int count)

Parameters

Type Name Description
int startIndex

The first removed point's index.

int count

Removed points' count.

SeriesDataChangedListener.onReloaded() Method

Updates data representation when the data source reloads its data points.

Declaration

public void onReloaded()