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 drawRangeMarker(Graphics2D, CategoryPlot, ValueAxis, Marker, Rectangle2D)
|
Method name: void drawRangeMarker(Graphics2D, XYPlot, ValueAxis, Marker, Rectangle2D)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | if (orientation == PlotOrientation.HORIZONTAL) {↵ | 1 | if (orientation == PlotOrientation.HORIZONTAL) {↵ | |
2 | // clip left and right bounds to data area↵ | 2 | // clip left and right bounds to data area↵ | |
3 | low = Math.max(low, dataArea.getMinX());↵ | 3 | low = Math.max(low, dataArea.getMinX());↵ | |
4 | high = Math.min(high, dataArea.getMaxX());↵ | 4 | high = Math.min(high, dataArea.getMaxX());↵ | |
5 | rect = new Rectangle2D.Double(low,↵ | 5 | rect = new Rectangle2D.Double(low,↵ | |
6 | dataArea.getMinY(), high - low,↵ | 6 | dataArea.getMinY(), high - low,↵ | |
7 | dataArea.getHeight());↵ | 7 | dataArea.getHeight());↵ | |
8 | }↵ | 8 | }↵ | |
9 | else if (orientation == PlotOrientation.VERTICAL) {↵ | 9 | else if (orientation == PlotOrientation.VERTICAL) {↵ | |
10 | // clip top and bottom bounds to data area↵ | 10 | // clip top and bottom bounds to data area↵ | |
11 | low = Math.max(low, dataArea.getMinY());↵ | 11 | low = Math.max(low, dataArea.getMinY());↵ | |
12 | high = Math.min(high, dataArea.getMaxY());↵ | 12 | high = Math.min(high, dataArea.getMaxY());↵ | |
13 | rect = new Rectangle2D.Double(dataArea.getMinX(),↵ | 13 | rect = new Rectangle2D.Double(dataArea.getMinX(),↵ | |
14 | low, dataArea.getWidth(),↵ | 14 | low, dataArea.getWidth(),↵ | |
15 | high - low);↵ | 15 | high - low);↵ | |
16 | } | 16 |
| |
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 | 50 |
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) | 20.3 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
43 | if (orientation == PlotOrientation.HORIZONTAL) | 41 | if (orientation == PlotOrientation.HORIZONTAL) | |
44 | low = Math.max(low, dataArea.getMinX()); | 42 | low = Math.max(low, dataArea.getMinX()); | |
45 | high = Math.min(high, dataArea.getMaxX()); | 43 | high = Math.min(high, dataArea.getMaxX()); | |
46 | rect = new Rectangle2D.Double(low, dataArea.getMinY(), high - low, dataArea.getHeight()); | 44 | rect = new Rectangle2D.Double(low, dataArea.getMinY(), high - low, dataArea.getHeight()); | |
47 | else if (orientation == PlotOrientation.VERTICAL) | 45 | else if (orientation == PlotOrientation.VERTICAL) | |
48 | low = Math.max(low, dataArea.getMinY()); | 46 | low = Math.max(low, dataArea.getMinY()); | |
49 | high = Math.min(high, dataArea.getMaxY()); | 47 | high = Math.min(high, dataArea.getMaxY()); | |
50 | rect = new Rectangle2D.Double(dataArea.getMinX(), low, dataArea.getWidth(), high - low); | 48 | rect = new Rectangle2D.Double(dataArea.getMinX(), low, dataArea.getWidth(), high - low); |
Row | Violation |
---|