CloneSet 245

# CloneSet245

Previous CloneSet | Next CloneSet | Back to Main Report

Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length]
--- | --- | --- | --- | ---
19 | 4 | 1 | 0.983 | method_declaration

Clone Abstraction | Parameter Bindings

Clone Instance (Click to see clone) | Line Count | Source Line | Source File
--- | --- | --- | ---

1

19

316

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/ContourPlot.java

2

19

708

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/MeterPlot.java

3

18

602

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/PiePlot.java

4

19

432

    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 Abstraction | Parameter Count: 1 | Parameter 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
--- | --- | --- | ---

1

1

`[[#1a8c27a0]]`

    ContourDataset

1

2

`[[#1a8c27a0]]`

    ValueDataset

1

3

`[[#1a8c27a0]]`

    PieDataset

1

4

`[[#1a8c27a0]]`

    ValueDataset