1193-2-6

Font labelFont = marker.getLabelFont(); g2.setFont(labelFont); g2.setPaint(marker.getLabelPaint()); Point2D coordinates = calculateRangeMarkerTextAnchorPoint( g2, orientation, dataArea, line.getBounds2D(), marker.getLabelOffset(), LengthAdjustmentType.EXPAND, anchor); TextUtilities.drawAlignedString(label, g2, (float) coordinates.getX(), (float) coordinates.getY(), marker.getLabelTextAnchor());
Font labelFont = marker.getLabelFont(); g2.setFont(labelFont); g2.setPaint(marker.getLabelPaint()); Point2D coordinates = calculateDomainMarkerTextAnchorPoint( g2, orientation, dataArea, rect, marker.getLabelOffset(), marker.getLabelOffsetType(), anchor); TextUtilities.drawAlignedString(label, g2, (float) coordinates.getX(), (float) coordinates.getY(), marker.getLabelTextAnchor());

Clone fragments detected by clone detection tool
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: `` |  | Method name: ``
Number of AST nodes: 0 |  | Number of AST nodes: 0

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 = calculateDomainMarkerTextAnchorPoint(↵

5

                            g2, orientation, dataArea, line.getBounds2D(),↵

5

                            g2, orientation, dataArea, rect,↵

6

                            marker.getLabelOffset(), LengthAdjustmentType.EXPAND,↵

6

                            marker.getLabelOffset(), marker.getLabelOffsetType(),↵

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

                            marker.getLabelTextAnchor());↵

11

11

See real code fragment |  | See real code fragment

Summary
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.0
Clones location |
Number of node comparisons | 0