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: 7 | Number of AST nodes: 7 | |||
1 | if (orientation == PlotOrientation.VERTICAL) {↵ | 1 | if (orientation == PlotOrientation.VERTICAL) {↵ | |
2 | left.moveTo(transX1, transStack1);↵ | 2 | left.moveTo(transX1, transStack1);↵ | |
3 | left.lineTo(transX1, transY1);↵ | 3 | left.lineTo(transX1, transY1);↵ | |
4 | left.lineTo(transXLeft, transStackLeft);↵ | 4 | left.lineTo(transXLeft, transStackLeft);↵ | |
5 | }↵ | 5 | }↵ | |
6 | else {↵ | 6 | else {↵ | |
7 | left.moveTo(transStack1, transX1);↵ | 7 | left.moveTo(transStack1, transX1);↵ | |
8 | left.lineTo(transY1, transX1);↵ | 8 | left.lineTo(transY1, transX1);↵ | |
9 | left.lineTo(transStackLeft, transXLeft);↵ | 9 | left.lineTo(transStackLeft, transXLeft);↵ | |
10 | } | 10 |
| |
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 | 49 |
Number of mapped statements | 7 |
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) | 25.3 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
58 | if (orientation == PlotOrientation.VERTICAL) | 92 | if (orientation == PlotOrientation.VERTICAL) | |
59 | left.moveTo(transX1, transStack1); | 93 | left.moveTo(transX1, transStack1); | |
60 | left.lineTo(transX1, transY1); | 94 | left.lineTo(transX1, transY1); | |
61 | left.lineTo(transXLeft, transStackLeft); | 95 | left.lineTo(transXLeft, transStackLeft); | |
else | else | |||
62 | left.moveTo(transStack1, transX1); | 96 | left.moveTo(transStack1, transX1); | |
63 | left.lineTo(transY1, transX1); | 97 | left.lineTo(transY1, transX1); | |
64 | left.lineTo(transStackLeft, transXLeft); | 98 | left.lineTo(transStackLeft, transXLeft); |
Row | Violation |
---|