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/XYAreaRenderer.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: 4 | Number of AST nodes: 4 | |||
1 | if (plot.getOrientation() == PlotOrientation.VERTICAL) {↵ | 1 | if (plot.getOrientation() == PlotOrientation.VERTICAL) {↵ | |
2 | areaState.area.addPoint((int) transX1, (int) zero);↵ | 2 | areaState.area.addPoint((int) transX1, (int) transY1);↵ | |
3 | }↵ | 3 | }↵ | |
4 | else if (plot.getOrientation() == PlotOrientation.HORIZONTAL) {↵ | 4 | else if (plot.getOrientation() == PlotOrientation.HORIZONTAL) {↵ | |
5 | areaState.area.addPoint((int) zero, (int) transX1);↵ | 5 | areaState.area.addPoint((int) transY1, (int) transX1);↵ | |
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.5 |
Clones location | Clones are in the same method |
Number of node comparisons | 13 |
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) | 8.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
41 | if (plot.getOrientation() == PlotOrientation.VERTICAL) | 45 | if (plot.getOrientation() == PlotOrientation.VERTICAL) | |||||||||||
42 | areaState.area.addPoint((int)transX1, (int)zero); |
| 46 | areaState.area.addPoint((int)transX1, (int)transY1); | ||||||||||
43 | else if (plot.getOrientation() == PlotOrientation.HORIZONTAL) | 47 | else if (plot.getOrientation() == PlotOrientation.HORIZONTAL) | |||||||||||
44 | areaState.area.addPoint((int)zero, (int)transX1); |
| 48 | areaState.area.addPoint((int)transY1, (int)transX1); |
Row | Violation |
---|