CloneSet201


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
48220.979statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
148919
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/ContourPlot.java
2461048
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/ContourPlot.java
Next
Last
Clone Instance
1
Line Count
48
Source Line
919
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/ContourPlot.java

if (zNumber[k] != null) {
  g2.setPaint(colorBar.getPaint(zNumber[k].doubleValue()));
  g2.fill(rect);
}
else
  if (this.missingPaint != null) {
    g2.setPaint(this.missingPaint);
    g2.fill(rect);
  }
entityArea = rect;
// add an entity for the item...
if (entities != null) {
  String tip = "";
  if (getToolTipGenerator() != null) {
    tip = this.toolTipGenerator.generateToolTip(data, k);
  }
  //              Shape s = g2.getClip();
  //              if (s.contains(rect) || s.intersects(rect)) {
  String url = null;
  // if (getURLGenerator() != null) {    //dmo: look at this later
  //      url = getURLGenerator().generateURL(data, series, item);
  // }
  // Unlike XYItemRenderer, we need to clone entityArea since it 
  // reused.
  ContourEntity entity = new ContourEntity((Rectangle2D.Double) entityArea.clone(), tip, url);
  entity.setIndex(k);
  entities.add(entity);
//              }
}
// do we need to update the crosshair values?
if (plot.isDomainCrosshairLockedOnData()) {
  if (plot.isRangeCrosshairLockedOnData()) {
    // both axes
    crosshairState.updateCrosshairPoint(x[k], y[k], transX, transY, PlotOrientation.VERTICAL);
  }
  else {
    // just the horizontal axis...
    crosshairState.updateCrosshairX(transX);
  }
}
else {
  if (plot.isRangeCrosshairLockedOnData()) {
    // just the vertical axis...
    crosshairState.updateCrosshairY(transY);
  }
}


First
Previous
Clone Instance
2
Line Count
46
Source Line
1048
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/ContourPlot.java

if (zNumber[k] != null) {
  g2.setPaint(colorBar.getPaint(zNumber[k].doubleValue()));
  g2.fill(rect);
}
else
  if (this.missingPaint != null) {
    g2.setPaint(this.missingPaint);
    g2.fill(rect);
  }
entityArea = rect;
// add an entity for the item...
if (entities != null) {
  String tip = null;
  if (getToolTipGenerator() != null) {
    tip = this.toolTipGenerator.generateToolTip(data, k);
  }
  String url = null;
  // if (getURLGenerator() != null) {   //dmo: look at this later
  //   url = getURLGenerator().generateURL(data, series, item);
  // }
  // Unlike XYItemRenderer, we need to clone entityArea since it 
  // reused.
  ContourEntity entity = new ContourEntity((RectangularShape) entityArea.clone(), tip, url);
  entity.setIndex(k);
  entities.add(entity);
}
// do we need to update the crosshair values?
if (plot.isDomainCrosshairLockedOnData()) {
  if (plot.isRangeCrosshairLockedOnData()) {
    // both axes
    crosshairState.updateCrosshairPoint(x[k], y[k], transX, transY, PlotOrientation.VERTICAL);
  }
  else {
    // just the horizontal axis...
    crosshairState.updateCrosshairX(transX);
  }
}
else {
  if (plot.isRangeCrosshairLockedOnData()) {
    // just the vertical axis...
    crosshairState.updateCrosshairY(transY);
  }
}


Clone AbstractionParameter Count: 2Parameter Bindings

if (zNumber[k] != null) {
  g2.setPaint(colorBar.getPaint(zNumber[k].doubleValue()));
  g2.fill(rect);
}
else
  if (this.missingPaint != null) {
    g2.setPaint(this.missingPaint);
    g2.fill(rect);
  }
entityArea = rect;
// add an entity for the item...
if (entities != null) {
  String tip = [[#variable1a80ece0]];
  if (getToolTipGenerator() != null) {
    tip = this.toolTipGenerator.generateToolTip(data, k);
  }
  //              Shape s = g2.getClip();
  //              if (s.contains(rect) || s.intersects(rect)) {
  String url = null;
  // if (getURLGenerator() != null) {    //dmo: look at this later
  //      url = getURLGenerator().generateURL(data, series, item);
  // if (getURLGenerator() != null) {   //dmo: look at this later
  //   url = getURLGenerator().generateURL(data, series, item);
  // }
  // Unlike XYItemRenderer, we need to clone entityArea since it 
  // reused.
  ContourEntity entity = new ContourEntity(( [[#variable1a8010c0]]) entityArea.clone(), tip, url);
  entity.setIndex(k);
  entities.add(entity);
//              }
}
// do we need to update the crosshair values?
if (plot.isDomainCrosshairLockedOnData()) {
  if (plot.isRangeCrosshairLockedOnData()) {
    // both axes
    crosshairState.updateCrosshairPoint(x[k], y[k], transX, transY, PlotOrientation.VERTICAL);
  }
  else {
    // just the horizontal axis...
    crosshairState.updateCrosshairX(transX);
  }
}
else {
  if (plot.isRangeCrosshairLockedOnData()) {
    // just the vertical axis...
    crosshairState.updateCrosshairY(transY);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a80ece0]]
"" 
12[[#1a80ece0]]
null 
21[[#1a8010c0]]
Rectangle2D.Double 
22[[#1a8010c0]]
RectangularShape