File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/StandardXYItemRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYLineAndShapeRenderer.java | |||
Method name: void drawItem(Graphics2D, XYItemRendererState, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
|
Method name: void drawPrimaryLine(XYItemRendererState, Graphics2D, XYPlot, XYDataset, int, int, int, ValueAxis, ValueAxis, Rectangle2D)
|
|||
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 | else if (orientation == PlotOrientation.VERTICAL) {↵ | 5 | else if (orientation == PlotOrientation.VERTICAL) {↵ | |
6 | state.workingLine.setLine(transX0, transY0,↵ | 6 | state.workingLine.setLine(transX0, transY0,↵ | |
7 | transX1, transY1);↵ | 7 | transX1, transY1);↵ | |
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.4 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 13 |
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.3 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
59 | if (orientation == PlotOrientation.HORIZONTAL) | 20 | if (orientation == PlotOrientation.HORIZONTAL) | |
60 | state.workingLine.setLine(transY0, transX0, transY1, transX1); | 21 | state.workingLine.setLine(transY0, transX0, transY1, transX1); | |
61 | else if (orientation == PlotOrientation.VERTICAL) | 22 | else if (orientation == PlotOrientation.VERTICAL) | |
62 | state.workingLine.setLine(transX0, transY0, transX1, transY1); | 23 | state.workingLine.setLine(transX0, transY0, transX1, transY1); |
Row | Violation |
---|