if (orientation == PlotOrientation.HORIZONTAL) { box = new Rectangle2D.Double(transY0, transX1, transY1 - transY0, transX0 - transX1); } else if (orientation == PlotOrientation.VERTICAL) { box = new Rectangle2D.Double(transX0, transY1, transX1 - transX0, transY0 - transY1);
else if (edge == RectangleEdge.TOP) { mark = new Line2D.Double(xx, cursor - ol, xx, cursor + il); } else if (edge == RectangleEdge.BOTTOM) { mark = new Line2D.Double(xx, cursor + ol, xx, cursor - il);
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/annotations/XYBoxAnnotation.java File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/ValueAxis.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if (orientation == PlotOrientation.HORIZONTAL) {
1
else if (edge == RectangleEdge.TOP) {
2
            box = new Rectangle2D.Double(transY0, transX1, transY1 - transY0, 
2
                    mark = new Line2D.Double(
3
                    transX0 - transX1);
3
xx, cursor - ol, xx, cursor + il);
4
                }
4
        }
5
        
5
        else if (orientation == PlotOrientation.VERTICAL) {
6
        else if (edge == RectangleEdge.BOTTOM) {
6
            box = new Rectangle2D.Double(transX0, transY1, transX1 - transX0, 
7
            
7
                    transY0 - transY1);
8
        mark = new Line2D.Double(xx, cursor + ol, xx, cursor - il);
8
        
9
                
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0