CloneSet66


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
48410.982class_body_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
144277
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/XIntervalSeriesCollection.java
244300
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/XYIntervalSeriesCollection.java
348135
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/XYSeriesCollection.java
444275
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/YIntervalSeriesCollection.java
Next
Last
Clone Instance
1
Line Count
44
Source Line
277
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/XIntervalSeriesCollection.java

/**
 * Removes a series from the collection and sends a
 * {@link DatasetChangeEvent} to all registered listeners.
 *
 * @param series  the series index (zero-based).
 *
 * @since 1.0.10
 */
public void removeSeries(int series) {
  if ((series < 0) || (series >= getSeriesCount())) {
    throw new IllegalArgumentException("Series index out of bounds.");
  }
  XIntervalSeries ts = (XIntervalSeries) this.data.get(series);
  ts.removeChangeListener(this );
  this.data.remove(series);
  fireDatasetChanged();
}

/**
 * Removes a series from the collection and sends a
 * {@link DatasetChangeEvent} to all registered listeners.
 *
 * @param series  the series (<code>null</code> not permitted).
 *
 * @since 1.0.10
 */
public void removeSeries(XIntervalSeries series) {
  if (series == null) {
    throw new IllegalArgumentException("Null \'series\' argument.");
  }
  if (this.data.contains(series)) {
    series.removeChangeListener(this );
    this.data.remove(series);
    fireDatasetChanged();
  }
}

/**
 * Removes all the series from the collection and sends a
 * {@link DatasetChangeEvent} to all registered listeners.
 *
 * @since 1.0.10
 */
public void removeAllSeries() {
  // Unregister the collection as a change listener to each series in
  // the collection.
  for (int i = 0; i < this.data.size(); i++) {
    XIntervalSeries series = (XIntervalSeries) this.data.get(i);
    series.removeChangeListener(this );
  }
  this.data.clear();
  fireDatasetChanged();
}


Next
Previous
Clone Instance
2
Line Count
44
Source Line
300
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/XYIntervalSeriesCollection.java

/**
 * Removes a series from the collection and sends a
 * {@link DatasetChangeEvent} to all registered listeners.
 *
 * @param series  the series index (zero-based).
 *
 * @since 1.0.10
 */
public void removeSeries(int series) {
  if ((series < 0) || (series >= getSeriesCount())) {
    throw new IllegalArgumentException("Series index out of bounds.");
  }
  XYIntervalSeries ts = (XYIntervalSeries) this.data.get(series);
  ts.removeChangeListener(this );
  this.data.remove(series);
  fireDatasetChanged();
}

/**
 * Removes a series from the collection and sends a
 * {@link DatasetChangeEvent} to all registered listeners.
 *
 * @param series  the series (<code>null</code> not permitted).
 *
 * @since 1.0.10
 */
public void removeSeries(XYIntervalSeries series) {
  if (series == null) {
    throw new IllegalArgumentException("Null \'series\' argument.");
  }
  if (this.data.contains(series)) {
    series.removeChangeListener(this );
    this.data.remove(series);
    fireDatasetChanged();
  }
}

/**
 * Removes all the series from the collection and sends a
 * {@link DatasetChangeEvent} to all registered listeners.
 *
 * @since 1.0.10
 */
public void removeAllSeries() {
  // Unregister the collection as a change listener to each series in
  // the collection.
  for (int i = 0; i < this.data.size(); i++) {
    XYIntervalSeries series = (XYIntervalSeries) this.data.get(i);
    series.removeChangeListener(this );
  }
  this.data.clear();
  fireDatasetChanged();
}


Next
Previous
Clone Instance
3
Line Count
48
Source Line
135
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/XYSeriesCollection.java

/**
 * Removes a series from the collection and sends a
 * {@link DatasetChangeEvent} to all registered listeners.
 *
 * @param series  the series index (zero-based).
 */
public void removeSeries(int series) {
  if ((series < 0) || (series >= getSeriesCount())) {
    throw new IllegalArgumentException("Series index out of bounds.");
  }
  // fetch the series, remove the change listener, then remove the series.
  XYSeries ts = (XYSeries) this.data.get(series);
  ts.removeChangeListener(this );
  this.data.remove(series);
  fireDatasetChanged();
}

/**
 * Removes a series from the collection and sends a
 * {@link DatasetChangeEvent} to all registered listeners.
 *
 * @param series  the series (<code>null</code> not permitted).
 */
public void removeSeries(XYSeries series) {
  if (series == null) {
    throw new IllegalArgumentException("Null \'series\' argument.");
  }
  if (this.data.contains(series)) {
    series.removeChangeListener(this );
    this.data.remove(series);
    fireDatasetChanged();
  }
}

