CloneSet101


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
78230.981class_body
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17856
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/experimental/org/jfree/experimental/chart/plot/CombinedCategoryPlot.java
27856
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/experimental/org/jfree/experimental/chart/plot/CombinedXYPlot.java
Next
Last
Clone Instance
1
Line Count
78
Source Line
56
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/experimental/org/jfree/experimental/chart/plot/CombinedCategoryPlot.java

{
  /**
   * Creates a new instance with the specified axes.
   *
   * @param domainAxis  the x-axis.
   * @param rangeAxis  the y-axis.
   */
  public CombinedCategoryPlot(CategoryAxis domainAxis, ValueAxis rangeAxis) {
    super(domainAxis);
    super.setGap(10.0);
    super.setRangeAxis(rangeAxis);
  }

  /**
   * Adds a new subplot with weight <code>1</code>.
   *
   * @param subplot  the subplot.
   */
  public void add(CategoryPlot subplot) {
    this.add(subplot, 1);
  }

  /**
   * Adds a new subplot with the specified weight.
   *
   * @param subplot  the subplot.
   * @param weight  the weight for the subplot.
   */
  public void add(CategoryPlot subplot, int weight) {
    super.add(subplot, weight);
    ValueAxis l_range = super.getRangeAxis();
    subplot.setRangeAxis(0, l_range, false);
    super.setRangeAxis(l_range);
    if (null == l_range) {
      return;
    }
    l_range.configure();
  }

  /**
   * Returns the bounds of the data values that will be plotted against
   * the specified axis.
   *
   * @param axis  the axis.
   */
  public Range getDataRange(ValueAxis axis) {
    Range l_result = null;
    Iterator l_itr = getSubplots().iterator();
    while (l_itr.hasNext()) {
      CategoryPlot l_subplot = (CategoryPlot) l_itr.next();
      l_result = Range.combine(l_result, l_subplot.getDataRange(axis));
    }
    return l_result;
  }

  /**
   * Sets the range axis that is shared by all the subplots.
   *
   * @param axis  the axis.
   */
  public void setRangeAxis(ValueAxis axis) {
    Iterator l_itr = getSubplots().iterator();
    while (l_itr.hasNext()) {
      CategoryPlot l_subplot = (CategoryPlot) l_itr.next();
      l_subplot.setRangeAxis(0, axis, false);
    }
    super.setRangeAxis(axis);
    if (null == axis) {
      return;
    }
    axis.configure();
  }
}


First
Previous
Clone Instance
2
Line Count
78
Source Line
56
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/experimental/org/jfree/experimental/chart/plot/CombinedXYPlot.java

{
  /**
   * Creates a new instance with the specified axes.
   *
   * @param domainAxis  the x-axis.
   * @param rangeAxis  the y-axis.
   */
  public CombinedXYPlot(ValueAxis domainAxis, ValueAxis rangeAxis) {
    super(domainAxis);
    super.setGap(10.0);
    super.setRangeAxis(rangeAxis);
  }

  /**
   * Adds a new subplot with weight <code>1</code>.
   *
   * @param subplot  the subplot.
   */
  public void add(XYPlot subplot) {
    this.add(subplot, 1);
  }

  /**
   * Adds a new subplot with the specified weight.
   *
   * @param subplot  the subplot.
   * @param weight  the weight for the subplot.
   */
  public void add(XYPlot subplot, int weight) {
    super.add(subplot, weight);
    ValueAxis l_range = super.getRangeAxis();
    subplot.setRangeAxis(0, l_range, false);
    super.setRangeAxis(l_range);
    if (null == l_range) {
      return;
    }
    l_range.configure();
  }

  /**
   * Returns the bounds of the data values that will be plotted against
   * the specified axis.
   *
   * @param axis  the axis.
   */
  public Range getDataRange(ValueAxis axis) {
    Range l_result = null;
    Iterator l_itr = getSubplots().iterator();
    while (l_itr.hasNext()) {
      XYPlot l_subplot = (XYPlot) l_itr.next();
      l_result = Range.combine(l_result, l_subplot.getDataRange(axis));
    }
    return l_result;
  }

  /**
   * Sets the range axis that is shared by all the subplots.
   *
   * @param axis  the axis.
   */
  public void setRangeAxis(ValueAxis axis) {
    Iterator l_itr = getSubplots().iterator();
    while (l_itr.hasNext()) {
      XYPlot l_subplot = (XYPlot) l_itr.next();
      l_subplot.setRangeAxis(0, axis, false);
    }
    super.setRangeAxis(axis);
    if (null == axis) {
      return;
    }
    axis.configure();
  }
}


Clone AbstractionParameter Count: 3Parameter Bindings

{
  /**
       * Creates a new instance with the specified axes.
       *
       * @param domainAxis  the x-axis.
       * @param rangeAxis  the y-axis.
       */
  public [[#variable1ab19e60]]( [[#variable1ab19e00]] domainAxis, ValueAxis rangeAxis) {
    super(domainAxis);
    super.setGap(10.0);
    super.setRangeAxis(rangeAxis);
  }

  /**
       * Adds a new subplot with weight <code>1</code>.
       *
       * @param subplot  the subplot.
       */
  public void add( [[#variable1ab19ce0]] subplot) {
    this.add(subplot, 1);
  }

  /**
       * Adds a new subplot with the specified weight.
       *
       * @param subplot  the subplot.
       * @param weight  the weight for the subplot.
       */
  public void add( [[#variable1ab19ce0]] subplot, int weight) {
    super.add(subplot, weight);
    ValueAxis l_range = super.getRangeAxis();
    subplot.setRangeAxis(0, l_range, false);
    super.setRangeAxis(l_range);
    if (null == l_range) {
      return;
    }
    l_range.configure();
  }

  /**
       * Returns the bounds of the data values that will be plotted against
       * the specified axis.
       *
       * @param axis  the axis.
       */
  public Range getDataRange(ValueAxis axis) {
    Range l_result = null;
    Iterator l_itr = getSubplots().iterator();
    while (l_itr.hasNext()) {
       [[#variable1ab19ce0]] l_subplot = ( [[#variable1ab19ce0]]) l_itr.next();
      l_result = Range.combine(l_result, l_subplot.getDataRange(axis));
    }
    return l_result;
  }

  /**
       * Sets the range axis that is shared by all the subplots.
       *
       * @param axis  the axis.
       */
  public void setRangeAxis(ValueAxis axis) {
    Iterator l_itr = getSubplots().iterator();
    while (l_itr.hasNext()) {
       [[#variable1ab19ce0]] l_subplot = ( [[#variable1ab19ce0]]) l_itr.next();
      l_subplot.setRangeAxis(0, axis, false);
    }
    super.setRangeAxis(axis);
    if (null == axis) {
      return;
    }
    axis.configure();
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1ab19e60]]
CombinedCategoryPlot 
12[[#1ab19e60]]
CombinedXYPlot 
21[[#1ab19e00]]
CategoryAxis 
22[[#1ab19e00]]
ValueAxis 
31[[#1ab19ce0]]
CategoryPlot 
32[[#1ab19ce0]]
XYPlot