File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java | |||
Method name: void drawQuadrants(Graphics2D, Rectangle2D)
|
Method name: void drawQuadrants(Graphics2D, Rectangle2D)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (this.quadrantPaint[1] != null) {↵ | 1 | if (this.quadrantPaint[3] != null) {↵ | |
2 | if (x < xmax && y < ymax) {↵ | 2 | if (x < xmax && y > ymin) {↵ | |
3 | if (this.orientation == PlotOrientation.HORIZONTAL) {↵ | 3 | if (this.orientation == PlotOrientation.HORIZONTAL) {↵ | |
4 | r[1] = new Rectangle2D.Double(Math.min(yymax, yy),↵ | 4 | r[3] = new Rectangle2D.Double(Math.min(yymin, yy),↵ | |
5 | Math.min(xxmax, xx), Math.abs(yy - yymax),↵ | 5 | Math.min(xxmax, xx), Math.abs(yy - yymin),↵ | |
6 | Math.abs(xx - xxmax));↵ | 6 | Math.abs(xx - xxmax));↵ | |
7 | }↵ | 7 | }↵ | |
8 | else { // PlotOrientation.VERTICAL↵ | 8 | else { // PlotOrientation.VERTICAL↵ | |
9 | r[1] = new Rectangle2D.Double(Math.min(xx, xxmax),↵ | 9 | r[3] = new Rectangle2D.Double(Math.min(xx, xxmax),↵ | |
10 | Math.min(yymax, yy), Math.abs(xx - xxmax),↵ | 10 | Math.min(yymin, yy), Math.abs(xx - xxmax),↵ | |
11 | Math.abs(yy - yymax));↵ | 11 | Math.abs(yy - yymin));↵ | |
12 | }↵ | 12 | }↵ | |
13 | somethingToDraw = true;↵ | 13 | somethingToDraw = true;↵ | |
14 | }↵ | 14 | }↵ | |
15 | } | 15 |
| |
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.6 |
Clones location | Clones are in the same method |
Number of node comparisons | 14 |
Number of mapped statements | 6 |
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) | 18.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23 | if (this.quadrantPaint[1] != null) |
| 35 | if (this.quadrantPaint[3] != null) | ||||||||||||||||
24 | if (x < xmax && y < ymax) |
| 36 | if (x < xmax && y > ymin) | ||||||||||||||||
25 | if (this.orientation == PlotOrientation.HORIZONTAL) | 37 | if (this.orientation == PlotOrientation.HORIZONTAL) | |||||||||||||||||
26 | r[1] = new Rectangle2D.Double(Math.min(yymax, yy), Math.min(xxmax, xx), Math.abs(yy - yymax), Math.abs(xx - xxmax)); |
| 38 | r[3] = new Rectangle2D.Double(Math.min(yymin, yy), Math.min(xxmax, xx), Math.abs(yy - yymin), Math.abs(xx - xxmax)); | ||||||||||||||||
else | else | |||||||||||||||||||
27 | r[1] = new Rectangle2D.Double(Math.min(xx, xxmax), Math.min(yymax, yy), Math.abs(xx - xxmax), Math.abs(yy - yymax)); |
| 39 | r[3] = new Rectangle2D.Double(Math.min(xx, xxmax), Math.min(yymin, yy), Math.abs(xx - xxmax), Math.abs(yy - yymin)); | ||||||||||||||||
28 | somethingToDraw = true; | 40 | somethingToDraw = true; |
Row | Violation |
---|