File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYBoxAndWhiskerRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYBoxAndWhiskerRenderer.java | |||
Method name: void drawHorizontalItem(Graphics2D, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
|
Method name: void drawVerticalItem(Graphics2D, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (yAverage != null) {↵ | 1 | if (yAverage != null) {↵ | |
2 | double aRadius = width / 4;↵ | 2 | aRadius = width / 4;↵ | |
3 | // here we check that the average marker will in fact be visible↵ | 3 | // here we check that the average marker will in fact be visible↵ | |
4 | // before drawing it...↵ | 4 | // before drawing it...↵ | |
5 | if ((yyAverage > (dataArea.getMinX() - aRadius)) ↵ | 5 | if ((yyAverage > (dataArea.getMinY() - aRadius)) ↵ | |
6 | && (yyAverage < (dataArea.getMaxX() + aRadius))) {↵ | 6 | && (yyAverage < (dataArea.getMaxY() + aRadius))) {↵ | |
7 | Ellipse2D.Double avgEllipse = new Ellipse2D.Double(↵ | 7 | Ellipse2D.Double avgEllipse = new Ellipse2D.Double(xx - aRadius, ↵ | |
8 | yyAverage - aRadius, xx - aRadius, aRadius * 2, ↵ | 8 | yyAverage - aRadius, ↵ | |
9 | aRadius * 2);↵ | 9 | aRadius * 2, aRadius * 2);↵ | |
10 | g2.fill(avgEllipse);↵ | 10 | g2.fill(avgEllipse);↵ | |
11 | g2.draw(avgEllipse);↵ | 11 | g2.draw(avgEllipse);↵ | |
12 | }↵ | 12 | }↵ | |
13 | } | 13 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.4 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 20 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 2.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
54 | if (yAverage != null) | 58 | if (yAverage != null) | ||||||||||||||
55 | double aRadius = width / 4; | | |||||||||||||||
| 59 | aRadius = width / 4; | |||||||||||||||
56 | if ((yyAverage > (dataArea.getMinX() - aRadius)) && (yyAverage < (dataArea.getMaxX() + aRadius))) |
| 60 | if ((yyAverage > (dataArea.getMinY() - aRadius)) && (yyAverage < (dataArea.getMaxY() + aRadius))) | |||||||||||||
57 | Ellipse2D.Double avgEllipse = new Ellipse2D.Double(yyAverage - aRadius, xx - aRadius, aRadius * 2, aRadius * 2); |
| 61 | Ellipse2D.Double avgEllipse = new Ellipse2D.Double(xx - aRadius, yyAverage - aRadius, aRadius * 2, aRadius * 2); | |||||||||||||
58 | g2.fill(avgEllipse); | 62 | g2.fill(avgEllipse); | ||||||||||||||
59 | g2.draw(avgEllipse); | 63 | g2.draw(avgEllipse); |
Row | Violation |
---|