File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/LineAndShapeRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/StatisticalLineAndShapeRenderer.java | |||
Method name: void drawItem(Graphics2D, CategoryItemRendererState, Rectangle2D, CategoryPlot, CategoryAxis, ValueAxis, CategoryDataset, int, int, int)
|
Method name: void drawItem(Graphics2D, CategoryItemRendererState, Rectangle2D, CategoryPlot, CategoryAxis, ValueAxis, CategoryDataset, int, int, int)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (isItemLabelVisible(row, column)) {↵ | 1 | if (isItemLabelVisible(row, column)) {↵ | |
2 | if (orientation == PlotOrientation.HORIZONTAL) {↵ | 2 | if (orientation == PlotOrientation.HORIZONTAL) {↵ | |
3 | drawItemLabel(g2, orientation, dataset, row, column, y1,↵ | 3 | drawItemLabel(g2, orientation, dataset, row, column,↵ | |
4 | x1, (value < 0.0));↵ | 4 | y1, x1, (meanValue.doubleValue() < 0.0));↵ | |
5 | }↵ | 5 | }↵ | |
6 | else if (orientation == PlotOrientation.VERTICAL) {↵ | 6 | else if (orientation == PlotOrientation.VERTICAL) {↵ | |
7 | drawItemLabel(g2, orientation, dataset, row, column, x1,↵ | 7 | drawItemLabel(g2, orientation, dataset, row, column,↵ | |
8 | y1, (value < 0.0));↵ | 8 | x1, y1, (meanValue.doubleValue() < 0.0));↵ | |
9 | }↵ | 9 | ↵ | |
10 | ↵ | 10 | }↵ | |
11 | } | 11 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
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 having the same super class |
Number of node comparisons | 14 |
Number of mapped statements | 5 |
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) | 63.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
51 | if (isItemLabelVisible(row, column)) | 76 | if (isItemLabelVisible(row, column)) | |||||||||||
52 | if (orientation == PlotOrientation.HORIZONTAL) | 77 | if (orientation == PlotOrientation.HORIZONTAL) | |||||||||||
53 | drawItemLabel(g2, orientation, dataset, row, column, y1, x1, (value < 0.0)); |
| 78 | drawItemLabel(g2, orientation, dataset, row, column, y1, x1, (meanValue.doubleValue() < 0.0)); | ||||||||||
54 | else if (orientation == PlotOrientation.VERTICAL) | 79 | else if (orientation == PlotOrientation.VERTICAL) | |||||||||||
55 | drawItemLabel(g2, orientation, dataset, row, column, x1, y1, (value < 0.0)); |
| 80 | drawItemLabel(g2, orientation, dataset, row, column, x1, y1, (meanValue.doubleValue() < 0.0)); |
Row | Violation |
---|