File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/ValueAxis.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/AbstractXYItemRenderer.java | |||
Method name: void drawAxisLine(Graphics2D, double, Rectangle2D, RectangleEdge)
|
Method name: void drawDomainGridLine(Graphics2D, XYPlot, ValueAxis, Rectangle2D, double)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (edge == RectangleEdge.LEFT) {↵ | 1 | if (orientation == PlotOrientation.HORIZONTAL) {↵ | |
2 | axisLine = new Line2D.Double(cursor, dataArea.getY(), cursor,↵ | 2 | line = new Line2D.Double(dataArea.getMinX(), v,↵ | |
3 | dataArea.getMaxY());↵ | 3 | dataArea.getMaxX(), v);↵ | |
4 | }↵ | 4 | }↵ | |
5 | else if (edge == RectangleEdge.RIGHT) {↵ | 5 | else if (orientation == PlotOrientation.VERTICAL) {↵ | |
6 | axisLine = new Line2D.Double(cursor, dataArea.getY(), cursor,↵ | 6 | line = new Line2D.Double(v, dataArea.getMinY(), v,↵ | |
7 | dataArea.getMaxY());↵ | 7 | dataArea.getMaxY());↵ | |
8 | } | 8 |
| |
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 | 4 |
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) | 6.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6 | else if (edge == RectangleEdge.LEFT) |
| 9 | else if (orientation == PlotOrientation.VERTICAL) | |||||||||||||||||||||||||
7 | axisLine = new Line2D.Double(cursor, dataArea.getY(), cursor, dataArea.getMaxY()); |
| 10 | line = new Line2D.Double(v, dataArea.getMinY(), v, dataArea.getMaxY()); | |||||||||||||||||||||||||
8 | else if (edge == RectangleEdge.RIGHT) |
| 7 | else if (orientation == PlotOrientation.HORIZONTAL) | |||||||||||||||||||||||||
9 | axisLine = new Line2D.Double(cursor, dataArea.getY(), cursor, dataArea.getMaxY()); |
| 8 | line = new Line2D.Double(dataArea.getMinX(), v, dataArea.getMaxX(), v); |
Row | Violation |
---|---|
1 | Type org.jfree.ui.RectangleEdge of variable edge does not match with type org.jfree.chart.plot.PlotOrientation of variable orientation |
2 | Type org.jfree.ui.RectangleEdge does not match with type org.jfree.chart.plot.PlotOrientation |
3 | Type org.jfree.ui.RectangleEdge of variable RectangleEdge.LEFT does not match with type org.jfree.chart.plot.PlotOrientation of variable PlotOrientation.VERTICAL |
4 | Type org.jfree.ui.RectangleEdge of variable edge does not match with type org.jfree.chart.plot.PlotOrientation of variable orientation |
5 | Type org.jfree.ui.RectangleEdge does not match with type org.jfree.chart.plot.PlotOrientation |
6 | Type org.jfree.ui.RectangleEdge of variable RectangleEdge.RIGHT does not match with type org.jfree.chart.plot.PlotOrientation of variable PlotOrientation.HORIZONTAL |