else if (horizontalAlignment == HorizontalAlignment.RIGHT) { x = (float) titleArea.getMaxX(); anchor = TextBlockAnchor.TOP_RIGHT; } else if (horizontalAlignment == HorizontalAlignment.CENTER) { x = (float) titleArea.getCenterX(); anchor = TextBlockAnchor.TOP_CENTER;
else if (verticalAlignment == VerticalAlignment.BOTTOM) { y = (float) titleArea.getMaxY(); anchor = TextBlockAnchor.TOP_LEFT; } else if (verticalAlignment == VerticalAlignment.CENTER) { y = (float) titleArea.getCenterY(); anchor = TextBlockAnchor.TOP_CENTER;
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
else if (horizontalAlignment == HorizontalAlignment.RIGHT) {
1
else if (verticalAlignment == VerticalAlignment.BOTTOM) {
2
            x = (float) titleArea.getMaxX();
2
            y = (float) titleArea.getMaxY();
3
            anchor = TextBlockAnchor.TOP_RIGHT;
3
            anchor = TextBlockAnchor.TOP_LEFT;
4
        }
4
        }
5
        else if (horizontalAlignment == HorizontalAlignment.CENTER) {
5
        else if (verticalAlignment == VerticalAlignment.CENTER) {
6
            x = (float) titleArea.getCenterX();
6
            y = (float) titleArea.getCenterY();
7
            anchor = TextBlockAnchor.TOP_CENTER;
7
            anchor = TextBlockAnchor.TOP_CENTER;
8
        
8
        
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