当前位置: 首页>>代码示例>>Java>>正文


Java DatasetChangeListener类代码示例

本文整理汇总了Java中org.jfree.data.general.DatasetChangeListener的典型用法代码示例。如果您正苦于以下问题:Java DatasetChangeListener类的具体用法?Java DatasetChangeListener怎么用?Java DatasetChangeListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


DatasetChangeListener类属于org.jfree.data.general包,在下文中一共展示了DatasetChangeListener类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: notifyListeners

import org.jfree.data.general.DatasetChangeListener; //导入依赖的package包/类
/**
     * Notifies all registered listeners that the items has changed.
     *
     * @param event contains information about the event that triggered the
     * notification.
     *
     */
    protected void notifyListeners(EventObject event) {
        Object[] listeners = listenerList.getListenerList();

        for (int i = listeners.length - 1; i > 0; i -= 2) {
            Object listener = listeners[i];

            if (listener instanceof GenericListener) {
                ((GenericListener) listener).eventHandler(event);

            } else if (listener instanceof DatasetChangeListener
                    && event instanceof DatasetChangeEvent) {
                ((DatasetChangeListener) listener).datasetChanged((DatasetChangeEvent) event);
            }
        }

//        for (WeakReference<EventListener> weakReference : weakReferenceListenerList) {
//            final EventListener listener = weakReference.get();
//            if (listener == null) {
//                this.removeListener(event.getSource());
//            } else {
//                if (listener instanceof GenericListener) {
//                    ((GenericListener) listener).eventHandler(event);
//
//                } else if (listener instanceof DatasetChangeListener
//                        && event instanceof DatasetChangeEvent) {
//                    ((DatasetChangeListener) listener).datasetChanged((DatasetChangeEvent) event);
//                }
//            }
//        }
    }
 
开发者ID:AnyObject,项目名称:OAT,代码行数:38,代码来源:Listenable.java

示例2: 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);
    }
}
 
开发者ID:nologic,项目名称:nabs,代码行数:9,代码来源:HistoryDisplay.java

示例3: 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);
            }
        }
    }
}
 
开发者ID:nologic,项目名称:nabs,代码行数:13,代码来源:StreamCategoryData.java

示例4: 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);
        }
    }
}
 
开发者ID:nologic,项目名称:nabs,代码行数:12,代码来源:Main.java

示例5: 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);
    }
}
 
开发者ID:nologic,项目名称:nabs,代码行数:10,代码来源:DistroGraphData.java

示例6: addChangeListener

import org.jfree.data.general.DatasetChangeListener; //导入依赖的package包/类
public void addChangeListener(DatasetChangeListener arg0) {
    logger.log(Level.FINEST, "addChangeListener called");
}
 
开发者ID:seqcode,项目名称:seqcode-core,代码行数:4,代码来源:HistogramDataset.java

示例7: removeChangeListener

import org.jfree.data.general.DatasetChangeListener; //导入依赖的package包/类
public void removeChangeListener(DatasetChangeListener arg0) {
    logger.log(Level.FINEST, "removeChangeListener called");
}
 
开发者ID:seqcode,项目名称:seqcode-core,代码行数:4,代码来源:HistogramDataset.java

示例8: addChangeListener

import org.jfree.data.general.DatasetChangeListener; //导入依赖的package包/类
@Override
public void addChangeListener(DatasetChangeListener datasetChangeListener) {
    this.datasetChangeListeners.add(datasetChangeListener);
}
 
开发者ID:zglueck,项目名称:SQLPlot,代码行数:5,代码来源:DataTranslator.java

示例9: removeChangeListener

import org.jfree.data.general.DatasetChangeListener; //导入依赖的package包/类
@Override
public void removeChangeListener(DatasetChangeListener datasetChangeListener) {
    this.datasetChangeListeners.remove(datasetChangeListener);
}
 
开发者ID:zglueck,项目名称:SQLPlot,代码行数:5,代码来源:DataTranslator.java

示例10: addChangeListener

import org.jfree.data.general.DatasetChangeListener; //导入依赖的package包/类
@Override
public void addChangeListener(DatasetChangeListener listener) {
    super.addChangeListener(listener);
}
 
开发者ID:AnyObject,项目名称:OAT,代码行数:5,代码来源:ChartDataset.java

示例11: removeChangeListener

import org.jfree.data.general.DatasetChangeListener; //导入依赖的package包/类
@Override
public void removeChangeListener(DatasetChangeListener listener) {
    super.removeChangeListener(listener);
}
 
开发者ID:AnyObject,项目名称:OAT,代码行数:5,代码来源:ChartDataset.java

示例12: addChangeListener

import org.jfree.data.general.DatasetChangeListener; //导入依赖的package包/类
@Override
public void addChangeListener(DatasetChangeListener datasetchangelistener) {
}
 
开发者ID:dlfinis,项目名称:PSimulacion,代码行数:4,代码来源:SimpleIntervalXYDataset.java

示例13: removeChangeListener

import org.jfree.data.general.DatasetChangeListener; //导入依赖的package包/类
@Override
public void removeChangeListener(DatasetChangeListener datasetchangelistener) {
}
 
开发者ID:dlfinis,项目名称:PSimulacion,代码行数:4,代码来源:SimpleIntervalXYDataset.java

示例14: addChangeListener

import org.jfree.data.general.DatasetChangeListener; //导入依赖的package包/类
public void addChangeListener(DatasetChangeListener l) {
    list.add(l);
}
 
开发者ID:nologic,项目名称:nabs,代码行数:4,代码来源:HistoryDisplay.java

示例15: removeChangeListener

import org.jfree.data.general.DatasetChangeListener; //导入依赖的package包/类
public void removeChangeListener(DatasetChangeListener l) {
    list.remove(l);
}
 
开发者ID:nologic,项目名称:nabs,代码行数:4,代码来源:HistoryDisplay.java


注:本文中的org.jfree.data.general.DatasetChangeListener类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。