simtools.data
Interface DataSourceListener

All Known Implementing Classes:
Abstract1DShape, Abstract2DShape, AffineTransformData, AutomatonShape, BarChartShape, ConnectionShape, CurveShape, DataAnimator.Data, DataSourceAdapter, DataSourceAnimator, DataSourceAnimator, DoubleDataAnimator.DoubleData, EllipseShape, ExpressionDataSource, HistoryShape.HookedTextShape, ImageShape, Java3dShape, LinesShape, PieChartShape, PolygonShape, PropertyData, RectangleShape, SceneGraphData, SceneGraphDoubleData, SceneGraphFloatData, SourceCategoryDataset, SourceIntervalXYDataSet, SourceMeterDataset, SourcePieDataset, SourceXYDataset, SvgShape, TextShape, TransformData, TransformData, TransformDataJava3d, TransformDataXith3d

public interface DataSourceListener

Author:
simtools

Method Summary
 void DataSourceIndexRangeChanged(DataSource ds, long startIndex, long lastIndex)
          Called when the range of valid index changed
 void DataSourceInfoChanged(DataSource ds, DataInfo newInfo)
          Called when the information about the data source changed
 void DataSourceOrderChanged(DataSource ds, int newOrder)
          If defined, called when the order of the source changed.
 void DataSourceReplaced(DataSource oldData, DataSource newData)
          Called when a data source is replaced by another one
 void DataSourceValueChanged(DataSource ds, long minIndex, long maxIndex)
          Called when at least a value changed in the data source.
 void DataSourceValueRangeChanged(DataSource ds)
          Called when the range of possible values changed, if defined.
 

Method Detail

DataSourceValueChanged

void DataSourceValueChanged(DataSource ds,
                            long minIndex,
                            long maxIndex)
Called when at least a value changed in the data source. The listener shall then get the values in the given range again, if it is interested by the values in that range.

Parameters:
ds - The data source that changed
minIndex - Lower bound of the range where values changed
maxIndex - Higher bound of the range where values changed

DataSourceIndexRangeChanged

void DataSourceIndexRangeChanged(DataSource ds,
                                 long startIndex,
                                 long lastIndex)
Called when the range of valid index changed

Parameters:
ds - The data source that changed
startIndex - The new start Index
lastIndex - The new last index

DataSourceInfoChanged

void DataSourceInfoChanged(DataSource ds,
                           DataInfo newInfo)
Called when the information about the data source changed

Parameters:
ds - The data source that changed
newInfo -

DataSourceValueRangeChanged

void DataSourceValueRangeChanged(DataSource ds)
Called when the range of possible values changed, if defined.

Parameters:
ds - The data source that changed
minValue - The new minimum value taken by this data source elements.
maxValue - The new maximum value taken by this data source elements.

DataSourceOrderChanged

void DataSourceOrderChanged(DataSource ds,
                            int newOrder)
If defined, called when the order of the source changed. See the sortedOrder() in the Datasource class for more information.

Parameters:
ds - The data source that changed
newOrder -

DataSourceReplaced

void DataSourceReplaced(DataSource oldData,
                        DataSource newData)
Called when a data source is replaced by another one

Parameters:
oldData -
newdata -