CloneSet100


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
39230.993block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
139519
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/LogAxis.java
239570
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/LogAxis.java
Next
Last
Clone Instance
1
Line Count
39
Source Line
519
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/LogAxis.java

{
  Range range = getRange();
  List ticks = new ArrayList();
  Font tickLabelFont = getTickLabelFont();
  g2.setFont(tickLabelFont);
  TextAnchor textAnchor;
  if (edge == RectangleEdge.TOP) {
    textAnchor = TextAnchor.BOTTOM_CENTER;
  }
  else {
    textAnchor = TextAnchor.TOP_CENTER;
  }
  if (isAutoTickUnitSelection()) {
    selectAutoTickUnit(g2, dataArea, edge);
  }
  double start = Math.floor(calculateLog(getLowerBound()));
  double end = Math.ceil(calculateLog(getUpperBound()));
  double current = start;
  while (current <= end) {
    double v = calculateValue(current);
    if (range.contains(v)) {
      ticks.add(new NumberTick(TickType.MAJOR, v, createTickLabel(v), textAnchor, TextAnchor.CENTER, 0.0));
    }
    // add minor ticks (for gridlines)
    double next = Math.pow(this.base, current + this.tickUnit.getSize());
    for (int i = 1; i < this.minorTickCount; i++) {
      double minorV = v + i * ((next - v) / this.minorTickCount);
      if (range.contains(minorV)) {
        ticks.add(new NumberTick(TickType.MINOR, minorV, "", textAnchor, TextAnchor.CENTER, 0.0));
      }
    }
    current = current + this.tickUnit.getSize();
  }
  return ticks;
}


First
Previous
Clone Instance
2
Line Count
39
Source Line
570
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/LogAxis.java

{
  Range range = getRange();
  List ticks = new ArrayList();
  Font tickLabelFont = getTickLabelFont();
  g2.setFont(tickLabelFont);
  TextAnchor textAnchor;
  if (edge == RectangleEdge.RIGHT) {
    textAnchor = TextAnchor.CENTER_LEFT;
  }
  else {
    textAnchor = TextAnchor.CENTER_RIGHT;
  }
  if (isAutoTickUnitSelection()) {
    selectAutoTickUnit(g2, dataArea, edge);
  }
  double start = Math.floor(calculateLog(getLowerBound()));
  double end = Math.ceil(calculateLog(getUpperBound()));
  double current = start;
  while (current <= end) {
    double v = calculateValue(current);
    if (range.contains(v)) {
      ticks.add(new NumberTick(TickType.MAJOR, v, createTickLabel(v), textAnchor, TextAnchor.CENTER, 0.0));
    }
    // add minor ticks (for gridlines)
    double next = Math.pow(this.base, current + this.tickUnit.getSize());
    for (int i = 1; i < this.minorTickCount; i++) {
      double minorV = v + i * ((next - v) / this.minorTickCount);
      if (range.contains(minorV)) {
        ticks.add(new NumberTick(TickType.MINOR, minorV, "", textAnchor, TextAnchor.CENTER, 0.0));
      }
    }
    current = current + this.tickUnit.getSize();
  }
  return ticks;
}


Clone AbstractionParameter Count: 3Parameter Bindings

{
  Range range = getRange();
  List ticks = new ArrayList();
  Font tickLabelFont = getTickLabelFont();
  g2.setFont(tickLabelFont);
  TextAnchor textAnchor;
  if (edge == RectangleEdge. [[#variable1ab12d20]]) {
    textAnchor = TextAnchor. [[#variable1ab12ca0]];
  }
  else {
    textAnchor = TextAnchor. [[#variable1ab12c00]];
  }
  if (isAutoTickUnitSelection()) {
    selectAutoTickUnit(g2, dataArea, edge);
  }
  double start = Math.floor(calculateLog(getLowerBound()));
  double end = Math.ceil(calculateLog(getUpperBound()));
  double current = start;
  while (current <= end) {
    double v = calculateValue(current);
    if (range.contains(v)) {
      ticks.add(new NumberTick(TickType.MAJOR, v, createTickLabel(v), textAnchor, TextAnchor.CENTER, 0.0));
    }
    // add minor ticks (for gridlines)
    double next = Math.pow(this.base, current + this.tickUnit.getSize());
    for (int i = 1; i < this.minorTickCount; i++) {
      double minorV = v + i * ((next - v) / this.minorTickCount);
      if (range.contains(minorV)) {
        ticks.add(new NumberTick(TickType.MINOR, minorV, "", textAnchor, TextAnchor.CENTER, 0.0));
      }
    }
    current = current + this.tickUnit.getSize();
  }
  return ticks;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1ab12d20]]
TOP 
12[[#1ab12d20]]
RIGHT 
21[[#1ab12ca0]]
BOTTOM_CENTER 
22[[#1ab12ca0]]
CENTER_LEFT 
31[[#1ab12c00]]
TOP_CENTER 
32[[#1ab12c00]]
CENTER_RIGHT