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: void drawRangeMarker(Graphics2D, CategoryPlot, ValueAxis, Marker, Rectangle2D)
|
Method name: void drawRangeMarker(Graphics2D, CategoryPlot, ValueAxis, Marker, Rectangle2D)
|
|||
Number of AST nodes: 9 | Number of AST nodes: 9 | |||
1 | if (orientation == PlotOrientation.VERTICAL) {↵ | 1 | if (orientation == PlotOrientation.VERTICAL) {↵ | |
2 | float y = (float) axis.valueToJava2D(value, adjusted,↵ | 2 | float y = (float) axis.valueToJava2D(value, adjusted,↵ | |
3 | plot.getRangeAxisEdge());↵ | 3 | plot.getRangeAxisEdge());↵ | |
4 | float x = (float) dataArea.getX();↵ | 4 | float x = (float) dataArea.getX();↵ | |
5 | path = new GeneralPath();↵ | 5 | path = new GeneralPath();↵ | |
6 | path.moveTo(x, y);↵ | 6 | path.moveTo(x, y);↵ | |
7 | path.lineTo(x + (float) this.xOffset, y - (float) this.yOffset);↵ | 7 | path.lineTo(x + (float) this.xOffset, y - (float) this.yOffset);↵ | |
8 | path.lineTo((float) (adjusted.getMaxX() + this.xOffset),↵ | 8 | path.lineTo((float) (adjusted.getMaxX() + this.xOffset),↵ | |
9 | y - (float) this.yOffset);↵ | 9 | y - (float) this.yOffset);↵ | |
10 | path.lineTo((float) (adjusted.getMaxX()), y);↵ | 10 | path.lineTo((float) (adjusted.getMaxX()), y);↵ | |
11 | path.closePath();↵ | 11 | path.closePath();↵ | |
12 | } | 12 |
| |
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.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 82 |
Number of mapped statements | 9 |
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) | 13.0 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
19 | else if (orientation == PlotOrientation.VERTICAL) | 19 | else if (orientation == PlotOrientation.VERTICAL) | |
20 | float y = (float)axis.valueToJava2D(value, adjusted, plot.getRangeAxisEdge()); | 20 | float y = (float)axis.valueToJava2D(value, adjusted, plot.getRangeAxisEdge()); | |
21 | float x = (float)dataArea.getX(); | 21 | float x = (float)dataArea.getX(); | |
22 | path = new GeneralPath(); | 22 | path = new GeneralPath(); | |
23 | path.moveTo(x, y); | 23 | path.moveTo(x, y); | |
24 | path.lineTo(x + (float)this.xOffset, y - (float)this.yOffset); | 24 | path.lineTo(x + (float)this.xOffset, y - (float)this.yOffset); | |
25 | path.lineTo((float)(adjusted.getMaxX() + this.xOffset), y - (float)this.yOffset); | 25 | path.lineTo((float)(adjusted.getMaxX() + this.xOffset), y - (float)this.yOffset); | |
26 | path.lineTo((float)(adjusted.getMaxX()), y); | 26 | path.lineTo((float)(adjusted.getMaxX()), y); | |
27 | path.closePath(); | 27 | path.closePath(); |
Row | Violation |
---|