List of usage examples for org.jfree.chart.event PlotChangeEvent setType
public void setType(ChartChangeEventType type)
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); } }