Search in sources :

Example 21 with PlotChangeEvent

use of org.jfree.chart.event.PlotChangeEvent in project SIMVA-SoS by SESoS.

the class Plot method datasetChanged.

/**
 * Receives notification of a change to the plot's dataset.
 * <P>
 * The plot reacts by passing on a plot change event to all registered
 * listeners.
 *
 * @param event  information about the event (not used here).
 */
@Override
public void datasetChanged(DatasetChangeEvent event) {
    PlotChangeEvent newEvent = new PlotChangeEvent(this);
    newEvent.setType(ChartChangeEventType.DATASET_UPDATED);
    notifyListeners(newEvent);
}
Also used : PlotChangeEvent(org.jfree.chart.event.PlotChangeEvent)

Aggregations

PlotChangeEvent (org.jfree.chart.event.PlotChangeEvent)21 ValueAxis (org.jfree.chart.axis.ValueAxis)1 RendererChangeListener (org.jfree.chart.event.RendererChangeListener)1