File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/BarRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYBarRenderer.java | |||
Method name: Point2D calculateLabelAnchorPoint(ItemLabelAnchor, Rectangle2D, PlotOrientation)
|
Method name: Point2D calculateLabelAnchorPoint(ItemLabelAnchor, Rectangle2D, PlotOrientation)
|
|||
Number of AST nodes: 12 | Number of AST nodes: 12 | |||
1 | if (anchor == ItemLabelAnchor.OUTSIDE7) {↵ | 1 | if (anchor == ItemLabelAnchor.OUTSIDE7) {↵ | |
2 | result = new Point2D.Double(x1, y0);↵ | 2 | result = new Point2D.Double(x1, y0);↵ | |
3 | }↵ | 3 | }↵ | |
4 | else if (anchor == ItemLabelAnchor.OUTSIDE8) {↵ | 4 | else if (anchor == ItemLabelAnchor.OUTSIDE8) {↵ | |
5 | result = new Point2D.Double(x0, y1);↵ | 5 | result = new Point2D.Double(x0, y1);↵ | |
6 | }↵ | 6 | }↵ | |
7 | else if (anchor == ItemLabelAnchor.OUTSIDE9) {↵ | 7 | else if (anchor == ItemLabelAnchor.OUTSIDE9) {↵ | |
8 | result = new Point2D.Double(x0, y3);↵ | 8 | result = new Point2D.Double(x0, y3);↵ | |
9 | }↵ | 9 | }↵ | |
10 | else if (anchor == ItemLabelAnchor.OUTSIDE10) {↵ | 10 | else if (anchor == ItemLabelAnchor.OUTSIDE10) {↵ | |
11 | result = new Point2D.Double(x0, y5);↵ | 11 | result = new Point2D.Double(x0, y5);↵ | |
12 | }↵ | 12 | }↵ | |
13 | else if (anchor == ItemLabelAnchor.OUTSIDE11) {↵ | 13 | else if (anchor == ItemLabelAnchor.OUTSIDE11) {↵ | |
14 | result = new Point2D.Double(x1, y6);↵ | 14 | result = new Point2D.Double(x1, y6);↵ | |
15 | }↵ | 15 | }↵ | |
16 | else if (anchor == ItemLabelAnchor.OUTSIDE12) {↵ | 16 | else if (anchor == ItemLabelAnchor.OUTSIDE12) {↵ | |
17 | result = new Point2D.Double(x3, y6);↵ | 17 | result = new Point2D.Double(x3, y6);↵ | |
18 | } | 18 |
| |
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) | 3.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 99 |
Number of mapped statements | 12 |
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) | 11.3 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
55 | else if (anchor == ItemLabelAnchor.OUTSIDE7) | 55 | else if (anchor == ItemLabelAnchor.OUTSIDE7) | |
56 | result = new Point2D.Double(x1, y0); | 56 | result = new Point2D.Double(x1, y0); | |
57 | else if (anchor == ItemLabelAnchor.OUTSIDE8) | 57 | else if (anchor == ItemLabelAnchor.OUTSIDE8) | |
58 | result = new Point2D.Double(x0, y1); | 58 | result = new Point2D.Double(x0, y1); | |
59 | else if (anchor == ItemLabelAnchor.OUTSIDE9) | 59 | else if (anchor == ItemLabelAnchor.OUTSIDE9) | |
60 | result = new Point2D.Double(x0, y3); | 60 | result = new Point2D.Double(x0, y3); | |
61 | else if (anchor == ItemLabelAnchor.OUTSIDE10) | 61 | else if (anchor == ItemLabelAnchor.OUTSIDE10) | |
62 | result = new Point2D.Double(x0, y5); | 62 | result = new Point2D.Double(x0, y5); | |
63 | else if (anchor == ItemLabelAnchor.OUTSIDE11) | 63 | else if (anchor == ItemLabelAnchor.OUTSIDE11) | |
64 | result = new Point2D.Double(x1, y6); | 64 | result = new Point2D.Double(x1, y6); | |
65 | else if (anchor == ItemLabelAnchor.OUTSIDE12) | 65 | else if (anchor == ItemLabelAnchor.OUTSIDE12) | |
66 | result = new Point2D.Double(x3, y6); | 66 | result = new Point2D.Double(x3, y6); |
Row | Violation |
---|