File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYStepAreaRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYStepAreaRenderer.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: 4 | Number of AST nodes: 4 | |||
1 | if (orientation == PlotOrientation.VERTICAL) {↵ | 1 | if (orientation == PlotOrientation.VERTICAL) {↵ | |
2 | ↵ | 2 | // Add the last point (x,0)↵ | |
3 | this.pArea.addPoint((int) transX1, (int) transY0);↵ | 3 | this.pArea.addPoint((int) transX1, (int) transY2);↵ | |
4 | }↵ | 4 | }↵ | |
5 | else if (orientation == PlotOrientation.HORIZONTAL) {↵ | 5 | else if (orientation == PlotOrientation.HORIZONTAL) {↵ | |
6 | ↵ | 6 | // Add the last point (x,0)↵ | |
7 | this.pArea.addPoint((int) transY0, (int) transX1);↵ | 7 | this.pArea.addPoint((int) transY2, (int) transX1);↵ | |
8 | } | 8 |
| |
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.5 |
Clones location | Clones are in the same method |
Number of node comparisons | 14 |
Number of mapped statements | 4 |
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) | 10.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
38 | if (orientation == PlotOrientation.VERTICAL) | 64 | if (orientation == PlotOrientation.VERTICAL) | |||||||||||
39 | this.pArea.addPoint((int)transX1, (int)transY0); |
| 65 | this.pArea.addPoint((int)transX1, (int)transY2); | ||||||||||
40 | else if (orientation == PlotOrientation.HORIZONTAL) | 66 | else if (orientation == PlotOrientation.HORIZONTAL) | |||||||||||
41 | this.pArea.addPoint((int)transY0, (int)transX1); |
| 67 | this.pArea.addPoint((int)transY2, (int)transX1); |
Row | Violation |
---|