double yyOpen = rangeAxis.valueToJava2D(yOpen, dataArea,
location);
if (this.openTickPaint != null) {
g2.setPaint(this.openTickPaint);
}
else {
g2.setPaint(itemPaint);
}
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));
double yyClose = rangeAxis.valueToJava2D(
yClose, dataArea, location);
if (this.closeTickPaint != null) {
g2.setPaint(this.closeTickPaint);
}
else {
g2.setPaint(itemPaint);
}
if (orientation == PlotOrientation.HORIZONTAL) {
g2.draw(new Line2D.Double(yyClose, xx, yyClose,
xx - delta));
}
else if (orientation == PlotOrientation.VERTICAL) {
g2.draw(new Line2D.Double(xx, yyClose, xx + delta,
yyClose));
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/HighLowRenderer.java
|
|
File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/HighLowRenderer.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | double yyOpen = rangeAxis.valueToJava2D(yOpen, dataArea,↵ | | 1 | double yyClose = rangeAxis.valueToJava2D(↵
|
2 | location);↵ | | 2 | yClose, dataArea, location);↵
|
3 | if (this.openTickPaint != null) {↵ | | 3 | if (this.closeTickPaint != null) {↵
|
4 | g2.setPaint(this.openTickPaint);↵ | | 4 | g2.setPaint(this.closeTickPaint);↵
|
5 | }↵ | | 5 | }↵
|
6 | else {↵ | | 6 | else {↵
|
7 | g2.setPaint(itemPaint);↵ | | 7 | g2.setPaint(itemPaint);↵
|
8 | }↵ | | 8 | }↵
|
9 | if (orientation == PlotOrientation.HORIZONTAL) {↵ | | 9 | if (orientation == PlotOrientation.HORIZONTAL) {↵
|
10 | g2.draw(new Line2D.Double(yyOpen, xx + delta, yyOpen,↵ | | 10 | g2.draw(new Line2D.Double(yyClose, xx, yyClose,↵
|
11 | xx));↵ | | 11 | xx - delta));↵
|
12 | }↵ | | 12 | }↵
|
13 | else if (orientation == PlotOrientation.VERTICAL) {↵ | | 13 | else if (orientation == PlotOrientation.VERTICAL) {↵
|
14 | g2.draw(new Line2D.Double(xx - delta, yyOpen, xx,↵ | | 14 | g2.draw(new Line2D.Double(xx, yyClose, xx + delta,↵
|
15 | yyOpen));↵ | | 15 | yyClose));↵
|
16 | | | 16 |
|
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.0 |
Clones location | |
Number of node comparisons | 0 |