Skip to main content
A newer version of this page is available.

SeriesDataChangedListener Interface

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

Declaration

public interface SeriesDataChangedListener

Methods

onItemAdded() Method

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

Declaration

public void onItemAdded()

onItemChanged(int) Method

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

Declaration

public void onItemChanged(int index)

Parameters

Name Type Description
index int

The series point index.

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

Name Type Description
index int

The series point index.

onItemRemoved(int) Method

Called when the point is removed at the specified index.

Declaration

public void onItemRemoved(int index)

Parameters

Name Type Description
index int

The series point index.

onItemsAdded(int) Method

Called when new points are added to the data source.

Declaration

public void onItemsAdded(int count)

Parameters

Name Type Description
count int

Newly added points’ count.

onItemsChanged(int, int) Method

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

Declaration

public void onItemsChanged(int startIndex, int count)

Parameters

Name Type Description
startIndex int

The first updated point’s index.

count int

Updated points’ count.

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

Name Type Description
startIndex int

The first inserted point’s index.

count int

Inserted points’ count.

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

Name Type Description
startIndex int

The first removed point’s index.

count int

Removed points’ count.

onReloaded() Method

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

Declaration

public void onReloaded()