CloneSet173


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
23430.951statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1241531
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/DateAxis.java
224839
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/LogarithmicAxis.java
3241196
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/NumberAxis.java
423620
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/SymbolAxis.java
Next
Last
Clone Instance
1
Line Count
24
Source Line
1531
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/DateAxis.java

if (isVerticalTickLabels()) {
  anchor = TextAnchor.CENTER_RIGHT;
  rotationAnchor = TextAnchor.CENTER_RIGHT;
  if (edge == RectangleEdge.TOP) {
    angle = Math.PI / 2.0;
  }
  else {
    angle = -Math.PI / 2.0;
  }
}
else {
  if (edge == RectangleEdge.TOP) {
    anchor = TextAnchor.BOTTOM_CENTER;
    rotationAnchor = TextAnchor.BOTTOM_CENTER;
  }
  else {
    anchor = TextAnchor.TOP_CENTER;
    rotationAnchor = TextAnchor.TOP_CENTER;
  }
}
Tick tick = new DateTick(tickDate, tickLabel, anchor, rotationAnchor, angle);
result.add(tick);


Next
Previous
Clone Instance
2
Line Count
24
Source Line
839
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/LogarithmicAxis.java

if (isVerticalTickLabels()) {
  anchor = TextAnchor.CENTER_RIGHT;
  rotationAnchor = TextAnchor.CENTER_RIGHT;
  if (edge == RectangleEdge.TOP) {
    angle = Math.PI / 2.0;
  }
  else {
    angle = -Math.PI / 2.0;
  }
}
else {
  if (edge == RectangleEdge.TOP) {
    anchor = TextAnchor.BOTTOM_CENTER;
    rotationAnchor = TextAnchor.BOTTOM_CENTER;
  }
  else {
    anchor = TextAnchor.TOP_CENTER;
    rotationAnchor = TextAnchor.TOP_CENTER;
  }
}
Tick tick = new NumberTick(new Double(currentTickValue), tickLabel, anchor, rotationAnchor, angle);
ticks.add(tick);


Next
Previous
Clone Instance
3
Line Count
24
Source Line
1196
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/NumberAxis.java

if (isVerticalTickLabels()) {
  anchor = TextAnchor.CENTER_RIGHT;
  rotationAnchor = TextAnchor.CENTER_RIGHT;
  if (edge == RectangleEdge.TOP) {
    angle = Math.PI / 2.0;
  }
  else {
    angle = -Math.PI / 2.0;
  }
}
else {
  if (edge == RectangleEdge.TOP) {
    anchor = TextAnchor.BOTTOM_CENTER;
    rotationAnchor = TextAnchor.BOTTOM_CENTER;
  }
  else {
    anchor = TextAnchor.TOP_CENTER;
    rotationAnchor = TextAnchor.TOP_CENTER;
  }
}
Tick tick = new NumberTick(new Double(currentTickValue), tickLabel, anchor, rotationAnchor, angle);
result.add(tick);


First
Previous
Clone Instance
4
Line Count
23
Source Line
620
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/SymbolAxis.java

if (isVerticalTickLabels()) {
  anchor = TextAnchor.CENTER_RIGHT;
  rotationAnchor = TextAnchor.CENTER_RIGHT;
  if (edge == RectangleEdge.TOP) {
    angle = Math.PI / 2.0;
  }
  else {
    angle = -Math.PI / 2.0;
  }
}
else {
  if (edge == RectangleEdge.TOP) {
    anchor = TextAnchor.BOTTOM_CENTER;
    rotationAnchor = TextAnchor.BOTTOM_CENTER;
  }
  else {
    anchor = TextAnchor.TOP_CENTER;
    rotationAnchor = TextAnchor.TOP_CENTER;
  }
}
Tick tick = new NumberTick(new Double(currentTickValue), tickLabel, anchor, rotationAnchor, angle);
ticks.add(tick);


Clone AbstractionParameter Count: 3Parameter Bindings

if (isVerticalTickLabels()) {
  anchor = TextAnchor.CENTER_RIGHT;
  rotationAnchor = TextAnchor.CENTER_RIGHT;
  if (edge == RectangleEdge.TOP) {
    angle = Math.PI / 2.0;
  }
  else {
    angle = -Math.PI / 2.0;
  }
}
else {
  if (edge == RectangleEdge.TOP) {
    anchor = TextAnchor.BOTTOM_CENTER;
    rotationAnchor = TextAnchor.BOTTOM_CENTER;
  }
  else {
    anchor = TextAnchor.TOP_CENTER;
    rotationAnchor = TextAnchor.TOP_CENTER;
  }
}
Tick tick = new [[#variable1aabcde0]]( [[#variable1aac9500]], tickLabel, anchor, rotationAnchor, angle);
 [[#variable1aad6240]].add(tick);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1aabcde0]]
DateTick 
12[[#1aabcde0]]
NumberTick 
13[[#1aabcde0]]
NumberTick 
14[[#1aabcde0]]
NumberTick 
21[[#1aac9500]]
tickDate 
22[[#1aac9500]]
new Double(currentTickValue) 
23[[#1aac9500]]
new Double(currentTickValue) 
24[[#1aac9500]]
new Double(currentTickValue) 
31[[#1aad6240]]
result 
32[[#1aad6240]]
ticks 
33[[#1aad6240]]
result 
34[[#1aad6240]]
ticks