本文整理了Java中org.jfree.data.xy.XYSeries.addChangeListener()
方法的一些代码示例,展示了XYSeries.addChangeListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XYSeries.addChangeListener()
方法的具体详情如下:
包路径:org.jfree.data.xy.XYSeries
类名称:XYSeries
方法名:addChangeListener
暂无
代码示例来源:origin: stackoverflow.com
public SeriesAndPointDragAndMove(String paramString) {
…
series.addChangeListener(new SeriesChangeListener() {
@Override
public void seriesChanged(SeriesChangeEvent e) {
XYSeries series = (XYSeries) e.getSource();
System.out.println(series.getItems());
}
});
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Adds a series to the collection and sends a {@link DatasetChangeEvent}
* to all registered listeners.
*
* @param series the series (<code>null</code> not permitted).
*/
public void addSeries(XYSeries series) {
if (series == null) {
throw new IllegalArgumentException("Null 'series' argument.");
}
this.data.add(series);
series.addChangeListener(this);
fireDatasetChanged();
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Constructs a dataset and populates it with a single series.
*
* @param series the series (<code>null</code> ignored).
*/
public XYSeriesCollection(XYSeries series) {
this.data = new java.util.ArrayList();
this.intervalDelegate = new IntervalXYDelegate(this, false);
addChangeListener(this.intervalDelegate);
if (series != null) {
this.data.add(series);
series.addChangeListener(this);
}
}
代码示例来源:origin: jfree/jfreechart
/**
* Constructs a dataset and populates it with a single series.
*
* @param series the series ({@code null} ignored).
*/
public XYSeriesCollection(XYSeries series) {
this.data = new java.util.ArrayList();
this.intervalDelegate = new IntervalXYDelegate(this, false);
addChangeListener(this.intervalDelegate);
if (series != null) {
this.data.add(series);
series.addChangeListener(this);
series.addVetoableChangeListener(this);
}
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Adds a series to the collection and sends a {@link DatasetChangeEvent}
* to all registered listeners. The series should be configured to NOT
* allow duplicate x-values.
*
* @param series the series (<code>null</code> not permitted).
*/
public void addSeries(XYSeries series) {
if (series == null) {
throw new IllegalArgumentException("Null 'series' argument.");
}
if (series.getAllowDuplicateXValues()) {
throw new IllegalArgumentException(
"Cannot accept XYSeries that allow duplicate values. "
+ "Use XYSeries(seriesName, <sort>, false) constructor."
);
}
updateXPoints(series);
this.data.add(series);
series.addChangeListener(this);
fireDatasetChanged();
}
代码示例来源:origin: jfree/jfreechart
/**
* Adds a series to the collection and sends a {@link DatasetChangeEvent}
* to all registered listeners. The series should be configured to NOT
* allow duplicate x-values.
*
* @param series the series ({@code null} not permitted).
*/
public void addSeries(XYSeries series) {
Args.nullNotPermitted(series, "series");
if (series.getAllowDuplicateXValues()) {
throw new IllegalArgumentException(
"Cannot accept XYSeries that allow duplicate values. "
+ "Use XYSeries(seriesName, <sort>, false) constructor."
);
}
updateXPoints(series);
this.data.add(series);
series.addChangeListener(this);
fireDatasetChanged();
}
代码示例来源:origin: jfree/jfreechart
/**
* Adds a series to the collection and sends a {@link DatasetChangeEvent}
* to all registered listeners.
*
* @param series the series ({@code null} not permitted).
*
* @throws IllegalArgumentException if the key for the series is null or
* not unique within the dataset.
*/
public void addSeries(XYSeries series) {
Args.nullNotPermitted(series, "series");
if (getSeriesIndex(series.getKey()) >= 0) {
throw new IllegalArgumentException(
"This dataset already contains a series with the key "
+ series.getKey());
}
this.data.add(series);
series.addChangeListener(this);
series.addVetoableChangeListener(this);
fireDatasetChanged();
}
内容来源于网络,如有侵权,请联系作者删除!