if (edge == RectangleEdge.LEFT) {
axisLine = new Line2D.Double(cursor, dataArea.getY(), cursor,
dataArea.getMaxY());
}
else if (edge == RectangleEdge.RIGHT) {
axisLine = new Line2D.Double(cursor, dataArea.getY(), cursor,
dataArea.getMaxY());
}
if (orientation == PlotOrientation.HORIZONTAL) {
line = new Line2D.Double(dataArea.getMinX(), v,
dataArea.getMaxX(), v);
}
else if (orientation == PlotOrientation.VERTICAL) {
line = new Line2D.Double(v, dataArea.getMinY(), v,
dataArea.getMaxY());
}
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/Axis.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 drawDomainMarker(Graphics2D, XYPlot, ValueAxis, Marker, Rectangle2D)
|
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.get↵
|
| | | 3 | MinX(), v,↵
|
3 | dataArea.getMaxY());↵ | | 4 | dataArea.getMaxX(), v);↵
|
4 | }↵ | | 5 | ↵
|
| | | 6 | }↵
|
5 | else if (edge == RectangleEdge.RIGHT) {↵ | | 7 | else if (orientation == PlotOrientation.VERTICAL) {↵
|
6 | axisLine = new Line2D.Double(cursor, dataArea.getY(), cursor,↵ | | 8 | line = new Line2D.Double(v, dataArea.getMinY(), ↵
|
| | | 9 | v,↵
|
7 | dataArea.getMaxY());↵ | | 10 | dataArea.getMaxY());↵
|
8 | } | | 11 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.5 |
Clones location | Clones are in different classes |
Number of node comparisons | 4 |