SeriesDataChangedListener Interface

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

Syntax

public interface SeriesDataChangedListener

Methods

onItemAdded() Method

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

Syntax

public void onItemAdded()

onItemChanged(int) Method

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

Syntax

public void onItemChanged(int index)

Parameters

Type Name Description
int index

The series point index.

onItemInserted(int) Method

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

Syntax

public void onItemInserted(int index)

Parameters

Type Name Description
int index

The series point index.

onItemRemoved(int) Method

Called when the point is removed at the specified index.

Syntax

public void onItemRemoved(int index)

Parameters

Type Name Description
int index

The series point index.

onItemsAdded(int) Method

Called when new points are added to the data source.

Syntax

public void onItemsAdded(int count)

Parameters

Type Name Description
int count

Newly added points' count.

onItemsChanged(int, int) Method

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

Syntax

public void onItemsChanged(int startIndex, int count)

Parameters

Type Name Description
int startIndex

The first updated point's index.

int count

Updated points' count.

onItemsInserted(int, int) Method

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

Syntax

public void onItemsInserted(int startIndex, int count)

Parameters

Type Name Description
int startIndex

The first inserted point's index.

int count

Inserted points' count.

onItemsRemoved(int, int) Method

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

Syntax

public void onItemsRemoved(int startIndex, int count)

Parameters

Type Name Description
int startIndex

The first removed point's index.

int count

Removed points' count.

onReloaded() Method

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

Syntax

public void onReloaded()