if (orientation == PlotOrientation.HORIZONTAL) { double x0 = axis.valueToJava2D(value, adjusted, plot.getRangeAxisEdge()); double x1 = x0 + getXOffset(); double y0 = dataArea.getMaxY(); double y1 = y0 - getYOffset(); double y2 = dataArea.getMinY(); line1 = new Line2D.Double(x0, y0, x1, y1); line2 = new Line2D.Double(x1, y1, x1, y2); } else if (orientation == PlotOrientation.VERTICAL) { double y0 = axis.valueToJava2D(value, adjusted, plot.getRangeAxisEdge()); double y1 = y0 - getYOffset(); double x0 = dataArea.getMinX(); double x1 = x0 + getXOffset(); double x2 = dataArea.getMaxX(); line1 = new Line2D.Double(x0, y0, x1, y1); line2 = new Line2D.Double(x1, y1, x2, y1);
if (orientation == PlotOrientation.HORIZONTAL) { double x0 = axis.valueToJava2D(value, adjusted, plot.getRangeAxisEdge()); double x1 = x0 + getXOffset(); double y0 = dataArea.getMaxY(); double y1 = y0 - getYOffset(); double y2 = dataArea.getMinY(); line1 = new Line2D.Double(x0, y0, x1, y1); line2 = new Line2D.Double(x1, y1, x1, y2); } else if (orientation == PlotOrientation.VERTICAL) { double y0 = axis.valueToJava2D(value, adjusted, plot.getRangeAxisEdge()); double y1 = y0 - getYOffset(); double x0 = dataArea.getMinX(); double x1 = x0 + getXOffset(); double x2 = dataArea.getMaxX(); line1 = new Line2D.Double(x0, y0, x1, y1); line2 = new Line2D.Double(x1, y1, x2, y1);
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/BarRenderer3D.java File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/LineRenderer3D.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if (orientation == PlotOrientation.HORIZONTAL) {
1
if (orientation == PlotOrientation.HORIZONTAL) {
2
            double x0 = axis.valueToJava2D(value, adjusted,
2
            double x0 = axis.valueToJava2D(value, adjusted,
3
                    plot.getRangeAxisEdge());
3
                    plot.getRangeAxisEdge());
4
            double x1 = x0 + getXOffset();
4
            double x1 = x0 + getXOffset();
5
            double y0 = dataArea.getMaxY();
5
            double y0 = dataArea.getMaxY();
6
            double y1 = y0 - getYOffset();
6
            double y1 = y0 - getYOffset();
7
            double y2 = dataArea.getMinY();
7
            double y2 = dataArea.getMinY();
8
            line1 = new Line2D.Double(x0, y0, x1, y1);
8
            line1 = new Line2D.Double(x0, y0, x1, y1);
9
            line2 = new Line2D.Double(x1, y1, x1, y2);
9
            line2 = new Line2D.Double(x1, y1, x1, y2);
10
        }
10
        }
11
        else if (orientation == PlotOrientation.VERTICAL) {
11
        else if (orientation == PlotOrientation.VERTICAL) {
12
            double y0 = axis.valueToJava2D(value, adjusted,
12
            double y0 = axis.valueToJava2D(value, adjusted,
13
                    plot.getRangeAxisEdge());
13
                    plot.getRangeAxisEdge());
14
            double y1 = y0 - getYOffset();
14
            double y1 = y0 - getYOffset();
15
            double x0 = dataArea.getMinX();
15
            double x0 = dataArea.getMinX();
16
            double x1 = x0 + getXOffset();
16
            double x1 = x0 + getXOffset();
17
            double x2 = dataArea.getMaxX();
17
            double x2 = dataArea.getMaxX();
18
            line1 = new Line2D.Double(x0, y0, x1, y1);
18
            line1 = new Line2D.Double(x0, y0, x1, y1);
19
            line2 = new Line2D.Double(x1, y1, x2, y1);
19
            line2 = new Line2D.Double(x1, y1, x2, y1);
20
        
20
        
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