File path: /jfreechart-1.0.10/src/org/jfree/chart/title/LegendGraphic.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/title/PaintScaleLegend.java | |||
Method name: Size2D arrange(Graphics2D, RectangleConstraint)
|
Method name: Size2D arrange(Graphics2D, RectangleConstraint)
|
|||
Number of AST nodes: 14 | Number of AST nodes: 14 | |||
1 | if (w == LengthConstraintType.RANGE) {↵ | 1 | if (w == LengthConstraintType.RANGE) {↵ | |
2 | if (h == LengthConstraintType.NONE) {↵ | 2 | if (h == LengthConstraintType.NONE) {↵ | |
3 | throw new RuntimeException("Not yet implemented.");↵ | 3 | throw new RuntimeException("Not yet implemented."); ↵ | |
4 | }↵ | 4 | }↵ | |
5 | else if (h == LengthConstraintType.RANGE) {↵ | 5 | else if (h == LengthConstraintType.RANGE) {↵ | |
6 | throw new RuntimeException("Not yet implemented."↵ | 6 | contentSize = arrangeRR(g2, cc.getWidthRange(), ↵ | |
7 | );↵ | 7 | cc.getHeightRange()); ↵ | |
8 | }↵ | 8 | }↵ | |
9 | else if (h == LengthConstraintType.FIXED) {↵ | 9 | else if (h == LengthConstraintType.FIXED) {↵ | |
10 | throw new RuntimeException("Not yet implemented.");↵ | 10 | throw new RuntimeException("Not yet implemented.");↵ | |
11 | }↵ | 11 | }↵ | |
12 | }↵ | 12 | }↵ | |
13 | else if (w == LengthConstraintType.FIXED) {↵ | 13 | else if (w == LengthConstraintType.FIXED) {↵ | |
14 | if (h == LengthConstraintType.NONE) {↵ | 14 | if (h == LengthConstraintType.NONE) {↵ | |
15 | throw new RuntimeException("Not yet implemented.");↵ | 15 | throw new RuntimeException("Not yet implemented."); ↵ | |
16 | }↵ | 16 | }↵ | |
17 | else if (h == LengthConstraintType.RANGE) {↵ | 17 | else if (h == LengthConstraintType.RANGE) {↵ | |
18 | throw new RuntimeException("Not yet implemented.");↵ | 18 | throw new RuntimeException("Not yet implemented."); ↵ | |
19 | }↵ | 19 | }↵ | |
20 | else if (h == LengthConstraintType.FIXED) { ↵ | 20 | else if (h == LengthConstraintType.FIXED) {↵ | |
21 | contentSize = new Size2D(↵ | 21 | ↵ | |
22 | contentConstraint.getWidth(),↵ | |||
23 | contentConstraint.getHeight()↵ | |||
24 | );↵ | 22 | throw new RuntimeException("Not yet implemented.");↵ | |
25 | } ↵ | 23 | }↵ | |
26 | } | 24 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 2.9 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 85 |
Number of mapped statements | 12 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 2.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
12 | else if (w == LengthConstraintType.RANGE) | 12 | else if (w == LengthConstraintType.RANGE) | |||||||||||
13 | if (h == LengthConstraintType.NONE) | 13 | if (h == LengthConstraintType.NONE) | |||||||||||
14 | throw new RuntimeException("Not yet implemented."); | 14 | throw new RuntimeException("Not yet implemented."); | |||||||||||
15 | else if (h == LengthConstraintType.RANGE) |
| 17 | else if (h == LengthConstraintType.FIXED) | ||||||||||
16 | throw new RuntimeException("Not yet implemented."); | 18 | throw new RuntimeException("Not yet implemented."); | |||||||||||
17 | else if (h == LengthConstraintType.FIXED) |
| 15 | else if (h == LengthConstraintType.RANGE) | ||||||||||
| 16 | contentSize = arrangeRR(g2, cc.getWidthRange(), cc.getHeightRange()); | ||||||||||||
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 | throw new RuntimeException("Not yet implemented."); | 21 | throw new RuntimeException("Not yet implemented."); | |||||||||||
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 | contentSize = new Size2D(contentConstraint.getWidth(), contentConstraint.getHeight()); | |
Row | Violation |
---|---|
1 | Unmatched throw new RuntimeException("Not yet implemented."); |
2 | Unmatched throw new RuntimeException("Not yet implemented."); |