File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/PiePlot3D.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/PiePlot3D.java | |||
Method name: void drawSide(Graphics2D, Rectangle2D, Arc2D, Area, Area, Paint, Paint, Stroke, boolean, boolean)
|
Method name: void drawSide(Graphics2D, Rectangle2D, Arc2D, Area, Area, Paint, Paint, Stroke, boolean, boolean)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | if (drawFront) {↵ | 1 | if (drawFront) {↵ | |
2 | Area side2 = new Area(new Rectangle2D.Double(↵ | 2 | Area side1 = new Area(new Rectangle2D.Double(↵ | |
3 | arc.getEndPoint().getX(), plotArea.getY(),↵ | 3 | arc.getStartPoint().getX(), plotArea.getY(),↵ | |
4 | plotArea.getMaxX() - arc.getEndPoint().getX(),↵ | 4 | plotArea.getMaxX() - arc.getStartPoint().getX(),↵ | |
5 | plotArea.getHeight()));↵ | 5 | plotArea.getHeight()));↵ | |
6 | side2.intersect(front);↵ | 6 | side1.intersect(front);↵ | |
7 | g2.setPaint(paint);↵ | 7 | g2.setPaint(paint);↵ | |
8 | g2.fill(side2);↵ | 8 | g2.fill(side1);↵ | |
9 | g2.setPaint(outlinePaint);↵ | 9 | g2.setPaint(outlinePaint);↵ | |
10 | g2.draw(side2);↵ | 10 | g2.draw(side1);↵ | |
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.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 56 |
Number of mapped statements | 7 |
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.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
83 | if (drawFront) | 124 | if (drawFront) | |||||||||||||||||
84 | Area side2 = new Area(new Rectangle2D.Double(arc.getEndPoint().getX(), plotArea.getY(), plotArea.getMaxX() - arc.getEndPoint().getX(), plotArea.getHeight())); |
| 125 | Area side1 = new Area(new Rectangle2D.Double(arc.getStartPoint().getX(), plotArea.getY(), plotArea.getMaxX() - arc.getStartPoint().getX(), plotArea.getHeight())); | ||||||||||||||||
85 | side2.intersect(front); |
| 126 | side1.intersect(front); | ||||||||||||||||
86 | g2.setPaint(paint); | 127 | g2.setPaint(paint); | |||||||||||||||||
87 | g2.fill(side2); |
| 128 | g2.fill(side1); | ||||||||||||||||
88 | g2.setPaint(outlinePaint); | 129 | g2.setPaint(outlinePaint); | |||||||||||||||||
89 | g2.draw(side2); |
| 130 | g2.draw(side1); |
Row | Violation |
---|