File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYAreaRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYAreaRenderer2.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: 6 | Number of AST nodes: 6 | |||
1 | if (item > 0) {↵ | 1 | if (item > 0) {↵ | |
2 | if (plot.getOrientation() == PlotOrientation.VERTICAL) {↵ | 2 | if (plot.getOrientation() == PlotOrientation.VERTICAL) {↵ | |
3 | areaState.line.setLine(transX0, transY0, transX1, ↵ | 3 | state.workingLine.setLine(transX0, transY0, transX1, ↵ | |
4 | transY1);↵ | 4 | transY1);↵ | |
5 | }↵ | 5 | }↵ | |
6 | else if (plot.getOrientation() == PlotOrientation.HORIZONTAL) {↵ | 6 | else if (plot.getOrientation() == PlotOrientation.HORIZONTAL) {↵ | |
7 | areaState.line.setLine(transY0, transX0, transY1, ↵ | 7 | state.workingLine.setLine(transY0, transX0, transY1, ↵ | |
8 | transX1);↵ | 8 | transX1);↵ | |
9 | }↵ | 9 | }↵ | |
10 | g2.draw(areaState.line);↵ | 10 | g2.draw(state.workingLine);↵ | |
11 | } | 11 |
| |
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.6 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 18 |
Number of mapped statements | 6 |
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) | 1.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
63 | if (item > 0) | 43 | if (item > 0) | |||||||||||||||||
64 | if (plot.getOrientation() == PlotOrientation.VERTICAL) | 44 | if (plot.getOrientation() == PlotOrientation.VERTICAL) | |||||||||||||||||
65 | areaState.line.setLine(transX0, transY0, transX1, transY1); |
| 45 | state.workingLine.setLine(transX0, transY0, transX1, transY1); | ||||||||||||||||
66 | else if (plot.getOrientation() == PlotOrientation.HORIZONTAL) | 46 | else if (plot.getOrientation() == PlotOrientation.HORIZONTAL) | |||||||||||||||||
67 | areaState.line.setLine(transY0, transX0, transY1, transX1); |
| 47 | state.workingLine.setLine(transY0, transX0, transY1, transX1); | ||||||||||||||||
68 | g2.draw(areaState.line); |
| 48 | g2.draw(state.workingLine); |
Row | Violation |
---|