if (!this.domainCrosshairLockedOnData && anchor != null) { double xx; if (orient == PlotOrientation.VERTICAL) { xx = xAxis.java2DToValue(anchor.getX(), dataArea, xAxisEdge); } else { xx = xAxis.java2DToValue(anchor.getY(), dataArea, xAxisEdge); } crosshairState.setCrosshairX(xx); }
if (!this.rangeCrosshairLockedOnData && anchor != null) { double yy; if (orient == PlotOrientation.VERTICAL) { yy = yAxis.java2DToValue(anchor.getY(), dataArea, yAxisEdge); } else { yy = yAxis.java2DToValue(anchor.getX(), dataArea, yAxisEdge); } crosshairState.setCrosshairY(yy); }
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if (!this.domainCrosshairLockedOnData && anchor != null) {
1
if (!this.rangeCrosshairLockedOnData && anchor != null) {
2
            double xx;
2
            double yy;
3
            if (orient == PlotOrientation.VERTICAL) {
3
            if (orient == PlotOrientation.VERTICAL) {
4
                xx = xAxis.java2DToValue(anchor.getX(), dataArea, xAxisEdge);
4
                yy = yAxis.java2DToValue(anchor.getY(), dataArea, yAxisEdge);
5
            }
5
            }
6
            else {
6
 else {
7
                xx = xAxis.java2DToValue(anchor.getY(), dataArea, xAxisEdge);
7
                yy = yAxis.java2DToValue(anchor.getX(), dataArea, yAxisEdge);
8
            }
8
            }
9
            crosshairState.setCrosshairX(xx);
9
            crosshairState.setCrosshairY(yy);
10
        }
10
        }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0