/**
 * Removes all the series from the collection and sends a
 * {@link DatasetChangeEvent} to all registered listeners.
 */
public void removeAllSeries() {
  // Unregister the collection as a change listener to each series in
  // the collection.
  for (int i = 0; i < this.data.size(); i++) {
    XYSeries series = (XYSeries) this.data.get(i);
    series.removeChangeListener(this );
  }
  // Remove all the series from the collection and notify listeners.
  this.data.clear();
  fireDatasetChanged();
}


First
Previous
Clone Instance
4
Line Count
44
Source Line
275
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/YIntervalSeriesCollection.java

/**
 * Removes a series from the collection and sends a
 * {@link DatasetChangeEvent} to all registered listeners.
 *
 * @param series  the series index (zero-based).
 *
 * @since 1.0.10
 */
public void removeSeries(int series) {
  if ((series < 0) || (series >= getSeriesCount())) {
    throw new IllegalArgumentException("Series index out of bounds.");
  }
  YIntervalSeries ts = (YIntervalSeries) this.data.get(series);
  ts.removeChangeListener(this );
  this.data.remove(series);
  fireDatasetChanged();
}

/**
 * Removes a series from the collection and sends a
 * {@link DatasetChangeEvent} to all registered listeners.
 *
 * @param series  the series (<code>null</code> not permitted).
 *
 * @since 1.0.10
 */
public void removeSeries(YIntervalSeries series) {
  if (series == null) {
    throw new IllegalArgumentException("Null \'series\' argument.");
  }
  if (this.data.contains(series)) {
    series.removeChangeListener(this );
    this.data.remove(series);
    fireDatasetChanged();
  }
}

/**
 * Removes all the series from the collection and sends a
 * {@link DatasetChangeEvent} to all registered listeners.
 *
 * @since 1.0.10
 */
public void removeAllSeries() {
  // Unregister the collection as a change listener to each series in
  // the collection.
  for (int i = 0; i < this.data.size(); i++) {
    YIntervalSeries series = (YIntervalSeries) this.data.get(i);
    series.removeChangeListener(this );
  }
  this.data.clear();
  fireDatasetChanged();
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
     * Removes a series from the collection and sends a
     * {@link DatasetChangeEvent} to all registered listeners.
     *
     * @param series  the series index (zero-based).
     */
/**
     * Removes a series from the collection and sends a
     * {@link DatasetChangeEvent} to all registered listeners.
     *
     * @param series  the series index (zero-based).
     *
     * @since 1.0.10
     */
public void removeSeries(int series) {
  if ((series < 0) || (series >= getSeriesCount())) {
    throw new IllegalArgumentException("Series index out of bounds.");
  }
   [[#variable1ab5f2a0]] ts = ( [[#variable1ab5f2a0]]) this.data.get(series);
  ts.removeChangeListener(this );
  this.data.remove(series);
  fireDatasetChanged();
}

/**
     * Removes a series from the collection and sends a
     * {@link DatasetChangeEvent} to all registered listeners.
     *
     * @param series  the series (<code>null</code> not permitted).
     */
/**
     * Removes a series from the collection and sends a
     * {@link DatasetChangeEvent} to all registered listeners.
     *
     * @param series  the series (<code>null</code> not permitted).
     *
     * @since 1.0.10
     */
public void removeSeries( [[#variable1ab5f2a0]] series) {
  if (series == null) {
    throw new IllegalArgumentException("Null \'series\' argument.");
  }
  if (this.data.contains(series)) {
    series.removeChangeListener(this );
    this.data.remove(series);
    fireDatasetChanged();
  }
}

/**
     * Removes all the series from the collection and sends a
     * {@link DatasetChangeEvent} to all registered listeners.
     */
/**
     * Removes all the series from the collection and sends a
     * {@link DatasetChangeEvent} to all registered listeners.
     *
     * @since 1.0.10
     */
public void removeAllSeries() {
  // Unregister the collection as a change listener to each series in
  // the collection.
  for (int i = 0; i < this.data.size(); i++) {
     [[#variable1ab5f2a0]] series = ( [[#variable1ab5f2a0]]) this.data.get(i);
    series.removeChangeListener(this );
  }
  // Remove all the series from the collection and notify listeners.
  this.data.clear();
  fireDatasetChanged();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1ab5f2a0]]
XIntervalSeries 
12[[#1ab5f2a0]]
XYIntervalSeries 
13[[#1ab5f2a0]]
// fetch the series, remove the change listener, then remove the series.
XYSeries 
14[[#1ab5f2a0]]
YIntervalSeries