CloneSet197


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
70210.972class_body_declarations[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1701159
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java
260457
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/dial/DialPlot.java
Next
Last
Clone Instance
1
Line Count
70
Source Line
1159
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java

/**
 * Returns the primary dataset for the plot.
 *
 * @return The primary dataset (possibly <code>null</code>).
 *
 * @see #setDataset(CategoryDataset)
 */
public CategoryDataset getDataset() {
  return getDataset(0);
}

/**
 * Returns the dataset at the given index.
 *
 * @param index  the dataset index.
 *
 * @return The dataset (possibly <code>null</code>).
 *
 * @see #setDataset(int, CategoryDataset)
 */
public CategoryDataset getDataset(int index) {
  CategoryDataset result = null;
  if (this.datasets.size() > index) {
    result = (CategoryDataset) this.datasets.get(index);
  }
  return result;
}

/**
 * Sets the dataset for the plot, replacing the existing dataset, if there
 * is one.  This method also calls the
 * {@link #datasetChanged(DatasetChangeEvent)} method, which adjusts the
 * axis ranges if necessary and sends a {@link PlotChangeEvent} to all
 * registered listeners.
 *
 * @param dataset  the dataset (<code>null</code> permitted).
 *
 * @see #getDataset()
 */
public void setDataset(CategoryDataset dataset) {
  setDataset(0, dataset);
}

/**
 * Sets a dataset for the plot.
 *
 * @param index  the dataset index.
 * @param dataset  the dataset (<code>null</code> permitted).
 *
 * @see #getDataset(int)
 */
public void setDataset(int index, CategoryDataset dataset) {
  CategoryDataset existing = (CategoryDataset) this.datasets.get(index);
  if (existing != null) {
    existing.removeChangeListener(this );
  }
  this.datasets.set(index, dataset);
  if (dataset != null) {
    dataset.addChangeListener(this );
  }
  // send a dataset change event to self...
  DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
  datasetChanged(event);
}

/**
 * Returns the number of datasets.
 *
 * @return The number of datasets.
 *
 * @since 1.0.2
 */
public int getDatasetCount() {
  return this.datasets.size();
}


First
Previous
Clone Instance
2
Line Count
60
Source Line
457
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/dial/DialPlot.java

/**
 * Returns the primary dataset for the plot.
 *
 * @return The primary dataset (possibly <code>null</code>).
 */
public ValueDataset getDataset() {
  return getDataset(0);
}

/**
 * Returns the dataset at the given index.
 *
 * @param index  the dataset index.
 *
 * @return The dataset (possibly <code>null</code>).
 */
public ValueDataset getDataset(int index) {
  ValueDataset result = null;
  if (this.datasets.size() > index) {
    result = (ValueDataset) this.datasets.get(index);
  }
  return result;
}

/**
 * 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).
 */
public void setDataset(ValueDataset dataset) {
  setDataset(0, dataset);
}

/**
 * Sets a dataset for the plot.
 *
 * @param index  the dataset index.
 * @param dataset  the dataset (<code>null</code> permitted).
 */
public void setDataset(int index, ValueDataset dataset) {
  ValueDataset existing = (ValueDataset) this.datasets.get(index);
  if (existing != null) {
    existing.removeChangeListener(this );
  }
  this.datasets.set(index, dataset);
  if (dataset != null) {
    dataset.addChangeListener(this );
  }
  // send a dataset change event to self...
  DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
  datasetChanged(event);
}

/**
 * Returns the number of datasets.
 *
 * @return The number of datasets.
 */
public int getDatasetCount() {
  return this.datasets.size();
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
     * Returns the primary dataset for the plot.
     *
     * @return The primary dataset (possibly <code>null</code>).
     *
     * @see #setDataset(CategoryDataset)
     */
/**
     * Returns the primary dataset for the plot.
     *
     * @return The primary dataset (possibly <code>null</code>).
     */
public [[#variable1a8060e0]] getDataset() {
  return getDataset(0);
}

/**
     * Returns the dataset at the given index.
     *
     * @param index  the dataset index.
     *
     * @return The dataset (possibly <code>null</code>).
     *
     * @see #setDataset(int, CategoryDataset)
     */
/**
     * Returns the dataset at the given index.
     *
     * @param index  the dataset index.
     *
     * @return The dataset (possibly <code>null</code>).
     */
public [[#variable1a8060e0]] getDataset(int index) {
   [[#variable1a8060e0]] result = null;
  if (this.datasets.size() > index) {
    result = ( [[#variable1a8060e0]]) this.datasets.get(index);
  }
  return result;
}

/**
     * Sets the dataset for the plot, replacing the existing dataset, if there
     * is one.  This method also calls the
     * {@link #datasetChanged(DatasetChangeEvent)} method, which adjusts the
     * axis ranges if necessary and sends a {@link PlotChangeEvent} to all
     * registered listeners.
     *
     * @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).
     */
public void setDataset( [[#variable1a8060e0]] dataset) {
  setDataset(0, dataset);
}

/**
     * Sets a dataset for the plot.
     *
     * @param index  the dataset index.
     * @param dataset  the dataset (<code>null</code> permitted).
     *
     * @see #getDataset(int)
     */
/**
     * Sets a dataset for the plot.
     *
     * @param index  the dataset index.
     * @param dataset  the dataset (<code>null</code> permitted).
     */
public void setDataset(int index, [[#variable1a8060e0]] dataset) {
   [[#variable1a8060e0]] existing = ( [[#variable1a8060e0]]) this.datasets.get(index);
  if (existing != null) {
    existing.removeChangeListener(this );
  }
  this.datasets.set(index, dataset);
  if (dataset != null) {
    dataset.addChangeListener(this );
  }
  // send a dataset change event to self...
  DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
  datasetChanged(event);
}

/**
     * Returns the number of datasets.
     *
     * @return The number of datasets.
     *
     * @since 1.0.2
     */
/**
     * Returns the number of datasets.
     *
     * @return The number of datasets.
     */
public int getDatasetCount() {
  return this.datasets.size();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a8060e0]]
CategoryDataset 
12[[#1a8060e0]]
ValueDataset