本文整理汇总了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);
// }
// }
// }
}
示例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);
}
}
示例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);
}
}
}
}
示例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);
}
}
}
示例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);
}
}
示例6: addChangeListener
import org.jfree.data.general.DatasetChangeListener; //导入依赖的package包/类
public void addChangeListener(DatasetChangeListener arg0) {
logger.log(Level.FINEST, "addChangeListener called");
}
示例7: removeChangeListener
import org.jfree.data.general.DatasetChangeListener; //导入依赖的package包/类
public void removeChangeListener(DatasetChangeListener arg0) {
logger.log(Level.FINEST, "removeChangeListener called");
}
示例8: addChangeListener
import org.jfree.data.general.DatasetChangeListener; //导入依赖的package包/类
@Override
public void addChangeListener(DatasetChangeListener datasetChangeListener) {
this.datasetChangeListeners.add(datasetChangeListener);
}
示例9: removeChangeListener
import org.jfree.data.general.DatasetChangeListener; //导入依赖的package包/类
@Override
public void removeChangeListener(DatasetChangeListener datasetChangeListener) {
this.datasetChangeListeners.remove(datasetChangeListener);
}
示例10: addChangeListener
import org.jfree.data.general.DatasetChangeListener; //导入依赖的package包/类
@Override
public void addChangeListener(DatasetChangeListener listener) {
super.addChangeListener(listener);
}
示例11: removeChangeListener
import org.jfree.data.general.DatasetChangeListener; //导入依赖的package包/类
@Override
public void removeChangeListener(DatasetChangeListener listener) {
super.removeChangeListener(listener);
}
示例12: addChangeListener
import org.jfree.data.general.DatasetChangeListener; //导入依赖的package包/类
@Override
public void addChangeListener(DatasetChangeListener datasetchangelistener) {
}
示例13: removeChangeListener
import org.jfree.data.general.DatasetChangeListener; //导入依赖的package包/类
@Override
public void removeChangeListener(DatasetChangeListener datasetchangelistener) {
}
示例14: addChangeListener
import org.jfree.data.general.DatasetChangeListener; //导入依赖的package包/类
public void addChangeListener(DatasetChangeListener l) {
list.add(l);
}
示例15: removeChangeListener
import org.jfree.data.general.DatasetChangeListener; //导入依赖的package包/类
public void removeChangeListener(DatasetChangeListener l) {
list.remove(l);
}