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: void drawHorizontal(Graphics2D, Rectangle2D)
|
Method name: void drawVertical(Graphics2D, Rectangle2D)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (horizontalAlignment == HorizontalAlignment.LEFT) {↵ | 1 | if (verticalAlignment == VerticalAlignment.TOP) {↵ | |
2 | anchor = TextBlockAnchor.BOTTOM_LEFT;↵ | 2 | anchor = TextBlockAnchor.BOTTOM_RIGHT;↵ | |
3 | }↵ | 3 | }↵ | |
4 | else if (horizontalAlignment == HorizontalAlignment.CENTER) {↵ | 4 | else if (verticalAlignment == VerticalAlignment.CENTER) {↵ | |
5 | anchor = TextBlockAnchor.BOTTOM_CENTER;↵ | 5 | anchor = TextBlockAnchor.BOTTOM_CENTER;↵ | |
6 | }↵ | 6 | }↵ | |
7 | else if (horizontalAlignment == HorizontalAlignment.RIGHT) {↵ | 7 | else if (verticalAlignment == VerticalAlignment.BOTTOM) {↵ | |
8 | anchor = TextBlockAnchor.BOTTOM_RIGHT;↵ | 8 | anchor = TextBlockAnchor.BOTTOM_LEFT;↵ | |
9 | } | 9 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.9 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 9 |