CloneSet228


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
39230.988class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
139199
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/CombinedDomainCategoryPlot.java
239297
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/CombinedDomainXYPlot.java
Next
Last
Clone Instance
1
Line Count
39
Source Line
199
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/CombinedDomainCategoryPlot.java

/**
 * Removes a subplot from the combined chart.  Potentially, this removes
 * some unique categories from the overall union of the datasets...so the
 * domain axis is reconfigured, then a {@link PlotChangeEvent} is sent to
 * all registered listeners.
 *
 * @param subplot  the subplot (<code>null</code> not permitted).
 */
public void remove(CategoryPlot subplot) {
  if (subplot == null) {
    throw new IllegalArgumentException("Null \'subplot\' argument.");
  }
  int position = -1;
  int size = this.subplots.size();
  int i = 0;
  while (position == -1 && i < size) {
    if (this.subplots.get(i) == subplot) {
      position = i;
    }
    i++;
  }
  if (position != -1) {
    this.subplots.remove(position);
    subplot.setParent(null);
    subplot.removeChangeListener(this );
    this.totalWeight -= subplot.getWeight();
    CategoryAxis domain = getDomainAxis();
    if (domain != null) {
      domain.configure();
    }
    fireChangeEvent();
  }
}

/**
 * Returns the list of subplots.  The returned list may be empty, but is
 * never <code>null</code>.
 *
 * @return An unmodifiable list of subplots.
 */
public List getSubplots() {
  if (this.subplots != null) {
    return Collections.unmodifiableList(this.subplots);
  }
  else {
    return Collections.EMPTY_LIST;
  }
}


First
Previous
Clone Instance
2
Line Count
39
Source Line
297
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/CombinedDomainXYPlot.java

/**
 * Removes a subplot from the combined chart and sends a
 * {@link PlotChangeEvent} to all registered listeners.
 *
 * @param subplot  the subplot (<code>null</code> not permitted).
 */
public void remove(XYPlot subplot) {
  if (subplot == null) {
    throw new IllegalArgumentException(" Null \'subplot\' argument.");
  }
  int position = -1;
  int size = this.subplots.size();
  int i = 0;
  while (position == -1 && i < size) {
    if (this.subplots.get(i) == subplot) {
      position = i;
    }
    i++;
  }
  if (position != -1) {
    this.subplots.remove(position);
    subplot.setParent(null);
    subplot.removeChangeListener(this );
    this.totalWeight -= subplot.getWeight();
    ValueAxis domain = getDomainAxis();
    if (domain != null) {
      domain.configure();
    }
    fireChangeEvent();
  }
}

/**
 * Returns the list of subplots.  The returned list may be empty, but is
 * never <code>null</code>.
 *
 * @return An unmodifiable list of subplots.
 */
public List getSubplots() {
  if (this.subplots != null) {
    return Collections.unmodifiableList(this.subplots);
  }
  else {
    return Collections.EMPTY_LIST;
  }
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
     * Removes a subplot from the combined chart.  Potentially, this removes
     * some unique categories from the overall union of the datasets...so the
     * domain axis is reconfigured, then a {@link PlotChangeEvent} is sent to
     * all registered listeners.
     *
     * @param subplot  the subplot (<code>null</code> not permitted).
     */
/**
     * Removes a subplot from the combined chart and sends a
     * {@link PlotChangeEvent} to all registered listeners.
     *
     * @param subplot  the subplot (<code>null</code> not permitted).
     */
public void remove( [[#variable1a85b3e0]] subplot) {
  if (subplot == null) {
    throw new IllegalArgumentException( [[#variable1a85b3a0]]);
  }
  int position = -1;
  int size = this.subplots.size();
  int i = 0;
  while (position == -1 && i < size) {
    if (this.subplots.get(i) == subplot) {
      position = i;
    }
    i++;
  }
  if (position != -1) {
    this.subplots.remove(position);
    subplot.setParent(null);
    subplot.removeChangeListener(this );
    this.totalWeight -= subplot.getWeight();
     [[#variable1a85b340]] domain = getDomainAxis();
    if (domain != null) {
      domain.configure();
    }
    fireChangeEvent();
  }
}

/**
     * Returns the list of subplots.  The returned list may be empty, but is
     * never <code>null</code>.
     *
     * @return An unmodifiable list of subplots.
     */
public List getSubplots() {
  if (this.subplots != null) {
    return Collections.unmodifiableList(this.subplots);
  }
  else {
    return Collections.EMPTY_LIST;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a85b3e0]]
CategoryPlot 
12[[#1a85b3e0]]
XYPlot 
21[[#1a85b3a0]]
"Null \'subplot\' argument." 
22[[#1a85b3a0]]
" Null \'subplot\' argument." 
31[[#1a85b340]]
CategoryAxis 
32[[#1a85b340]]
ValueAxis