Interface
caplin.chart.series

SeriesListener

An interface that caplin.chart.Chart must implement if it wishes to use the caplin.chart.Series. The interface provides callback methods that will be called when chart series data comes in.

Chart components should have a map to keep track of the series they are displaying.

Constructor Summary

Attributes Name and Description
caplin.chart.series.SeriesListener()

Method Summary

Attributes Name and Description
void onSeriesData(String seriesId, Array data, Boolean reset)

Notification method called by caplin.chart.Series when new series data is available.

void onSeriesError(String seriesId, String sError)

Notification method called by caplin.chart.Series when a subscription error occurs.

void onSeriesStatusUpdate(String seriesId, String sStatus)

Notification method called by caplin.chart.Series on subscription status change.

Constructor Detail

caplin.chart.series.SeriesListener()

Method Detail

void onSeriesData(String seriesId, Array data, Boolean reset)

Notification method called by caplin.chart.Series when new series data is available.

Parameters
String seriesId The series ID of the new data.
Array data Chart series data.
Boolean reset A boolean indicating whether the chart should remove existing data and add it again.

void onSeriesError(String seriesId, String sError)

Notification method called by caplin.chart.Series when a subscription error occurs.

Parameters
String seriesId The series ID on which an error occurred.
String sError A string description of the error.

void onSeriesStatusUpdate(String seriesId, String sStatus)

Notification method called by caplin.chart.Series on subscription status change.

Parameters
String seriesId The series ID on which a status updated.
String sStatus A string description of the status.