File path: /jfreechart-1.0.10/experimental/org/jfree/experimental/chart/renderer/xy/XYSmoothLineAndShapeRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/StandardXYItemRenderer.java | |||
Method name: void drawPrimaryLine(XYItemRendererState, Graphics2D, XYPlot, XYDataset, int, int, int, ValueAxis, ValueAxis, Rectangle2D)
|
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.HORIZONTAL) {↵ | 1 | if (orientation == PlotOrientation.HORIZONTAL) {↵ | |
2 | state.workingLine.setLine(transY0, transX0,↵ | 2 | state.workingLine.setLine(transY0, transX0,↵ | |
3 | transY1, transX1);↵ | 3 | transY1, transX1);↵ | |
4 | }↵ | 4 | ↵ | |
5 | }↵ | |||
5 | else if (orientation == PlotOrientation.VERTICAL) {↵ | 6 | else if (orientation == PlotOrientation.VERTICAL) {↵ | |
6 | state.workingLine.setLine(transX0, transY0,↵ | 7 | state.workingLine.setLine(transX0, transY0,↵ | |
7 | transX1, transY1);↵ | 8 | transX1, transY1);↵ | |
8 | } | 9 | } | |
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.7 |
Clones location | Clones are in different classes having the same super class |
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) | 9.5 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
43 | if (orientation == PlotOrientation.HORIZONTAL) | 59 | if (orientation == PlotOrientation.HORIZONTAL) | |
44 | state.workingLine.setLine(transY0, transX0, transY1, transX1); | 60 | state.workingLine.setLine(transY0, transX0, transY1, transX1); | |
45 | else if (orientation == PlotOrientation.VERTICAL) | 61 | else if (orientation == PlotOrientation.VERTICAL) | |
46 | state.workingLine.setLine(transX0, transY0, transX1, transY1); | 62 | state.workingLine.setLine(transX0, transY0, transX1, transY1); |
Row | Violation |
---|