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 | right.moveTo(transX1, transStack1);↵ | 2 | left.moveTo(transX1, transY1);↵ | |
3 | right.lineTo(transX1, transY1);↵ | 3 | left.lineTo(transX1, transStack1);↵ | |
4 | right.lineTo(transXRight, transYRight);↵ | 4 | left.lineTo(transXLeft, transStackLeft);↵ | |
5 | right.lineTo(transXRight, transStackRight);↵ | 5 | left.lineTo(transXLeft, transYLeft);↵ | |
6 | }↵ | 6 | }↵ | |
7 | else {↵ | 7 | else {↵ | |
8 | right.moveTo(transStack1, transX1);↵ | 8 | left.moveTo(transY1, transX1);↵ | |
9 | right.lineTo(transY1, transX1);↵ | 9 | left.lineTo(transStack1, transX1);↵ | |
10 | right.lineTo(transYRight, transXRight);↵ | 10 | left.lineTo(transStackLeft, transXLeft);↵ | |
11 | right.lineTo(transStackRight, transXRight);↵ | 11 | left.lineTo(transYLeft, transXLeft);↵ | |
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 | 81 |
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) | 47.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
70 | if (orientation == PlotOrientation.VERTICAL) | 102 | if (orientation == PlotOrientation.VERTICAL) | |||||||||||||||||
71 | right.moveTo(transX1, transStack1); |
| 103 | left.moveTo(transX1, transY1); | ||||||||||||||||
72 | right.lineTo(transX1, transY1); |
| 104 | left.lineTo(transX1, transStack1); | ||||||||||||||||
73 | right.lineTo(transXRight, transYRight); |
| 105 | left.lineTo(transXLeft, transStackLeft); | ||||||||||||||||
74 | right.lineTo(transXRight, transStackRight); |
| 106 | left.lineTo(transXLeft, transYLeft); | ||||||||||||||||
else | else | |||||||||||||||||||
75 | right.moveTo(transStack1, transX1); |
| 107 | left.moveTo(transY1, transX1); | ||||||||||||||||
76 | right.lineTo(transY1, transX1); |
| 108 | left.lineTo(transStack1, transX1); | ||||||||||||||||
77 | right.lineTo(transYRight, transXRight); |
| 109 | left.lineTo(transStackLeft, transXLeft); | ||||||||||||||||
78 | right.lineTo(transStackRight, transXRight); |
| 110 | left.lineTo(transYLeft, transXLeft); |
Row | Violation |
---|