congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
VectorSeriesCollection.fireDatasetChanged
Code IndexAdd Tabnine to your IDE (free)

How to use
fireDatasetChanged
method
in
org.jfree.data.xy.VectorSeriesCollection

Best Java code snippets using org.jfree.data.xy.VectorSeriesCollection.fireDatasetChanged (Showing top 6 results out of 315)

origin: jfree/jfreechart

/**
 * Removes all the series from the collection and sends a
 * {@link DatasetChangeEvent} to all registered listeners.
 */
public void removeAllSeries() {
  // deregister the collection as a change listener to each series in the
  // collection
  for (int i = 0; i < this.data.size(); i++) {
    VectorSeries series = (VectorSeries) this.data.get(i);
    series.removeChangeListener(this);
  }
  // remove all the series from the collection and notify listeners.
  this.data.clear();
  fireDatasetChanged();
}
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(VectorSeries series) {
  if (series == null) {
    throw new IllegalArgumentException("Null 'series' argument.");
  }
  this.data.add(series);
  series.addChangeListener(this);
  fireDatasetChanged();
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Removes all the series from the collection and sends a
 * {@link DatasetChangeEvent} to all registered listeners.
 */
public void removeAllSeries() {
  // deregister the collection as a change listener to each series in the
  // collection
  for (int i = 0; i < this.data.size(); i++) {
    VectorSeries series = (VectorSeries) this.data.get(i);
    series.removeChangeListener(this);
  }
  // remove all the series from the collection and notify listeners.
  this.data.clear();
  fireDatasetChanged();
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Removes the specified series from the collection and sends a
 * {@link DatasetChangeEvent} to all registered listeners.
 *
 * @param series  the series (<code>null</code> not permitted).
 *
 * @return A boolean indicating whether the series has actually been
 *         removed.
 */
public boolean removeSeries(VectorSeries series) {
  if (series == null) {
    throw new IllegalArgumentException("Null 'series' argument.");
  }
  boolean removed = this.data.remove(series);
  if (removed) {
    series.removeChangeListener(this);
    fireDatasetChanged();
  }
  return removed;
}
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).
 */
public void addSeries(VectorSeries series) {
  Args.nullNotPermitted(series, "series");
  this.data.add(series);
  series.addChangeListener(this);
  fireDatasetChanged();
}
origin: jfree/jfreechart

/**
 * Removes the specified series from the collection and sends a
 * {@link DatasetChangeEvent} to all registered listeners.
 *
 * @param series  the series ({@code null} not permitted).
 *
 * @return A boolean indicating whether the series has actually been
 *         removed.
 */
public boolean removeSeries(VectorSeries series) {
  Args.nullNotPermitted(series, "series");
  boolean removed = this.data.remove(series);
  if (removed) {
    series.removeChangeListener(this);
    fireDatasetChanged();
  }
  return removed;
}
org.jfree.data.xyVectorSeriesCollectionfireDatasetChanged

Popular methods of VectorSeriesCollection

  • getSeries
    Returns a series from the collection.
  • getSeriesCount
    Returns the number of series in the collection.
  • getXValue
    Returns the x-value for an item within a series.
  • getYValue
    Returns the y-value for an item within a series.
  • <init>
    Creates a new instance of VectorSeriesCollection.
  • addSeries
    Adds a series to the collection and sends a DatasetChangeEventto all registered listeners.

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • getContentResolver (Context)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JButton (javax.swing)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now