File path: /jfreechart-1.0.10/src/org/jfree/chart/title/ShortTextTitle.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/title/TextTitle.java | |||
Method name: Size2D arrange(Graphics2D, RectangleConstraint)
|
Method name: Size2D arrange(Graphics2D, RectangleConstraint)
|
|||
Number of AST nodes: 21 | Number of AST nodes: 21 | |||
1 | if (w == LengthConstraintType.NONE) {↵ | 1 | if (w == LengthConstraintType.NONE) {↵ | |
2 | if (h == LengthConstraintType.NONE) {↵ | 2 | if (h == LengthConstraintType.NONE) {↵ | |
3 | contentSize = arrangeNN(g2);↵ | 3 | contentSize = arrangeNN(g2);↵ | |
4 | }↵ | 4 | }↵ | |
5 | else if (h == LengthConstraintType.RANGE) {↵ | 5 | else if (h == LengthConstraintType.RANGE) {↵ | |
6 | throw new RuntimeException("Not yet implemented.");↵ | 6 | throw new RuntimeException("Not yet implemented.");↵ | |
7 | }↵ | 7 | }↵ | |
8 | else if (h == LengthConstraintType.FIXED) {↵ | 8 | else if (h == LengthConstraintType.FIXED) {↵ | |
9 | throw new RuntimeException("Not yet implemented.");↵ | 9 | throw new RuntimeException("Not yet implemented.");↵ | |
10 | }↵ | 10 | }↵ | |
11 | }↵ | 11 | }↵ | |
12 | else if (w == LengthConstraintType.RANGE) {↵ | 12 | else if (w == LengthConstraintType.RANGE) {↵ | |
13 | if (h == LengthConstraintType.NONE) {↵ | 13 | if (h == LengthConstraintType.NONE) {↵ | |
14 | contentSize = arrangeRN(g2, cc.getWidthRange());↵ | 14 | contentSize = arrangeRN(g2, cc.getWidthRange());↵ | |
15 | }↵ | 15 | }↵ | |
16 | else if (h == LengthConstraintType.RANGE) {↵ | 16 | else if (h == LengthConstraintType.RANGE) {↵ | |
17 | contentSize = arrangeRR(g2, cc.getWidthRange(),↵ | 17 | contentSize = arrangeRR(g2, cc.getWidthRange(),↵ | |
18 | cc.getHeightRange());↵ | 18 | cc.getHeightRange());↵ | |
19 | }↵ | 19 | }↵ | |
20 | else if (h == LengthConstraintType.FIXED) {↵ | 20 | else if (h == LengthConstraintType.FIXED) {↵ | |
21 | throw new RuntimeException("Not yet implemented.");↵ | 21 | throw new RuntimeException("Not yet implemented.");↵ | |
22 | }↵ | 22 | }↵ | |
23 | }↵ | 23 | }↵ | |
24 | else if (w == LengthConstraintType.FIXED) {↵ | 24 | else if (w == LengthConstraintType.FIXED) {↵ | |
25 | if (h == LengthConstraintType.NONE) {↵ | 25 | if (h == LengthConstraintType.NONE) {↵ | |
26 | contentSize = arrangeFN(g2, cc.getWidth());↵ | 26 | contentSize = arrangeFN(g2, cc.getWidth());↵ | |
27 | }↵ | 27 | }↵ | |
28 | else if (h == LengthConstraintType.RANGE) {↵ | 28 | else if (h == LengthConstraintType.RANGE) {↵ | |
29 | throw new RuntimeException("Not yet implemented.");↵ | 29 | throw new RuntimeException("Not yet implemented.");↵ | |
30 | }↵ | 30 | }↵ | |
31 | else if (h == LengthConstraintType.FIXED) {↵ | 31 | else if (h == LengthConstraintType.FIXED) {↵ | |
32 | throw new RuntimeException("Not yet implemented.");↵ | 32 | throw new RuntimeException("Not yet implemented.");↵ | |
33 | }↵ | 33 | }↵ | |
34 | } | 34 |
| |
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) | 5.8 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 171 |
Number of mapped statements | 21 |
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) | 58.1 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
5 | if (w == LengthConstraintType.NONE) | 5 | if (w == LengthConstraintType.NONE) | |
6 | if (h == LengthConstraintType.NONE) | 6 | if (h == LengthConstraintType.NONE) | |
7 | contentSize = arrangeNN(g2); | 7 | contentSize = arrangeNN(g2); | |
8 | else if (h == LengthConstraintType.RANGE) | 8 | else if (h == LengthConstraintType.RANGE) | |
9 | throw new RuntimeException("Not yet implemented."); | 9 | throw new RuntimeException("Not yet implemented."); | |
10 | else if (h == LengthConstraintType.FIXED) | 10 | else if (h == LengthConstraintType.FIXED) | |
11 | throw new RuntimeException("Not yet implemented."); | 11 | throw new RuntimeException("Not yet implemented."); | |
12 | else if (w == LengthConstraintType.RANGE) | 12 | else if (w == LengthConstraintType.RANGE) | |
13 | if (h == LengthConstraintType.NONE) | 13 | if (h == LengthConstraintType.NONE) | |
14 | contentSize = arrangeRN(g2, cc.getWidthRange()); | 14 | contentSize = arrangeRN(g2, cc.getWidthRange()); | |
15 | else if (h == LengthConstraintType.RANGE) | 15 | else if (h == LengthConstraintType.RANGE) | |
16 | contentSize = arrangeRR(g2, cc.getWidthRange(), cc.getHeightRange()); | 16 | contentSize = arrangeRR(g2, cc.getWidthRange(), cc.getHeightRange()); | |
17 | else if (h == LengthConstraintType.FIXED) | 17 | else if (h == LengthConstraintType.FIXED) | |
18 | throw new RuntimeException("Not yet implemented."); | 18 | throw new RuntimeException("Not yet implemented."); | |
19 | else if (w == LengthConstraintType.FIXED) | 19 | else if (w == LengthConstraintType.FIXED) | |
20 | if (h == LengthConstraintType.NONE) | 20 | if (h == LengthConstraintType.NONE) | |
21 | contentSize = arrangeFN(g2, cc.getWidth()); | 21 | contentSize = arrangeFN(g2, cc.getWidth()); | |
22 | else if (h == LengthConstraintType.RANGE) | 22 | else if (h == LengthConstraintType.RANGE) | |
23 | throw new RuntimeException("Not yet implemented."); | 23 | throw new RuntimeException("Not yet implemented."); | |
24 | else if (h == LengthConstraintType.FIXED) | 24 | else if (h == LengthConstraintType.FIXED) | |
25 | throw new RuntimeException("Not yet implemented."); | 25 | throw new RuntimeException("Not yet implemented."); |
Row | Violation |
---|