Search in sources :

Example 1 with DatasetChangeListener

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);
    }
}
Also used : DatasetChangeListener(org.jfree.data.general.DatasetChangeListener) DatasetChangeEvent(org.jfree.data.general.DatasetChangeEvent)

Example 2 with DatasetChangeListener

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);
    }
}
Also used : Iterator(java.util.Iterator) DatasetChangeListener(org.jfree.data.general.DatasetChangeListener) DatasetChangeEvent(org.jfree.data.general.DatasetChangeEvent)

Aggregations

DatasetChangeEvent (org.jfree.data.general.DatasetChangeEvent)2 DatasetChangeListener (org.jfree.data.general.DatasetChangeListener)2 Iterator (java.util.Iterator)1