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: Point2D calculateRangeMarkerTextAnchorPoint(Graphics2D, PlotOrientation, Rectangle2D, Rectangle2D, RectangleInsets, LengthAdjustmentType, RectangleAnchor)
|
Method name: Point2D calculateRangeMarkerTextAnchorPoint(Graphics2D, PlotOrientation, Rectangle2D, Rectangle2D, RectangleInsets, LengthAdjustmentType, RectangleAnchor)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (orientation == PlotOrientation.HORIZONTAL) {↵ | 1 | if (orientation == PlotOrientation.HORIZONTAL) {↵ | |
2 | anchorRect = markerOffset.createAdjustedRectangle(markerArea,↵ | 2 | anchorRect = markerOffset.createAdjustedRectangle(markerArea,↵ | |
3 | labelOffsetType, LengthAdjustmentType.CONTRACT);↵ | 3 | labelOffsetForRange, LengthAdjustmentType.CONTRACT);↵ | |
4 | }↵ | 4 | }↵ | |
5 | else if (orientation == PlotOrientation.VERTICAL) {↵ | 5 | else if (orientation == PlotOrientation.VERTICAL) {↵ | |
6 | anchorRect = markerOffset.createAdjustedRectangle(markerArea,↵ | 6 | anchorRect = markerOffset.createAdjustedRectangle(markerArea,↵ | |
7 | LengthAdjustmentType.CONTRACT, labelOffsetType);↵ | 7 | LengthAdjustmentType.CONTRACT, labelOffsetForRange);↵ | |
8 | } | 8 |
| |
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.5 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 13 |
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.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | if (orientation == PlotOrientation.HORIZONTAL) | 2 | if (orientation == PlotOrientation.HORIZONTAL) | |||||||||||
3 | anchorRect = markerOffset.createAdjustedRectangle(markerArea, labelOffsetType, LengthAdjustmentType.CONTRACT); |
| 3 | anchorRect = markerOffset.createAdjustedRectangle(markerArea, labelOffsetForRange, LengthAdjustmentType.CONTRACT); | ||||||||||
4 | else if (orientation == PlotOrientation.VERTICAL) | 4 | else if (orientation == PlotOrientation.VERTICAL) | |||||||||||
5 | anchorRect = markerOffset.createAdjustedRectangle(markerArea, LengthAdjustmentType.CONTRACT, labelOffsetType); |
| 5 | anchorRect = markerOffset.createAdjustedRectangle(markerArea, LengthAdjustmentType.CONTRACT, labelOffsetForRange); |
Row | Violation |
---|