File path: /jEdit-4.2/src/org/gjt/sp/jedit/print/BufferPrintable.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/print/BufferPrintable.java | |||
Method name: double paintFooter(Graphics2D, double, double, double, double, int, boolean)
|
Method name: double paintHeader(Graphics2D, double, double, double, boolean)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | gfx.setColor(footerColor);↵ | 1 | gfx.setColor(headerColor);↵ | |
2 | gfx.fill(footerBounds);↵ | 2 | gfx.fill(headerBounds);↵ | |
3 | gfx.setColor(footerTextColor);↵ | 3 | gfx.setColor(headerTextColor);↵ | |
4 | gfx.drawString(footerText,↵ | 4 | gfx.drawString(headerText,↵ | |
5 | (float)(pageX + (pageWidth - bounds.getWidth()) / 2),↵ | 5 | (float)(pageX + (pageWidth - bounds.getWidth()) / 2),↵ | |
6 | (float)(pageY + pageHeight - bounds.getHeight()↵ | 6 | (float)(pageY +↵ | |
7 | + lm.getAscent())); | 7 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 16 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | gfx.setColor(footerColor); |
| 7 | gfx.setColor(headerColor); | |||||||||||||
8 | gfx.fill(footerBounds); |
| 8 | gfx.fill(headerBounds); | |||||||||||||
9 | gfx.setColor(footerTextColor); |
| 9 | gfx.setColor(headerTextColor); | |||||||||||||
10 | gfx.drawString(footerText, (float)(pageX + (pageWidth - bounds.getWidth()) / 2), (float)(pageY + pageHeight - bounds.getHeight() + lm.getAscent())); |
| 10 | gfx.drawString(headerText, (float)(pageX + (pageWidth - bounds.getWidth()) / 2), (float)(pageY + lm.getAscent())); |
Row | Violation |
---|