File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/PiePlot.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/PiePlot3D.java | |||
Method name: void drawPie(Graphics2D, Rectangle2D, PlotRenderingInfo)
|
Method name: void draw(Graphics2D, Rectangle2D, Point2D, PlotState, PlotRenderingInfo)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | double hGap = plotArea.getWidth() * this.interiorGap;↵ | 1 | double hGap = plotArea.getWidth() * getInteriorGap();↵ | |
2 | double vGap = plotArea.getHeight() * this.interiorGap;↵ | 2 | double vGap = plotArea.getHeight() * getInteriorGap↵ | |
3 | ↵ | 3 | ();↵ | |
4 | double igx1 = plotArea.getX() + hGap;↵ | 4 | double igx1 = plotArea.getX() + hGap;↵ | |
5 | double igx2 = plotArea.getMaxX() - hGap;↵ | 5 | double igx2 = plotArea.getMaxX() - hGap;↵ | |
6 | double igy1 = plotArea.getY() + vGap;↵ | 6 | double igy1 = plotArea.getY() + vGap;↵ | |
7 | double igy2 = plotArea.getMaxY() - vGap;↵ | 7 | double igy2 = plotArea.getMaxY() - vGap;↵ | |
8 | g2.setPaint(Color.gray);↵ | 8 | g2.setPaint(Color.lightGray);↵ | |
9 | g2.draw(new Rectangle2D.Double(igx1, igy1, igx2 - igx1, ↵ | 9 | g2.draw(new Rectangle2D.Double(igx1, igy1, igx2 - igx1, ↵ | |
10 | igy2 - igy1)); | 10 |
| |
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 64 |
Number of mapped statements | 8 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8 | double hGap = plotArea.getWidth() * this.interiorGap; |
| 17 | double hGap = plotArea.getWidth() * getInteriorGap(); | |||||||||||||
9 | double vGap = plotArea.getHeight() * this.interiorGap; |
| 18 | double vGap = plotArea.getHeight() * getInteriorGap(); | |||||||||||||
10 | double igx1 = plotArea.getX() + hGap; | 19 | double igx1 = plotArea.getX() + hGap; | ||||||||||||||
11 | double igx2 = plotArea.getMaxX() - hGap; | 20 | double igx2 = plotArea.getMaxX() - hGap; | ||||||||||||||
12 | double igy1 = plotArea.getY() + vGap; | 21 | double igy1 = plotArea.getY() + vGap; | ||||||||||||||
13 | double igy2 = plotArea.getMaxY() - vGap; | 22 | double igy2 = plotArea.getMaxY() - vGap; | ||||||||||||||
14 | g2.setPaint(Color.gray); |
| 23 | g2.setPaint(Color.lightGray); | |||||||||||||
15 | g2.draw(new Rectangle2D.Double(igx1, igy1, igx2 - igx1, igy2 - igy1)); | 24 | g2.draw(new Rectangle2D.Double(igx1, igy1, igx2 - igx1, igy2 - igy1)); |
Row | Violation |
---|