CloneSet245


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19410.983method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
119316
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/ContourPlot.java
219708
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/MeterPlot.java
318602
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/PiePlot.java
419432
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/ThermometerPlot.java
Next
Last
Clone Instance
1
Line Count
19
Source Line
316
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/ContourPlot.java

/**
 * Sets the dataset for the plot, replacing the existing dataset if there
 * is one.
 * 
 * @param dataset  the dataset (<code>null</code> permitted).
 */
public void setDataset(ContourDataset dataset) {
  // if there is an existing dataset, remove the plot from the list of 
  // change listeners...
  ContourDataset existing = this.dataset;
  if (existing != null) {
    existing.removeChangeListener(this );
  }
  // set the new dataset, and register the chart as a change listener...
  this.dataset = dataset;
  if (dataset != null) {
    setDatasetGroup(dataset.getGroup());
    dataset.addChangeListener(this );
  }
  // send a dataset change event to self...
  DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
  datasetChanged(event);
}


Next
Previous
Clone Instance
2
Line Count
19
Source Line
708
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/MeterPlot.java

/**
 * Sets the dataset for the plot, replacing the existing dataset if there 
 * is one, and triggers a {@link PlotChangeEvent}.
 * 
 * @param dataset  the dataset (<code>null</code> permitted).
 * 
 * @see #getDataset()
 */
public void setDataset(ValueDataset dataset) {
  // if there is an existing dataset, remove the plot from the list of 
  // change listeners...
  ValueDataset existing = this.dataset;
  if (existing != null) {
    existing.removeChangeListener(this );
  }
  // set the new dataset, and register the chart as a change listener...
  this.dataset = dataset;
  if (dataset != null) {
    setDatasetGroup(dataset.getGroup());
    dataset.addChangeListener(this );
  }
  // send a dataset change event to self...
  DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
  datasetChanged(event);
}


Next
Previous
Clone Instance
3
Line Count
18
Source Line
602
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/PiePlot.java

/**
 * Sets the dataset and sends a {@link DatasetChangeEvent} to 'this'.
 *
 * @param dataset  the dataset (<code>null</code> permitted).
 * 
 * @see #getDataset()
 */
public void setDataset(PieDataset dataset) {
  // if there is an existing dataset, remove the plot from the list of 
  // change listeners...
  PieDataset existing = this.dataset;
  if (existing != null) {
    existing.removeChangeListener(this );
  }
  // set the new dataset, and register the chart as a change listener...
  this.dataset = dataset;
  if (dataset != null) {
    setDatasetGroup(dataset.getGroup());
    dataset.addChangeListener(this );
  }
  // send a dataset change event to self...
  DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
  datasetChanged(event);
}


First
Previous
Clone Instance
4
Line Count
19
Source Line
432
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/ThermometerPlot.java

/**
 * Sets the dataset for the plot, replacing the existing dataset if there 
 * is one, and sends a {@link PlotChangeEvent} to all registered listeners.
 *
 * @param dataset  the dataset (<code>null</code> permitted).
 * 
 * @see #getDataset()
 */
public void setDataset(ValueDataset dataset) {
  // if there is an existing dataset, remove the plot from the list 
  // of change listeners...
  ValueDataset existing = this.dataset;
  if (existing != null) {
    existing.removeChangeListener(this );
  }
  // set the new dataset, and register the chart as a change listener...
  this.dataset = dataset;
  if (dataset != null) {
    setDatasetGroup(dataset.getGroup());
    dataset.addChangeListener(this );
  }
  // send a dataset change event to self...
  DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
  datasetChanged(event);
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
     * Sets the dataset for the plot, replacing the existing dataset if there
     * is one.
     * 
     * @param dataset  the dataset (<code>null</code> permitted).
     */
/**
     * Sets the dataset for the plot, replacing the existing dataset if there 
     * is one, and triggers a {@link PlotChangeEvent}.
     * 
     * @param dataset  the dataset (<code>null</code> permitted).
     * 
     * @see #getDataset()
     */
/**
     * Sets the dataset and sends a {@link DatasetChangeEvent} to 'this'.
     *
     * @param dataset  the dataset (<code>null</code> permitted).
     * 
     * @see #getDataset()
     */
/**
     * Sets the dataset for the plot, replacing the existing dataset if there 
     * is one, and sends a {@link PlotChangeEvent} to all registered listeners.
     *
     * @param dataset  the dataset (<code>null</code> permitted).
     * 
     * @see #getDataset()
     */
public void setDataset( [[#variable1a8c27a0]] dataset) {
   [[#variable1a8c27a0]] existing = this.dataset;
  if (existing != null) {
    existing.removeChangeListener(this );
  }
  // set the new dataset, and register the chart as a change listener...
  this.dataset = dataset;
  if (dataset != null) {
    setDatasetGroup(dataset.getGroup());
    dataset.addChangeListener(this );
  }
  // send a dataset change event to self...
  DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
  datasetChanged(event);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a8c27a0]]
ContourDataset 
12[[#1a8c27a0]]
ValueDataset 
13[[#1a8c27a0]]
PieDataset 
14[[#1a8c27a0]]
ValueDataset