public abstract class ChartSeriesDataSource extends Object implements PropertyChangeListener, CollectionChangeListener
Constructor and Description |
---|
ChartSeriesDataSource(ChartSeriesModel owner)
Initializes a new instance of the
ChartSeriesDataSource class. |
Modifier and Type | Method and Description |
---|---|
void |
addBoundItemPropertyChangedListener(DataBindingListener listener)
Adds a given data binding listener to the current collection of listeners.
|
void |
collectionChanged(CollectionChangedEvent e)
This method handles the occurred change and notifies the change listeners.
|
ArrayList<DataPointBindingEntry> |
getBindings()
Gets the binding entries corresponding to each data point in the data source.
|
Iterable |
getItemsSource()
Gets the current items source.
|
ChartSeriesModel |
getOwner()
Gets the current series owner for this instance.
|
void |
propertyChange(PropertyChangeEvent event)
Called when a property of a bound object changes.
|
void |
removeBoundItemPropertyChangedListener(DataBindingListener listener)
Removes a given data binding listener to the current collection of listeners.
|
void |
setItemsSource(Iterable value)
Sets the current items source.
|
public ChartSeriesDataSource(ChartSeriesModel owner)
ChartSeriesDataSource
class.owner
- the chart series this data source belongs to.public void addBoundItemPropertyChangedListener(DataBindingListener listener)
listener
- the new listener to be added.public void removeBoundItemPropertyChangedListener(DataBindingListener listener)
listener
- the listener to be removed.public ChartSeriesModel getOwner()
public Iterable getItemsSource()
public void setItemsSource(Iterable value)
value
- the new items source.public ArrayList<DataPointBindingEntry> getBindings()
public void propertyChange(PropertyChangeEvent event)
propertyChange
in interface PropertyChangeListener
event
- the instance containing the change event data.public void collectionChanged(CollectionChangedEvent e)
CollectionChangeListener
collectionChanged
in interface CollectionChangeListener
e
- info about the occurred change holding the old and the new data.CollectionChangedEvent