Example usage for org.jfree.chart.event PlotChangeEvent setType

List of usage examples for org.jfree.chart.event PlotChangeEvent setType

Introduction

In this page you can find the example usage for org.jfree.chart.event PlotChangeEvent setType.

Prototype

public void setType(ChartChangeEventType type) 

Source Link

Document

Sets the event type.

Usage

From source file:ucar.unidata.idv.control.chart.MyXYPlot.java

/**
 * Receives notification of a change to the plot's dataset.
 * <P>//ww  w  . j  a v a  2 s  .  c o m
 * The axis ranges are updated if necessary.
 *
 * @param event  information about the event (not used here).
 */
public void datasetChanged(DatasetChangeEvent event) {
    configureDomainAxes();
    configureRangeAxes();
    if (getParent() != null) {
        getParent().datasetChanged(event);
    } else {
        PlotChangeEvent e = new PlotChangeEvent(this);
        e.setType(ChartChangeEventType.DATASET_UPDATED);
        notifyListeners(e);
    }
}