File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/AbstractCategoryItemRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/AbstractXYItemRenderer.java | |||
Method name: void drawDomainMarker(Graphics2D, CategoryPlot, CategoryAxis, CategoryMarker, Rectangle2D)
|
Method name: void drawRangeMarker(Graphics2D, XYPlot, ValueAxis, Marker, Rectangle2D)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (label != null) {↵ | 1 | if (label != null) {↵ | |
2 | Font labelFont = marker.getLabelFont();↵ | 2 | Font labelFont = marker.getLabelFont();↵ | |
3 | g2.setFont(labelFont);↵ | 3 | g2.setFont(labelFont);↵ | |
4 | g2.setPaint(marker.getLabelPaint());↵ | 4 | g2.setPaint(marker.getLabelPaint());↵ | |
5 | Point2D coordinates = calculateDomainMarkerTextAnchorPoint(↵ | 5 | Point2D coordinates = calculateRangeMarkerTextAnchorPoint(↵ | |
6 | g2, orientation, dataArea, bounds,↵ | 6 | g2, orientation, dataArea, rect,↵ | |
7 | marker.getLabelOffset(),↵ | 7 | marker.getLabelOffset(),↵ | |
8 | marker.getLabelOffsetType(),↵ | 8 | marker.getLabelOffsetType(),↵ | |
9 | anchor);↵ | 9 | anchor);↵ | |
10 | TextUtilities.drawAlignedString(label, g2,↵ | 10 | TextUtilities.drawAlignedString(label, g2,↵ | |
11 | (float) coordinates.getX(), (float) coordinates.getY(),↵ | 11 | (float) coordinates.getX(), (float) coordinates.getY(),↵ | |
12 | marker.getLabelTextAnchor());↵ | 12 | marker.getLabelTextAnchor());↵ | |
13 | } | 13 | } | |
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.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 36 |
Number of mapped statements | 6 |
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) | 21.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33 | if (label != null) | 86 | if (label != null) | ||||||||||||||||||||
34 | Font labelFont = marker.getLabelFont(); |
| 87 | Font labelFont = marker.getLabelFont(); | |||||||||||||||||||
35 | g2.setFont(labelFont); | 88 | g2.setFont(labelFont); | ||||||||||||||||||||
36 | g2.setPaint(marker.getLabelPaint()); |
| 89 | g2.setPaint(marker.getLabelPaint()); | |||||||||||||||||||
37 | Point2D coordinates = calculateDomainMarkerTextAnchorPoint(g2, orientation, dataArea, bounds, marker.getLabelOffset(), marker.getLabelOffsetType(), anchor); |
| 90 | Point2D coordinates = calculateRangeMarkerTextAnchorPoint(g2, orientation, dataArea, rect, marker.getLabelOffset(), marker.getLabelOffsetType(), anchor); | |||||||||||||||||||
38 | TextUtilities.drawAlignedString(label, g2, (float)coordinates.getX(), (float)coordinates.getY(), marker.getLabelTextAnchor()); |
| 91 | TextUtilities.drawAlignedString(label, g2, (float)coordinates.getX(), (float)coordinates.getY(), marker.getLabelTextAnchor()); |
Row | Violation |
---|