if (edge == RectangleEdge.TOP) {
mark = new Line2D.Double(
xx, cursor + dataArea.getHeight(), xx, cursor
);
}
else if (edge == RectangleEdge.BOTTOM) {
mark = new Line2D.Double(
xx, cursor, xx, cursor - dataArea.getHeight()
);
}
if (orientation == PlotOrientation.HORIZONTAL) {
g2.draw(new Line2D.Double(yyOpen, xx + delta, yyOpen,
xx));
}
else if (orientation == PlotOrientation.VERTICAL) {
g2.draw(new Line2D.Double(xx - delta, yyOpen, xx,
yyOpen));
}
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/CyclicNumberAxis.java
|
|
File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/HighLowRenderer.java
|
Method name: AxisState draw(Graphics2D, double, Rectangle2D, Rectangle2D, RectangleEdge, PlotRenderingInfo)
|
|
Method name: void drawItem(Graphics2D, XYItemRendererState, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | if (edge == RectangleEdge.TOP) {↵ | | 1 | if (orientation == PlotOrientation.HORIZONTAL) {↵
|
2 | mark = new Line2D.Double(↵ | | 2 | g2.draw(new Line2D.Double(↵
|
3 | xx, cursor + dataArea.getHeight(), xx, cursor↵ | | 3 | yyOpen, xx + delta, yyOpen,↵
|
| | | 4 | xx));↵
|
4 | );↵ | | 5 | }↵
|
5 | }↵ | | 6 | ↵
|
6 | else if (edge == RectangleEdge.BOTTOM) {↵ | | 7 | else if (orientation == PlotOrientation.VERTICAL) {↵
|
7 | mark = new Line2D.Double(↵ | | 8 | g2.draw(new Line2D.Double(↵
|
8 | xx, cursor, xx, cursor - dataArea.getHeight()↵ | | |
|
9 | ↵ | | 9 | xx - delta, yyOpen, xx,↵
|
| | | 10 | yyOpen));↵
|
10 | );↵ | | 11 | ↵
|
11 | } | | 12 | }
|
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 |