if (orientation == PlotOrientation.HORIZONTAL) { float x = (float) axis.valueToJava2D(value, adjusted, plot.getRangeAxisEdge()); float y = (float) adjusted.getMaxY(); path = new GeneralPath(); path.moveTo(x, y); path.lineTo((float) (x + getXOffset()), y - (float) getYOffset()); path.lineTo((float) (x + getXOffset()), (float) (adjusted.getMinY() - getYOffset())); path.lineTo(x, (float) adjusted.getMinY()); path.closePath(); } else if (orientation == PlotOrientation.VERTICAL) { float y = (float) axis.valueToJava2D(value, adjusted, plot.getRangeAxisEdge()); float x = (float) dataArea.getX(); path = new GeneralPath(); path.moveTo(x, y); path.lineTo(x + (float) this.xOffset, y - (float) this.yOffset); path.lineTo((float) (adjusted.getMaxX() + this.xOffset), y - (float) this.yOffset); path.lineTo((float) (adjusted.getMaxX()), y); path.closePath();
if (orientation == PlotOrientation.HORIZONTAL) { float x = (float) axis.valueToJava2D(value, adjusted, plot.getRangeAxisEdge()); float y = (float) adjusted.getMaxY(); path = new GeneralPath(); path.moveTo(x, y); path.lineTo((float) (x + getXOffset()), y - (float) getYOffset()); path.lineTo((float) (x + getXOffset()), (float) (adjusted.getMinY() - getYOffset())); path.lineTo(x, (float) adjusted.getMinY()); path.closePath(); } else if (orientation == PlotOrientation.VERTICAL) { float y = (float) axis.valueToJava2D(value, adjusted, plot.getRangeAxisEdge()); float x = (float) dataArea.getX(); path = new GeneralPath(); path.moveTo(x, y); path.lineTo(x + (float) this.xOffset, y - (float) this.yOffset); path.lineTo((float) (adjusted.getMaxX() + this.xOffset), y - (float) this.yOffset); path.lineTo((float) (adjusted.getMaxX()), y); path.closePath();
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
                float x = (float) axis.valueToJava2D(value, adjusted,
2
                float x = (float) axis.valueToJava2D(value, adjusted,
3
                        plot.getRangeAxisEdge());
3
                        plot.getRangeAxisEdge());
4
                float y = (float) adjusted.getMaxY();
4
                float y = (float) adjusted.getMaxY();
5
                path = new GeneralPath();
5
                path = new GeneralPath();
6
                path.moveTo(x, y);
6
                path.moveTo(x, y);
7
                path.lineTo((float) (x + getXOffset()),
7
                path.lineTo((float) (x + getXOffset()),
8
                        y - (float) getYOffset());
8
                        y - (float) getYOffset());
9
                path.lineTo((float) (x + getXOffset()),
9
                path.lineTo((float) (x + getXOffset()),
10
                        (float) (adjusted.getMinY() - getYOffset()));
10
                        (float) (adjusted.getMinY() - getYOffset()));
11
                path.lineTo(x, (float) adjusted.getMinY());
11
                path.lineTo(x, (float) adjusted.getMinY());
12
                path.closePath();
12
                path.closePath();
13
            }
13
            }
14
            else if (orientation == PlotOrientation.VERTICAL) {
14
            else if (orientation == PlotOrientation.VERTICAL) {
15
                float y = (float) axis.valueToJava2D(value, adjusted,
15
                float y = (float) axis.valueToJava2D(value, adjusted,
16
                        plot.getRangeAxisEdge());
16
                        plot.getRangeAxisEdge());
17
                float x = (float) dataArea.getX();
17
                float x = (float) dataArea.getX();
18
                path = new GeneralPath();
18
                path = new GeneralPath();
19
                path.moveTo(x, y);
19
                path.moveTo(x, y);
20
                path.lineTo(x + (float) this.xOffset, y - (float) this.yOffset);
20
                path.lineTo(x + (float) this.xOffset, y - (float) this.yOffset);
21
                path.lineTo((float) (adjusted.getMaxX() + this.xOffset),
21
                path.lineTo((float) (adjusted.getMaxX() + this.xOffset),
22
                        y - (float) this.yOffset);
22
                        y - (float) this.yOffset);
23
                path.lineTo((float) (adjusted.getMaxX()), y);
23
                path.lineTo((float) (adjusted.getMaxX()), y);
24
                path.closePath();
24
                path.closePath();
25
            
25
            
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