CloneSet241


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

/**
 * Sets a range axis and sends a {@link PlotChangeEvent} to all registered
 * listeners.
 *
 * @param index  the axis index.
 * @param axis  the axis.
 */
public void setRangeAxis(int index, ValueAxis axis) {
  setRangeAxis(index, axis, true);
}

/**
 * Sets a range axis and, if requested, sends a {@link PlotChangeEvent} to
 * all registered listeners.
 *
 * @param index  the axis index.
 * @param axis  the axis.
 * @param notify  notify listeners?
 */
public void setRangeAxis(int index, ValueAxis axis, boolean notify) {
  ValueAxis existing = (ValueAxis) this.rangeAxes.get(index);
  if (existing != null) {
    existing.removeChangeListener(this );
  }
  if (axis != null) {
    axis.setPlot(this );
  }
  this.rangeAxes.set(index, axis);
  if (axis != null) {
    axis.configure();
    axis.addChangeListener(this );
  }
  if (notify) {
    fireChangeEvent();
  }
}

/**
 * Sets the range axes for this plot and sends a {@link PlotChangeEvent}
 * to all registered listeners.
 *
 * @param axes  the axes (<code>null</code> not permitted).
 *
 * @see #setDomainAxes(CategoryAxis[])
 */
public void setRangeAxes(ValueAxis[] axes) {
  for (int i = 0; i < axes.length; i++) {
    setRangeAxis(i, axes[i], false);
  }
  fireChangeEvent();
}


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

/**
 * Sets a range axis and sends a {@link PlotChangeEvent} to all registered
 * listeners.
 *
 * @param index  the axis index.
 * @param axis  the axis (<code>null</code> permitted).
 *
 * @see #getRangeAxis(int)
 */
public void setRangeAxis(int index, ValueAxis axis) {
  setRangeAxis(index, axis, true);
}

/**
 * Sets a range axis and, if requested, sends a {@link PlotChangeEvent} to
 * all registered listeners.
 *
 * @param index  the axis index.
 * @param axis  the axis (<code>null</code> permitted).
 * @param notify  notify listeners?
 *
 * @see #getRangeAxis(int)
 */
public void setRangeAxis(int index, ValueAxis axis, boolean notify) {
  ValueAxis existing = getRangeAxis(index);
  if (existing != null) {
    existing.removeChangeListener(this );
  }
  if (axis != null) {
    axis.setPlot(this );
  }
  this.rangeAxes.set(index, axis);
  if (axis != null) {
    axis.configure();
    axis.addChangeListener(this );
  }
  if (notify) {
    fireChangeEvent();
  }
}

/**
 * Sets the range axes for this plot and sends a {@link PlotChangeEvent}
 * to all registered listeners.
 *
 * @param axes  the axes (<code>null</code> not permitted).
 *
 * @see #setDomainAxes(ValueAxis[])
 */
public void setRangeAxes(ValueAxis[] axes) {
  for (int i = 0; i < axes.length; i++) {
    setRangeAxis(i, axes[i], false);
  }
  fireChangeEvent();
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
     * Sets a range axis and sends a {@link PlotChangeEvent} to all registered
     * listeners.
     *
     * @param index  the axis index.
     * @param axis  the axis (<code>null</code> permitted).
     *
     * @see #getRangeAxis(int)
     */
/**
     * Sets a range axis and sends a {@link PlotChangeEvent} to all registered
     * listeners.
     *
     * @param index  the axis index.
     * @param axis  the axis.
     */
public void setRangeAxis(int index, ValueAxis axis) {
  setRangeAxis(index, axis, true);
}

/**
     * Sets a range axis and, if requested, sends a {@link PlotChangeEvent} to
     * all registered listeners.
     *
     * @param index  the axis index.
     * @param axis  the axis (<code>null</code> permitted).
     * @param notify  notify listeners?
     *
     * @see #getRangeAxis(int)
     */
/**
     * Sets a range axis and, if requested, sends a {@link PlotChangeEvent} to
     * all registered listeners.
     *
     * @param index  the axis index.
     * @param axis  the axis.
     * @param notify  notify listeners?
     */
public void setRangeAxis(int index, ValueAxis axis, boolean notify) {
  ValueAxis existing = [[#variable1a8a2ea0]];
  if (existing != null) {
    existing.removeChangeListener(this );
  }
  if (axis != null) {
    axis.setPlot(this );
  }
  this.rangeAxes.set(index, axis);
  if (axis != null) {
    axis.configure();
    axis.addChangeListener(this );
  }
  if (notify) {
    fireChangeEvent();
  }
}

/**
     * Sets the range axes for this plot and sends a {@link PlotChangeEvent}
     * to all registered listeners.
     *
     * @param axes  the axes (<code>null</code> not permitted).
     *
     * @see #setDomainAxes(ValueAxis[])
     */
/**
     * Sets the range axes for this plot and sends a {@link PlotChangeEvent}
     * to all registered listeners.
     *
     * @param axes  the axes (<code>null</code> not permitted).
     *
     * @see #setDomainAxes(CategoryAxis[])
     */
public void setRangeAxes(ValueAxis[] axes) {
  for (int i = 0; i < axes.length; i++) {
    setRangeAxis(i, axes[i], false);
  }
  fireChangeEvent();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a8a2ea0]]
(ValueAxis) this.rangeAxes.get(index) 
12[[#1a8a2ea0]]
getRangeAxis(index)