ValueAxis axis = (ValueAxis) iterator.next();
AxisState info = axis.draw(g2, cursor, plotArea, dataArea,
RectangleEdge.LEFT, plotState);
cursor = info.getCursor();
axisStateMap.put(axis, info);
double theta = dataset.getXValue(seriesIndex, i);
double radius = dataset.getYValue(seriesIndex, i);
Point p = plot.translateValueThetaRadiusToJava2D(theta, radius,
dataArea);
poly.addPoint(p.x, p.y);
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java
|
|
File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/DefaultPolarItemRenderer.java
|
Method name: Map drawAxes(Graphics2D, Rectangle2D, Rectangle2D, PlotRenderingInfo)
|
|
Method name: void drawSeries(Graphics2D, Rectangle2D, PlotRenderingInfo, PolarPlot, XYDataset, int)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | ValueAxis axis = (ValueAxis) iterator.next();↵ | | 1 | double theta = dataset.getXValue(seriesIndex, i);↵
|
2 | AxisState info = axis.draw(g2, cursor, plotArea, dataArea,↵ | | 2 | ↵
|
3 | RectangleEdge.LEFT, plotState);↵ | | |
|
4 | cursor = info.getCursor();↵ | | |
|
5 | axisStateMap.put(axis, info↵ | | 3 | double radius = dataset.getYValue(seriesIndex, i);↵
|
| | | 4 | Point p = plot.translateValueThetaRadiusToJava2D(theta, radius, ↵
|
| | | 5 | dataArea);↵
|
6 | ); | | 6 | poly.addPoint(p.x, p.y);
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 16 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 0 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Unknown type |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
Precondition Violations (0)
Row |
Violation |