if (range.contains(value)) {
double x = midX + getColumnRadius() + 2;
double y = this.rangeAxis.valueToJava2D(value, dataArea,
RectangleEdge.LEFT);
Line2D line = new Line2D.Double(x, y, x + 10, y);
g2.setPaint(this.subrangePaint[NORMAL]);
g2.draw(line);
}
if (range.contains(value)) {
double x = midX + getColumnRadius() + 2;
double y = this.rangeAxis.valueToJava2D(value, dataArea,
RectangleEdge.LEFT);
Line2D line = new Line2D.Double(x, y, x + 10, y);
g2.setPaint(this.subrangePaint[WARNING]);
g2.draw(line);
}
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/ThermometerPlot.java
|
|
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/ThermometerPlot.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | if (range.contains(value)) {↵ | | 1 | if (range.contains(value)) {↵
|
2 | double x = midX + getColumnRadius() + 2;↵ | | 2 | double x = midX + getColumnRadius() + 2;↵
|
3 | double y = this.rangeAxis.valueToJava2D(value, dataArea, ↵ | | 3 | double y = this.rangeAxis.valueToJava2D(value, dataArea, ↵
|
4 | RectangleEdge.LEFT);↵ | | 4 | RectangleEdge.LEFT);↵
|
5 | Line2D line = new Line2D.Double(x, y, x + 10, y);↵ | | 5 | Line2D line = new Line2D.Double(x, y, x + 10, y);↵
|
6 | g2.setPaint(this.subrangePaint[NORMAL]);↵ | | 6 | g2.setPaint(this.subrangePaint[WARNING]);↵
|
7 | g2.draw(line);↵ | | 7 | g2.draw(line);↵
|
8 | } | | 8 | }
|
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 |