File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/AbstractCategoryItemRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/AbstractXYItemRenderer.java | |||
Method name: void drawDomainGridline(Graphics2D, CategoryPlot, Rectangle2D, double)
|
Method name: void drawRangeMarker(Graphics2D, XYPlot, ValueAxis, Marker, Rectangle2D)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (orientation == PlotOrientation.HORIZONTAL) {↵ | 1 | if (orientation == PlotOrientation.HORIZONTAL) {↵ | |
2 | line = new Line2D.Double(dataArea.getMinX(), value,↵ | 2 | line = new Line2D.Double(v, dataArea.getMinY(), v,↵ | |
3 | dataArea.getMaxX(), value);↵ | 3 | dataArea.getMaxY());↵ | |
4 | }↵ | 4 | }↵ | |
5 | else if (orientation == PlotOrientation.VERTICAL) {↵ | 5 | else if (orientation == PlotOrientation.VERTICAL) {↵ | |
6 | line = new Line2D.Double(value, dataArea.getMinY(), value,↵ | 6 | line = new Line2D.Double(dataArea.getMinX(), v↵ | |
7 | ,↵ | |||
7 | dataArea.getMaxY());↵ | 8 | dataArea.getMaxX(), v);↵ | |
8 | } | 9 | } | |
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 different classes having the same super class |
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) | 1.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | if (orientation == PlotOrientation.HORIZONTAL) |
| 12 | if (orientation == PlotOrientation.VERTICAL) | |||||||||||||
4 | line = new Line2D.Double(dataArea.getMinX(), value, dataArea.getMaxX(), value); |
| 13 | line = new Line2D.Double(dataArea.getMinX(), v, dataArea.getMaxX(), v); | |||||||||||||
5 | else if (orientation == PlotOrientation.VERTICAL) |
| 10 | else if (orientation == PlotOrientation.HORIZONTAL) | |||||||||||||
6 | line = new Line2D.Double(value, dataArea.getMinY(), value, dataArea.getMaxY()); |
| 11 | line = new Line2D.Double(v, dataArea.getMinY(), v, dataArea.getMaxY()); |
Row | Violation |
---|