double yleft = (y0 + y1) / 2.0 + stackLeft[0];
float transYLeft = (float) rangeAxis.valueToJava2D(yleft,
dataArea, edge1);
left.moveTo((float) xx1, transY1);
left.lineTo((float) xx1, transStack1);
left.lineTo((float) xxLeft, transStackLeft);
left.lineTo((float) xxLeft, transYLeft);
left.closePath();
double yright = (y1 + y2) / 2.0 + stackRight[0];
float transYRight = (float) rangeAxis.valueToJava2D(yright,
dataArea, edge1);
right.moveTo((float) xx1, transStack1);
right.lineTo((float) xx1, transY1);
right.lineTo((float) xxRight, transYRight);
right.lineTo((float) xxRight, transStackRight);
right.closePath();
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/StackedAreaRenderer.java
|
|
File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/StackedAreaRenderer.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | double yleft = (y0 + y1) / 2.0 + stackLeft[0];↵ | | 1 | double yright = (y1 + y2) / 2.0 + stackRight[0];↵
|
2 | float transYLeft = (float) rangeAxis.valueToJava2D(yleft,↵ | | 2 | float transYRight = (float) rangeAxis.valueToJava2D(yright,↵
|
3 | dataArea, edge1);↵ | | 3 | dataArea, edge1);↵
|
4 | left.moveTo((float) xx1, transY1);↵ | | 4 | right.moveTo((float) xx1, transStack1);↵
|
5 | left.lineTo((float) xx1, transStack1);↵ | | 5 | right.lineTo((float) xx1, transY1);↵
|
6 | left.lineTo((float) xxLeft, transStackLeft);↵ | | 6 | right.lineTo((float) xxRight, transYRight);↵
|
7 | left.lineTo((float) xxLeft, transYLeft);↵ | | 7 | right.lineTo((float) xxRight, transStackRight);↵
|
8 | left.closePath();↵ | | 8 | right.closePath();↵
|
9 | | | 9 |
|
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 |