if (position == RectangleEdge.TOP) { y = (float) titleArea.getY(); } else if (position == RectangleEdge.BOTTOM) { y = (float) titleArea.getMaxY(); if (horizontalAlignment == HorizontalAlignment.LEFT) { anchor = TextBlockAnchor.BOTTOM_LEFT; } else if (horizontalAlignment == HorizontalAlignment.CENTER) { anchor = TextBlockAnchor.BOTTOM_CENTER; } else if (horizontalAlignment == HorizontalAlignment.RIGHT) { anchor = TextBlockAnchor.BOTTOM_RIGHT;
if (position == RectangleEdge.LEFT) { x = (float) titleArea.getX(); } else if (position == RectangleEdge.RIGHT) { x = (float) titleArea.getMaxX(); if (verticalAlignment == VerticalAlignment.TOP) { anchor = TextBlockAnchor.BOTTOM_RIGHT; } else if (verticalAlignment == VerticalAlignment.CENTER) { anchor = TextBlockAnchor.BOTTOM_CENTER; } else if (verticalAlignment == VerticalAlignment.BOTTOM) { anchor = TextBlockAnchor.BOTTOM_LEFT;
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/title/TextTitle.java File path: /jfreechart-1.0.10/src/org/jfree/chart/title/TextTitle.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if (position == RectangleEdge.TOP) {
1
if (position == RectangleEdge.LEFT) {
2
            y = (float) titleArea.getY();
2
            x = (float) titleArea.getX();
3
        }
3
        }
4
        else if (position == RectangleEdge.BOTTOM) {
4
        else if (position == RectangleEdge.RIGHT) {
5
            y = (float) titleArea.getMaxY();
5
            x = (float) titleArea.getMaxX();
6
            if (horizontalAlignment == HorizontalAlignment.LEFT) {
6
            if (verticalAlignment == VerticalAlignment.TOP) {
7
                anchor = TextBlockAnchor.BOTTOM_LEFT;
7
                anchor = TextBlockAnchor.BOTTOM_RIGHT;
8
            }
8
            }
9
            else if (horizontalAlignment == HorizontalAlignment.CENTER) {
9
            else if (verticalAlignment == VerticalAlignment.CENTER) {
10
                anchor = TextBlockAnchor.BOTTOM_CENTER;
10
                anchor = TextBlockAnchor.BOTTOM_CENTER;
11
            }
11
            }
12
            else if (horizontalAlignment == HorizontalAlignment.RIGHT) {
12
            else if (verticalAlignment == VerticalAlignment.BOTTOM) {
13
                anchor = TextBlockAnchor.BOTTOM_RIGHT;
13
                anchor = TextBlockAnchor.BOTTOM_LEFT;
14
            
14
            
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