use of org.jfree.data.general.DatasetChangeListener in project processdash by dtuma.
the class ChartDataEventRecalcHelper method fireChangeEvent.
private void fireChangeEvent() {
if (listenerList == null)
return;
DatasetChangeEvent e = null;
Object[] listeners = listenerList.toArray();
// those that are interested in this event
for (int i = listeners.length; i-- > 0; ) {
if (e == null)
e = new DatasetChangeEvent(this, this);
((DatasetChangeListener) listeners[i]).datasetChanged(e);
}
}
use of org.jfree.data.general.DatasetChangeListener in project processdash by dtuma.
the class XYDatasetFilter method fireDatasetChanged.
@Override
protected void fireDatasetChanged() {
DatasetChangeEvent e = new DatasetChangeEvent(this, this);
for (Iterator i = listeners.iterator(); i.hasNext(); ) {
DatasetChangeListener l = (DatasetChangeListener) i.next();
l.datasetChanged(e);
}
}
Aggregations