Tabnine Logo
VectorSeries.removeChangeListener
Code IndexAdd Tabnine to your IDE (free)

How to use
removeChangeListener
method
in
org.jfree.data.xy.VectorSeries

Best Java code snippets using org.jfree.data.xy.VectorSeries.removeChangeListener (Showing top 4 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

/**
 * 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

/**
 * 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.xyVectorSeriesremoveChangeListener

Popular methods of VectorSeries

  • add
    Adds a data item to the series.
  • addChangeListener
  • fireSeriesChanged
  • getDataItem
    Returns the data item at the specified index.
  • getItemCount
  • getKey
  • <init>
    Constructs a new series that contains no data. You can specify whether or not duplicate x-values are
  • setMaximumItemCount

Popular in Java

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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