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/category/BarRenderer3D.java | |||
Method name: void drawRangeMarker(Graphics2D, CategoryPlot, ValueAxis, Marker, Rectangle2D)
|
Method name: void drawRangeMarker(Graphics2D, CategoryPlot, ValueAxis, Marker, Rectangle2D)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | Font labelFont = marker.getLabelFont();↵ | 1 | Font labelFont = marker.getLabelFont();↵ | |
2 | g2.setFont(labelFont);↵ | 2 | g2.setFont(labelFont);↵ | |
3 | g2.setPaint(marker.getLabelPaint());↵ | 3 | g2.setPaint(marker.getLabelPaint());↵ | |
4 | Point2D coordinates = calculateRangeMarkerTextAnchorPoint(↵ | 4 | Point2D coordinates = calculateRangeMarkerTextAnchorPoint(↵ | |
5 | g2, orientation, dataArea, rect,↵ | 5 | g2, orientation, dataArea, path.getBounds2D(),↵ | |
6 | marker.getLabelOffset(), marker.getLabelOffsetType(),↵ | 6 | marker.getLabelOffset(), LengthAdjustmentType.EXPAND,↵ | |
7 | anchor);↵ | 7 | anchor);↵ | |
8 | TextUtilities.drawAlignedString(label, g2,↵ | 8 | TextUtilities.drawAlignedString(label, g2,↵ | |
9 | (float) coordinates.getX(), (float) coordinates.getY(),↵ | 9 | (float) coordinates.getX(), (float) coordinates.getY(),↵ | |
10 | marker.getLabelTextAnchor()); | 10 |
| |
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 in different classes having the same super class |
Number of node comparisons | 25 |
Number of mapped statements | 5 |
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 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
87 | Font labelFont = marker.getLabelFont(); | 35 | Font labelFont = marker.getLabelFont(); | ||||||||||||||
88 | g2.setFont(labelFont); | 36 | g2.setFont(labelFont); | ||||||||||||||
89 | g2.setPaint(marker.getLabelPaint()); | 37 | g2.setPaint(marker.getLabelPaint()); | ||||||||||||||
90 | Point2D coordinates = calculateRangeMarkerTextAnchorPoint(g2, orientation, dataArea, rect, marker.getLabelOffset(), marker.getLabelOffsetType(), anchor); |
| 38 | Point2D coordinates = calculateRangeMarkerTextAnchorPoint(g2, orientation, dataArea, path.getBounds2D(), marker.getLabelOffset(), LengthAdjustmentType.EXPAND, anchor); | |||||||||||||
91 | TextUtilities.drawAlignedString(label, g2, (float)coordinates.getX(), (float)coordinates.getY(), marker.getLabelTextAnchor()); | 39 | TextUtilities.drawAlignedString(label, g2, (float)coordinates.getX(), (float)coordinates.getY(), marker.getLabelTextAnchor()); |
Row | Violation |
---|