CloneSet380


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
45210.983class_body_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1452648
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java
2452565
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java
Next
Last
Clone Instance
1
Line Count
45
Source Line
2648
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java

/**
 * Adds an annotation to the plot and, if requested, sends a
 * {@link PlotChangeEvent} to all registered listeners.
 *
 * @param annotation  the annotation (<code>null</code> not permitted).
 * @param notify  notify listeners?
 *
 * @since 1.0.10
 */
public void addAnnotation(CategoryAnnotation annotation, boolean notify) {
  if (annotation == null) {
    throw new IllegalArgumentException("Null \'annotation\' argument.");
  }
  this.annotations.add(annotation);
  if (notify) {
    fireChangeEvent();
  }
}

/**
 * Removes an annotation from the plot and sends a {@link PlotChangeEvent}
 * to all registered listeners.
 *
 * @param annotation  the annotation (<code>null</code> not permitted).
 *
 * @return A boolean (indicates whether or not the annotation was removed).
 *
 * @see #addAnnotation(CategoryAnnotation)
 */
public boolean removeAnnotation(CategoryAnnotation annotation) {
  return removeAnnotation(annotation, true);
}

/**
 * Removes an annotation from the plot and, if requested, sends a
 * {@link PlotChangeEvent} to all registered listeners.
 *
 * @param annotation  the annotation (<code>null</code> not permitted).
 * @param notify  notify listeners?
 *
 * @return A boolean (indicates whether or not the annotation was removed).
 *
 * @since 1.0.10
 */
public boolean removeAnnotation(CategoryAnnotation annotation, boolean notify) {
  if (annotation == null) {
    throw new IllegalArgumentException("Null \'annotation\' argument.");
  }
  boolean removed = this.annotations.remove(annotation);
  if (removed && notify) {
    fireChangeEvent();
  }
  return removed;
}


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

/**
 * Adds an annotation to the plot and, if requested, sends a
 * {@link PlotChangeEvent} to all registered listeners.
 *
 * @param annotation  the annotation (<code>null</code> not permitted).
 * @param notify  notify listeners?
 *
 * @since 1.0.10
 */
public void addAnnotation(XYAnnotation annotation, boolean notify) {
  if (annotation == null) {
    throw new IllegalArgumentException("Null \'annotation\' argument.");
  }
  this.annotations.add(annotation);
  if (notify) {
    fireChangeEvent();
  }
}

/**
 * Removes an annotation from the plot and sends a {@link PlotChangeEvent}
 * to all registered listeners.
 *
 * @param annotation  the annotation (<code>null</code> not permitted).
 *
 * @return A boolean (indicates whether or not the annotation was removed).
 *
 * @see #addAnnotation(XYAnnotation)
 * @see #getAnnotations()
 */
public boolean removeAnnotation(XYAnnotation annotation) {
  return removeAnnotation(annotation, true);
}

/**
 * Removes an annotation from the plot and sends a {@link PlotChangeEvent}
 * to all registered listeners.
 *
 * @param annotation  the annotation (<code>null</code> not permitted).
 * @param notify  notify listeners?
 *
 * @return A boolean (indicates whether or not the annotation was removed).
 *
 * @since 1.0.10
 */
public boolean removeAnnotation(XYAnnotation annotation, boolean notify) {
  if (annotation == null) {
    throw new IllegalArgumentException("Null \'annotation\' argument.");
  }
  boolean removed = this.annotations.remove(annotation);
  if (removed && notify) {
    fireChangeEvent();
  }
  return removed;
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
     * Adds an annotation to the plot and, if requested, sends a
     * {@link PlotChangeEvent} to all registered listeners.
     *
     * @param annotation  the annotation (<code>null</code> not permitted).
     * @param notify  notify listeners?
     *
     * @since 1.0.10
     */
public void addAnnotation( [[#variable1a9730c0]] annotation, boolean notify) {
  if (annotation == null) {
    throw new IllegalArgumentException("Null \'annotation\' argument.");
  }
  this.annotations.add(annotation);
  if (notify) {
    fireChangeEvent();
  }
}

/**
     * Removes an annotation from the plot and sends a {@link PlotChangeEvent}
     * to all registered listeners.
     *
     * @param annotation  the annotation (<code>null</code> not permitted).
     *
     * @return A boolean (indicates whether or not the annotation was removed).
     *
     * @see #addAnnotation(CategoryAnnotation)
     */
/**
     * Removes an annotation from the plot and sends a {@link PlotChangeEvent}
     * to all registered listeners.
     *
     * @param annotation  the annotation (<code>null</code> not permitted).
     *
     * @return A boolean (indicates whether or not the annotation was removed).
     *
     * @see #addAnnotation(XYAnnotation)
     * @see #getAnnotations()
     */
public boolean removeAnnotation( [[#variable1a9730c0]] annotation) {
  return removeAnnotation(annotation, true);
}

/**
     * Removes an annotation from the plot and, if requested, sends a
     * {@link PlotChangeEvent} to all registered listeners.
     *
     * @param annotation  the annotation (<code>null</code> not permitted).
     * @param notify  notify listeners?
     *
     * @return A boolean (indicates whether or not the annotation was removed).
     *
     * @since 1.0.10
     */
/**
     * Removes an annotation from the plot and sends a {@link PlotChangeEvent}
     * to all registered listeners.
     *
     * @param annotation  the annotation (<code>null</code> not permitted).
     * @param notify  notify listeners?
     *
     * @return A boolean (indicates whether or not the annotation was removed).
     *
     * @since 1.0.10
     */
public boolean removeAnnotation( [[#variable1a9730c0]] annotation, boolean notify) {
  if (annotation == null) {
    throw new IllegalArgumentException("Null \'annotation\' argument.");
  }
  boolean removed = this.annotations.remove(annotation);
  if (removed && notify) {
    fireChangeEvent();
  }
  return removed;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a9730c0]]
CategoryAnnotation 
12[[#1a9730c0]]
XYAnnotation