CloneSet334


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20220.990method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1201478
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/category/AbstractCategoryItemRenderer.java
220745
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/AbstractXYItemRenderer.java
Next
Last
Clone Instance
1
Line Count
20
Source Line
1478
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/category/AbstractCategoryItemRenderer.java

/**
 * Returns a (possibly empty) collection of legend items for the series
 * that this renderer is responsible for drawing.
 *
 * @return The legend item collection (never <code>null</code>).
 *
 * @see #getLegendItem(int, int)
 */
public LegendItemCollection getLegendItems() {
  if (this.plot == null) {
    return new LegendItemCollection();
  }
  LegendItemCollection result = new LegendItemCollection();
  int index = this.plot.getIndexOf(this );
  CategoryDataset dataset = this.plot.getDataset(index);
  if (dataset != null) {
    int seriesCount = dataset.getRowCount();
    for (int i = 0; i < seriesCount; i++) {
      if (isSeriesVisibleInLegend(i)) {
        LegendItem item = getLegendItem(index, i);
        if (item != null) {
          result.add(item);
        }
      }
    }
  }
  return result;
}


First
Previous
Clone Instance
2
Line Count
20
Source Line
745
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/AbstractXYItemRenderer.java

/**
 * Returns a (possibly empty) collection of legend items for the series
 * that this renderer is responsible for drawing.
 *
 * @return The legend item collection (never <code>null</code>).
 */
public LegendItemCollection getLegendItems() {
  if (this.plot == null) {
    return new LegendItemCollection();
  }
  LegendItemCollection result = new LegendItemCollection();
  int index = this.plot.getIndexOf(this );
  XYDataset dataset = this.plot.getDataset(index);
  if (dataset != null) {
    int seriesCount = dataset.getSeriesCount();
    for (int i = 0; i < seriesCount; i++) {
      if (isSeriesVisibleInLegend(i)) {
        LegendItem item = getLegendItem(index, i);
        if (item != null) {
          result.add(item);
        }
      }
    }
  }
  return result;
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
     * Returns a (possibly empty) collection of legend items for the series
     * that this renderer is responsible for drawing.
     *
     * @return The legend item collection (never <code>null</code>).
     *
     * @see #getLegendItem(int, int)
     */
/**
     * Returns a (possibly empty) collection of legend items for the series
     * that this renderer is responsible for drawing.
     *
     * @return The legend item collection (never <code>null</code>).
     */
public LegendItemCollection getLegendItems() {
  if (this.plot == null) {
    return new LegendItemCollection();
  }
  LegendItemCollection result = new LegendItemCollection();
  int index = this.plot.getIndexOf(this );
   [[#variable1a911020]] dataset = this.plot.getDataset(index);
  if (dataset != null) {
    int seriesCount = dataset. [[#variable1a910fc0]]();
    for (int i = 0; i < seriesCount; i++) {
      if (isSeriesVisibleInLegend(i)) {
        LegendItem item = getLegendItem(index, i);
        if (item != null) {
          result.add(item);
        }
      }
    }
  }
  return result;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a911020]]
CategoryDataset 
12[[#1a911020]]
XYDataset 
21[[#1a910fc0]]
getRowCount 
22[[#1a910fc0]]
getSeriesCount