if (this.orientation == PlotOrientation.HORIZONTAL) {
space.ensureAtLeast(this.fixedRangeAxisSpace.getTop(),
RectangleEdge.TOP);
space.ensureAtLeast(this.fixedRangeAxisSpace.getBottom(),
RectangleEdge.BOTTOM);
}
else if (this.orientation == PlotOrientation.VERTICAL) {
space.ensureAtLeast(this.fixedRangeAxisSpace.getLeft(),
RectangleEdge.LEFT);
space.ensureAtLeast(this.fixedRangeAxisSpace.getRight(),
RectangleEdge.RIGHT);
if (this.orientation == PlotOrientation.HORIZONTAL) {
space.ensureAtLeast(this.fixedRangeAxisSpace.getTop(),
RectangleEdge.TOP);
space.ensureAtLeast(this.fixedRangeAxisSpace.getBottom(),
RectangleEdge.BOTTOM);
}
else if (this.orientation == PlotOrientation.VERTICAL) {
space.ensureAtLeast(this.fixedRangeAxisSpace.getLeft(),
RectangleEdge.LEFT);
space.ensureAtLeast(this.fixedRangeAxisSpace.getRight(),
RectangleEdge.RIGHT);
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java
|
|
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | if (this.orientation == PlotOrientation.HORIZONTAL) {↵ | | 1 | if (this.orientation == PlotOrientation.HORIZONTAL) {↵
|
2 | space.ensureAtLeast(this.fixedRangeAxisSpace.getTop(),↵ | | 2 | space.ensureAtLeast(this.fixedRangeAxisSpace.getTop(),↵
|
3 | RectangleEdge.TOP);↵ | | 3 | RectangleEdge.TOP);↵
|
4 | space.ensureAtLeast(this.fixedRangeAxisSpace.getBottom(),↵ | | 4 | space.ensureAtLeast(this.fixedRangeAxisSpace.getBottom(),↵
|
5 | RectangleEdge.BOTTOM);↵ | | 5 | RectangleEdge.BOTTOM);↵
|
6 | }↵ | | 6 | }↵
|
7 | else if (this.orientation == PlotOrientation.VERTICAL) {↵ | | 7 | else if (this.orientation == PlotOrientation.VERTICAL) {↵
|
8 | space.ensureAtLeast(this.fixedRangeAxisSpace.getLeft(),↵ | | 8 | space.ensureAtLeast(this.fixedRangeAxisSpace.getLeft(),↵
|
9 | RectangleEdge.LEFT);↵ | | 9 | RectangleEdge.LEFT);↵
|
10 | space.ensureAtLeast(this.fixedRangeAxisSpace.getRight(),↵ | | 10 | space.ensureAtLeast(this.fixedRangeAxisSpace.getRight(),↵
|
11 | RectangleEdge.RIGHT);↵ | | 11 | RectangleEdge.RIGHT);↵
|
12 | | | 12 |
|
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 |