CloneSet72


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
38201.000statement_sequence[8]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
138438
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYAreaRenderer.java
238328
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYAreaRenderer2.java
Next
Last
Clone Instance
1
Line Count
38
Source Line
438
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYAreaRenderer.java

double x2 = dataset.getXValue(series, Math.min(item + 1, itemCount - 1));
double y2 = dataset.getYValue(series, Math.min(item + 1, itemCount - 1));
if (Double.isNaN(y2)) {
  y2 = 0.0;
}
double transX2 = domainAxis.valueToJava2D(x2, dataArea, plot.getDomainAxisEdge());
double transY2 = rangeAxis.valueToJava2D(y2, dataArea, plot.getRangeAxisEdge());
double transZero = rangeAxis.valueToJava2D(0.0, dataArea, plot.getRangeAxisEdge());
Polygon hotspot = null;
if (plot.getOrientation() == PlotOrientation.HORIZONTAL) {
  hotspot = new Polygon();
  hotspot.addPoint((int) transZero, (int) ((transX0 + transX1) / 2.0));
  hotspot.addPoint((int) ((transY0 + transY1) / 2.0), (int) ((transX0 + transX1) / 2.0));
  hotspot.addPoint((int) transY1, (int) transX1);
  hotspot.addPoint((int) ((transY1 + transY2) / 2.0), (int) ((transX1 + transX2) / 2.0));
  hotspot.addPoint((int) transZero, (int) ((transX1 + transX2) / 2.0));
}
else { // vertical orientation
  hotspot = new Polygon();
  hotspot.addPoint((int) ((transX0 + transX1) / 2.0), (int) transZero);
  hotspot.addPoint((int) ((transX0 + transX1) / 2.0), (int) ((transY0 + transY1) / 2.0));
  hotspot.addPoint((int) transX1, (int) transY1);
  hotspot.addPoint((int) ((transX1 + transX2) / 2.0), (int) ((transY1 + transY2) / 2.0));
  hotspot.addPoint((int) ((transX1 + transX2) / 2.0), (int) transZero);
}


First
Previous
Clone Instance
2
Line Count
38
Source Line
328
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYAreaRenderer2.java

double x2 = dataset.getXValue(series, Math.min(item + 1, itemCount - 1));
double y2 = dataset.getYValue(series, Math.min(item + 1, itemCount - 1));
if (Double.isNaN(y2)) {
  y2 = 0.0;
}
double transX2 = domainAxis.valueToJava2D(x2, dataArea, plot.getDomainAxisEdge());
double transY2 = rangeAxis.valueToJava2D(y2, dataArea, plot.getRangeAxisEdge());
double transZero = rangeAxis.valueToJava2D(0.0, dataArea, plot.getRangeAxisEdge());
Polygon hotspot = null;
if (plot.getOrientation() == PlotOrientation.HORIZONTAL) {
  hotspot = new Polygon();
  hotspot.addPoint((int) transZero, (int) ((transX0 + transX1) / 2.0));
  hotspot.addPoint((int) ((transY0 + transY1) / 2.0), (int) ((transX0 + transX1) / 2.0));
  hotspot.addPoint((int) transY1, (int) transX1);
  hotspot.addPoint((int) ((transY1 + transY2) / 2.0), (int) ((transX1 + transX2) / 2.0));
  hotspot.addPoint((int) transZero, (int) ((transX1 + transX2) / 2.0));
}
else { // vertical orientation
  hotspot = new Polygon();
  hotspot.addPoint((int) ((transX0 + transX1) / 2.0), (int) transZero);
  hotspot.addPoint((int) ((transX0 + transX1) / 2.0), (int) ((transY0 + transY1) / 2.0));
  hotspot.addPoint((int) transX1, (int) transY1);
  hotspot.addPoint((int) ((transX1 + transX2) / 2.0), (int) ((transY1 + transY2) / 2.0));
  hotspot.addPoint((int) ((transX1 + transX2) / 2.0), (int) transZero);
}


Clone AbstractionParameter Count: 0Parameter Bindings

double x2 = dataset.getXValue(series, Math.min(item + 1, itemCount - 1));
double y2 = dataset.getYValue(series, Math.min(item + 1, itemCount - 1));
if (Double.isNaN(y2)) {
  y2 = 0.0;
}
double transX2 = domainAxis.valueToJava2D(x2, dataArea, plot.getDomainAxisEdge());
double transY2 = rangeAxis.valueToJava2D(y2, dataArea, plot.getRangeAxisEdge());
double transZero = rangeAxis.valueToJava2D(0.0, dataArea, plot.getRangeAxisEdge());
Polygon hotspot = null;
if (plot.getOrientation() == PlotOrientation.HORIZONTAL) {
  hotspot = new Polygon();
  hotspot.addPoint((int) transZero, (int) ((transX0 + transX1) / 2.0));
  hotspot.addPoint((int) ((transY0 + transY1) / 2.0), (int) ((transX0 + transX1) / 2.0));
  hotspot.addPoint((int) transY1, (int) transX1);
  hotspot.addPoint((int) ((transY1 + transY2) / 2.0), (int) ((transX1 + transX2) / 2.0));
  hotspot.addPoint((int) transZero, (int) ((transX1 + transX2) / 2.0));
}
else { // vertical orientation
  hotspot = new Polygon();
  hotspot.addPoint((int) ((transX0 + transX1) / 2.0), (int) transZero);
  hotspot.addPoint((int) ((transX0 + transX1) / 2.0), (int) ((transY0 + transY1) / 2.0));
  hotspot.addPoint((int) transX1, (int) transY1);
  hotspot.addPoint((int) ((transX1 + transX2) / 2.0), (int) ((transY1 + transY2) / 2.0));
  hotspot.addPoint((int) ((transX1 + transX2) / 2.0), (int) transZero);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None