File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/StackedXYAreaRenderer2.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/StackedXYAreaRenderer2.java | |||
Method name: void drawItem(Graphics2D, XYItemRendererState, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
|
Method name: void drawItem(Graphics2D, XYItemRendererState, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
|
|||
Number of AST nodes: 9 | Number of AST nodes: 9 | |||
1 | if (orientation == PlotOrientation.VERTICAL) {↵ | 1 | if (orientation == PlotOrientation.VERTICAL) {↵ | |
2 | left.moveTo(transX1, transY1);↵ | 2 | right.moveTo(transX1, transStack1);↵ | |
3 | left.lineTo(transX1, transStack1);↵ | 3 | right.lineTo(transX1, transY1);↵ | |
4 | left.lineTo(transXLeft, transStackLeft);↵ | 4 | right.lineTo(transXRight, transYRight);↵ | |
5 | left.lineTo(transXLeft, transYLeft);↵ | 5 | right.lineTo(transXRight, transStackRight);↵ | |
6 | }↵ | 6 | }↵ | |
7 | else {↵ | 7 | else {↵ | |
8 | left.moveTo(transY1, transX1);↵ | 8 | right.moveTo(transStack1, transX1);↵ | |
9 | left.lineTo(transStack1, transX1);↵ | 9 | right.lineTo(transY1, transX1);↵ | |
10 | left.lineTo(transStackLeft, transXLeft);↵ | 10 | right.lineTo(transYRight, transXRight);↵ | |
11 | left.lineTo(transYLeft, transXLeft);↵ | 11 | right.lineTo(transStackRight, transXRight);↵ | |
12 | } | 12 |
| |
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.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 82 |
Number of mapped statements | 9 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 9.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
48 | if (orientation == PlotOrientation.VERTICAL) | 70 | if (orientation == PlotOrientation.VERTICAL) | |||||||||||||||||
49 | left.moveTo(transX1, transY1); |
| 71 | right.moveTo(transX1, transStack1); | ||||||||||||||||
50 | left.lineTo(transX1, transStack1); |
| 72 | right.lineTo(transX1, transY1); | ||||||||||||||||
51 | left.lineTo(transXLeft, transStackLeft); |
| 73 | right.lineTo(transXRight, transYRight); | ||||||||||||||||
52 | left.lineTo(transXLeft, transYLeft); |
| 74 | right.lineTo(transXRight, transStackRight); | ||||||||||||||||
else | else | |||||||||||||||||||
53 | left.moveTo(transY1, transX1); |
| 75 | right.moveTo(transStack1, transX1); | ||||||||||||||||
54 | left.lineTo(transStack1, transX1); |
| 76 | right.lineTo(transY1, transX1); | ||||||||||||||||
55 | left.lineTo(transStackLeft, transXLeft); |
| 77 | right.lineTo(transYRight, transXRight); | ||||||||||||||||
56 | left.lineTo(transYLeft, transXLeft); |
| 78 | right.lineTo(transStackRight, transXRight); |
Row | Violation |
---|