Package org.jfree.data.general

Examples of org.jfree.data.general.DatasetChangeEvent


        if (discDistributor != null) {
            discDistributor.setDataset(dataset);
        }

        // send a dataset change event to self...
        DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
        datasetChanged(event);
    }
View Full Code Here


        source.removeChangeListener(listener);
    }
   
    @Override
    protected void fireDatasetChanged() {
        DatasetChangeEvent e = new DatasetChangeEvent(this, this);
        for (Iterator i = listeners.iterator(); i.hasNext();) {
            DatasetChangeListener l = (DatasetChangeListener) i.next();
            l.datasetChanged(e);
        }
    }
View Full Code Here

        if (dataset != null) {
            dataset.addChangeListener(this);
        }

        // send a dataset change event to self...
        DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
        datasetChanged(event);
    }
View Full Code Here

                eventAdapter.deregisterForUnderlyingDataEvents();
        }
    }
    private void fireChangeEvent() {
        if (listenerList == null) return;
        DatasetChangeEvent e = null;
        Object [] listeners = listenerList.toArray();
        // Process the listeners last to first, notifying
        // those that are interested in this event
        for (int i = listeners.length; i-- > 0; ) {
            if (e == null) e = new DatasetChangeEvent(this, this);
            ((DatasetChangeListener)listeners[i]).datasetChanged(e);
        }
    }
View Full Code Here

            setDatasetGroup(dataset.getGroup());
            dataset.addChangeListener(this);
        }

        // send a dataset change event to self...
        DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
        datasetChanged(event);
    }
View Full Code Here

      }

      public void clear()
      {
         data.clear();
         notifyListeners(new DatasetChangeEvent(this, this));
      }
View Full Code Here

      }

      public void add(Object num)
      {
         data.add(num);
         notifyListeners(new DatasetChangeEvent(this, this));
      }
View Full Code Here

     *
     * @see #getAdjustForBinSize()
     */
    public void setAdjustForBinSize(boolean adjust) {
        this.adjustForBinSize = adjust;
        notifyListeners(new DatasetChangeEvent(this, this));
    }
View Full Code Here

        }
        if (!placed) {
            throw new RuntimeException("No bin.");
        }
        if (notify) {
            notifyListeners(new DatasetChangeEvent(this, this));
        }
    }
View Full Code Here

     */
    public void addObservations(double[] values) {
        for (int i = 0; i < values.length; i++) {
            addObservation(values[i], false);
        }
        notifyListeners(new DatasetChangeEvent(this, this));
    }
View Full Code Here

TOP

Related Classes of org.jfree.data.general.DatasetChangeEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.