File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/PiePlot.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/PiePlot.java | |||
Method name: void drawLeftLabel(Graphics2D, PiePlotState, PieLabelRecord)
|
Method name: void drawRightLabel(Graphics2D, PiePlotState, PieLabelRecord)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (style.equals(PieLabelLinkStyle.CUBIC_CURVE)) {↵ | 1 | if (style.equals(PieLabelLinkStyle.CUBIC_CURVE)) {↵ | |
2 | CubicCurve2D c = new CubicCurve2D .Float();↵ | 2 | CubicCurve2D c = new CubicCurve2D .Float();↵ | |
3 | c.setCurve(targetX, targetY, anchorX, anchorY, elbowX, elbowY, ↵ | 3 | c.setCurve(targetX, targetY, anchorX, anchorY, elbowX, elbowY, ↵ | |
4 | linkX, linkY);↵ | 4 | linkX, linkY);↵ | |
5 | g2.draw(c);↵ | 5 | g2.draw(c);↵ | |
6 | } | 6 |
| |
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 declared in the same class |
Number of node comparisons | 17 |
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) | 1.1 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
23 | else if (style.equals(PieLabelLinkStyle.CUBIC_CURVE)) | 23 | else if (style.equals(PieLabelLinkStyle.CUBIC_CURVE)) | |
24 | CubicCurve2D c = new CubicCurve2D.Float(); | 24 | CubicCurve2D c = new CubicCurve2D.Float(); | |
25 | c.setCurve(targetX, targetY, anchorX, anchorY, elbowX, elbowY, linkX, linkY); | 25 | c.setCurve(targetX, targetY, anchorX, anchorY, elbowX, elbowY, linkX, linkY); | |
26 | g2.draw(c); | 26 | g2.draw(c); |
Row | Violation |
---|