if (isVerticalTickLabels()) { anchor = TextAnchor.CENTER_RIGHT; rotationAnchor = TextAnchor.CENTER_RIGHT; if (edge == RectangleEdge.TOP) { angle = Math.PI / 2.0; } else { angle = -Math.PI / 2.0; } } else { if (edge == RectangleEdge.TOP) { anchor = TextAnchor.BOTTOM_CENTER; rotationAnchor = TextAnchor.BOTTOM_CENTER; } else { anchor = TextAnchor.TOP_CENTER; rotationAnchor = TextAnchor.TOP_CENTER;
if (isVerticalTickLabels()) { anchor = TextAnchor.BOTTOM_CENTER; rotationAnchor = TextAnchor.BOTTOM_CENTER; if (edge == RectangleEdge.LEFT) { angle = -Math.PI / 2.0; } else { angle = Math.PI / 2.0; } } else { if (edge == RectangleEdge.LEFT) { anchor = TextAnchor.CENTER_RIGHT; rotationAnchor = TextAnchor.CENTER_RIGHT; } else { anchor = TextAnchor.CENTER_LEFT; rotationAnchor = TextAnchor.CENTER_LEFT;
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/SymbolAxis.java File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/SymbolAxis.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if (isVerticalTickLabels()) {
1
if (isVerticalTickLabels()) {
2
                    anchor = TextAnchor.CENTER_RIGHT;
2
                    anchor = TextAnchor.BOTTOM_CENTER;
3
                    rotationAnchor = TextAnchor.CENTER_RIGHT;
3
                    rotationAnchor = TextAnchor.BOTTOM_CENTER;
4
                    if (edge == RectangleEdge.TOP) {
4
                    if (edge == RectangleEdge.LEFT) {
5
                        angle = Math.PI / 2.0;
5
                        angle = -Math.PI / 2.0;
6
                    }
6
                    }
7
                    else {
7
                    else {
8
                        angle = -Math.PI / 2.0;
8
                        angle = Math.PI / 2.0;
9
                    }
9
                    }                    
10
                }
10
                }
11
                else {
11
                else {
12
                    if (edge == RectangleEdge.TOP) {
12
                    if (edge == RectangleEdge.LEFT) {
13
                        anchor = TextAnchor.BOTTOM_CENTER;
13
                        anchor = TextAnchor.CENTER_RIGHT;
14
                        rotationAnchor = TextAnchor.BOTTOM_CENTER;
14
                        rotationAnchor = TextAnchor.CENTER_RIGHT;
15
                    }
15
                    }
16
                    else {
16
                    else {
17
                        anchor = TextAnchor.TOP_CENTER;
17
                        anchor = TextAnchor.CENTER_LEFT;
18
                        rotationAnchor = TextAnchor.TOP_CENTER;
18
                        rotationAnchor = TextAnchor.CENTER_LEFT;
19
                    
19
                    
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0