本文整理汇总了Java中org.jfree.data.general.DatasetChangeListener.datasetChanged方法的典型用法代码示例。如果您正苦于以下问题:Java DatasetChangeListener.datasetChanged方法的具体用法?Java DatasetChangeListener.datasetChanged怎么用?Java DatasetChangeListener.datasetChanged使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jfree.data.general.DatasetChangeListener
的用法示例。
在下文中一共展示了DatasetChangeListener.datasetChanged方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateData
import org.jfree.data.general.DatasetChangeListener; //导入方法依赖的package包/类
public void updateData() {
Iterator it = list.iterator();
while(it.hasNext()){
DatasetChangeListener l = (DatasetChangeListener)it.next();
l.datasetChanged(event);
}
}
示例2: updateData
import org.jfree.data.general.DatasetChangeListener; //导入方法依赖的package包/类
public void updateData(){
if(lossyTable != null){
Iterator it = list.iterator();
synchronized(lossyTable){
while(it.hasNext()){
DatasetChangeListener l = (DatasetChangeListener)it.next();
l.datasetChanged(event);
}
}
}
}
示例3: updateData
import org.jfree.data.general.DatasetChangeListener; //导入方法依赖的package包/类
public void updateData(){
// The component should be notified only if the user actually sees it.
if(chartComp.isShowing()){
Iterator it = list.iterator();
while(it.hasNext()){
DatasetChangeListener l = (DatasetChangeListener)it.next();
l.datasetChanged(event);
}
}
}
示例4: updateData
import org.jfree.data.general.DatasetChangeListener; //导入方法依赖的package包/类
public void updateData(long[] newData){
System.arraycopy(newData, 0, data, 0, data.length);
Iterator it = list.iterator();
while(it.hasNext()){
DatasetChangeListener l = (DatasetChangeListener)it.next();
l.datasetChanged(event);
}
}
示例5: addSample
import org.jfree.data.general.DatasetChangeListener; //导入方法依赖的package包/类
private void addSample(double sample) {
data.add(new Entry(sample));
for (DatasetChangeListener l : listeners) {
l.datasetChanged(new DatasetChangeEvent(this, this));
}
}
示例6: fire
import org.jfree.data.general.DatasetChangeListener; //导入方法依赖的package包/类
private void fire() {
for (DatasetChangeListener l : listeners) {
l.datasetChanged(new DatasetChangeEvent(this, this));
}
}