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: void draw(Graphics2D, XYPlot, Rectangle2D, ValueAxis, ValueAxis, int, PlotRenderingInfo)
|
Method name: AxisState drawTickMarksAndLabels(Graphics2D, double, Rectangle2D, Rectangle2D, RectangleEdge)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (orientation == PlotOrientation.HORIZONTAL) {↵ | 1 | if (edge == RectangleEdge.TOP) {↵ | |
2 | box = new Rectangle2D.Double(transY0, transX1, transY1 - transY0, ↵ | 2 | ↵ | |
3 | transX0 - transX1);↵ | 3 | mark = new Line2D.Double(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 | } | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.5 |
Clones location | Clones are in different classes |
Number of node comparisons | 13 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 4.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9 | if (orientation == PlotOrientation.HORIZONTAL) |
| 25 | if (edge == RectangleEdge.TOP) | |||||||||||||||||||||||||
10 | box = new Rectangle2D.Double(transY0, transX1, transY1 - transY0, transX0 - transX1); |
| | ||||||||||||||||||||||||||
|
| 26 | mark = new Line2D.Double(xx, cursor - ol, xx, cursor + il); | ||||||||||||||||||||||||||
11 | else if (orientation == PlotOrientation.VERTICAL) |
| 27 | else if (edge == RectangleEdge.BOTTOM) | |||||||||||||||||||||||||
12 | box = new Rectangle2D.Double(transX0, transY1, transX1 - transX0, transY0 - transY1); |
| | ||||||||||||||||||||||||||
|
| 28 | mark = new Line2D.Double(xx, cursor + ol, xx, cursor - il); |
Row | Violation |
---|---|
1 | Type org.jfree.chart.plot.PlotOrientation of variable orientation does not match with type org.jfree.ui.RectangleEdge of variable edge |
2 | Type org.jfree.chart.plot.PlotOrientation does not match with type org.jfree.ui.RectangleEdge |
3 | Type org.jfree.chart.plot.PlotOrientation of variable PlotOrientation.HORIZONTAL does not match with type org.jfree.ui.RectangleEdge of variable RectangleEdge.TOP |
4 | Unmatched statement box=new Rectangle2D.Double(transY0,transX1,transY1 - transY0,transX0 - transX1); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
5 | Unmatched statement mark=new Line2D.Double(xx,cursor - ol,xx,cursor + il); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
6 | Type org.jfree.chart.plot.PlotOrientation of variable orientation does not match with type org.jfree.ui.RectangleEdge of variable edge |
7 | Type org.jfree.chart.plot.PlotOrientation does not match with type org.jfree.ui.RectangleEdge |
8 | Type org.jfree.chart.plot.PlotOrientation of variable PlotOrientation.VERTICAL does not match with type org.jfree.ui.RectangleEdge of variable RectangleEdge.BOTTOM |
9 | Unmatched statement box=new Rectangle2D.Double(transX0,transY1,transX1 - transX0,transY0 - transY1); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
10 | Unmatched statement mark=new Line2D.Double(xx,cursor + ol,xx,cursor - il); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |