CloneSet332


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

/**
 * Handles a 'click' on the plot.
 *
 * @param x  x-coordinate of the click.
 * @param y  y-coordinate of the click.
 * @param info  information about the plot's dimensions.
 *
 */
public void handleClick(int x, int y, PlotRenderingInfo info) {
  Rectangle2D dataArea = info.getDataArea();
  if (dataArea.contains(x, y)) {
    for (int i = 0; i < this.subplots.size(); i++) {
      CategoryPlot subplot = (CategoryPlot) this.subplots.get(i);
      PlotRenderingInfo subplotInfo = info.getSubplotInfo(i);
      subplot.handleClick(x, y, subplotInfo);
    }
  }
}

/**
 * Receives a {@link PlotChangeEvent} and responds by notifying all
 * listeners.
 *
 * @param event  the event.
 */
public void plotChanged(PlotChangeEvent event) {
  notifyListeners(event);
}


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

/**
 * Handles a 'click' on the plot by updating the anchor values.
 *
 * @param x  x-coordinate, where the click occured.
 * @param y  y-coordinate, where the click occured.
 * @param info  object containing information about the plot dimensions.
 */
public void handleClick(int x, int y, PlotRenderingInfo info) {
  Rectangle2D dataArea = info.getDataArea();
  if (dataArea.contains(x, y)) {
    for (int i = 0; i < this.subplots.size(); i++) {
      XYPlot subplot = (XYPlot) this.subplots.get(i);
      PlotRenderingInfo subplotInfo = info.getSubplotInfo(i);
      subplot.handleClick(x, y, subplotInfo);
    }
  }
}

/**
 * Receives a {@link PlotChangeEvent} and responds by notifying all
 * listeners.
 *
 * @param event  the event.
 */
public void plotChanged(PlotChangeEvent event) {
  notifyListeners(event);
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
     * Handles a 'click' on the plot.
     *
     * @param x  x-coordinate of the click.
     * @param y  y-coordinate of the click.
     * @param info  information about the plot's dimensions.
     *
     */
/**
     * Handles a 'click' on the plot by updating the anchor values.
     *
     * @param x  x-coordinate, where the click occured.
     * @param y  y-coordinate, where the click occured.
     * @param info  object containing information about the plot dimensions.
     */
public void handleClick(int x, int y, PlotRenderingInfo info) {
  Rectangle2D dataArea = info.getDataArea();
  if (dataArea.contains(x, y)) {
    for (int i = 0; i < this.subplots.size(); i++) {
       [[#variable1a90a560]] subplot = ( [[#variable1a90a560]]) this.subplots.get(i);
      PlotRenderingInfo subplotInfo = info.getSubplotInfo(i);
      subplot.handleClick(x, y, subplotInfo);
    }
  }
}

/**
     * Receives a {@link PlotChangeEvent} and responds by notifying all
     * listeners.
     *
     * @param event  the event.
     */
public void plotChanged(PlotChangeEvent event) {
  notifyListeners(event);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a90a560]]
CategoryPlot 
12[[#1a90a560]]
XYPlot