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 | hotspot = new Polygon();↵ | 1 | hotspot = new Polygon();↵ | |
2 | hotspot.addPoint((int) ((transX0 + transX1) / 2.0), ↵ | 2 | hotspot.addPoint((int) ((transX0 + transX1) / 2.0), ↵ | |
3 | (int) transZero);↵ | 3 | (int) transZero);↵ | |
4 | hotspot.addPoint((int) ((transX0 + transX1) / 2.0), ↵ | 4 | hotspot.addPoint((int) ((transX0 + transX1) / 2.0), ↵ | |
5 | (int) ((transY0 + transY1) / 2.0));↵ | 5 | (int) ((transY0 + transY1) / 2.0));↵ | |
6 | hotspot.addPoint((int) transX1, (int) transY1);↵ | 6 | hotspot.addPoint((int) transX1, (int) transY1);↵ | |
7 | hotspot.addPoint((int) ((transX1 + transX2) / 2.0), ↵ | 7 | hotspot.addPoint((int) ((transX1 + transX2) / 2.0), ↵ | |
8 | (int) ((transY1 + transY2) / 2.0));↵ | 8 | (int) ((transY1 + transY2) / 2.0));↵ | |
9 | hotspot.addPoint((int) ((transX1 + transX2) / 2.0), ↵ | 9 | hotspot.addPoint((int) ((transX1 + transX2) / 2.0), ↵ | |
10 | (int) transZero); | 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 | 36 |
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) | 0.0 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
32 | hotspot = new Polygon(); | 31 | hotspot = new Polygon(); | |
33 | hotspot.addPoint((int)((transX0 + transX1) / 2.0), (int)transZero); | 32 | hotspot.addPoint((int)((transX0 + transX1) / 2.0), (int)transZero); | |
34 | hotspot.addPoint((int)((transX0 + transX1) / 2.0), (int)((transY0 + transY1) / 2.0)); | 33 | hotspot.addPoint((int)((transX0 + transX1) / 2.0), (int)((transY0 + transY1) / 2.0)); | |
35 | hotspot.addPoint((int)transX1, (int)transY1); | 34 | hotspot.addPoint((int)transX1, (int)transY1); | |
36 | hotspot.addPoint((int)((transX1 + transX2) / 2.0), (int)((transY1 + transY2) / 2.0)); | 35 | hotspot.addPoint((int)((transX1 + transX2) / 2.0), (int)((transY1 + transY2) / 2.0)); | |
37 | hotspot.addPoint((int)((transX1 + transX2) / 2.0), (int)transZero); | 36 | hotspot.addPoint((int)((transX1 + transX2) / 2.0), (int)transZero); |
Row | Violation |
---|