CloneSet90


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
39210.996statement_sequence[9]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
139371
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/CombinedDomainCategoryPlot.java
239374
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/CombinedDomainXYPlot.java
Next
Last
Clone Instance
1
Line Count
39
Source Line
371
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/CombinedDomainCategoryPlot.java

Rectangle2D adjustedPlotArea = space.shrink(plotArea, null);
// work out the maximum height or width of the non-shared axes...
int n = this.subplots.size();
this.subplotAreas = new Rectangle2D[n];
double x = adjustedPlotArea.getX();
double y = adjustedPlotArea.getY();
double usableSize = 0.0;
if (orientation == PlotOrientation.HORIZONTAL) {
  usableSize = adjustedPlotArea.getWidth() - this.gap * (n - 1);
}
else
  if (orientation == PlotOrientation.VERTICAL) {
    usableSize = adjustedPlotArea.getHeight() - this.gap * (n - 1);
  }
for (int i = 0; i < n; i++) {
  CategoryPlot plot = (CategoryPlot) this.subplots.get(i);
  // calculate sub-plot area
  if (orientation == PlotOrientation.HORIZONTAL) {
    double w = usableSize * plot.getWeight() / this.totalWeight;
    this.subplotAreas[i] = new Rectangle2D.Double(x, y, w, adjustedPlotArea.getHeight());
    x = x + w + this.gap;
  }
  else
    if (orientation == PlotOrientation.VERTICAL) {
      double h = usableSize * plot.getWeight() / this.totalWeight;
      this.subplotAreas[i] = new Rectangle2D.Double(x, y, adjustedPlotArea.getWidth(), h);
      y = y + h + this.gap;
    }
  AxisSpace subSpace = plot.calculateRangeAxisSpace(g2, this.subplotAreas[i], null);
  space.ensureAtLeast(subSpace);
}
return space;


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

Rectangle2D adjustedPlotArea = space.shrink(plotArea, null);
// work out the maximum height or width of the non-shared axes...
int n = this.subplots.size();
this.subplotAreas = new Rectangle2D[n];
double x = adjustedPlotArea.getX();
double y = adjustedPlotArea.getY();
double usableSize = 0.0;
if (orientation == PlotOrientation.HORIZONTAL) {
  usableSize = adjustedPlotArea.getWidth() - this.gap * (n - 1);
}
else
  if (orientation == PlotOrientation.VERTICAL) {
    usableSize = adjustedPlotArea.getHeight() - this.gap * (n - 1);
  }
for (int i = 0; i < n; i++) {
  XYPlot plot = (XYPlot) this.subplots.get(i);
  // calculate sub-plot area
  if (orientation == PlotOrientation.HORIZONTAL) {
    double w = usableSize * plot.getWeight() / this.totalWeight;
    this.subplotAreas[i] = new Rectangle2D.Double(x, y, w, adjustedPlotArea.getHeight());
    x = x + w + this.gap;
  }
  else
    if (orientation == PlotOrientation.VERTICAL) {
      double h = usableSize * plot.getWeight() / this.totalWeight;
      this.subplotAreas[i] = new Rectangle2D.Double(x, y, adjustedPlotArea.getWidth(), h);
      y = y + h + this.gap;
    }
  AxisSpace subSpace = plot.calculateRangeAxisSpace(g2, this.subplotAreas[i], null);
  space.ensureAtLeast(subSpace);
}
return space;


Clone AbstractionParameter Count: 1Parameter Bindings

Rectangle2D adjustedPlotArea = space.shrink(plotArea, null);
// work out the maximum height or width of the non-shared axes...
int n = this.subplots.size();
this.subplotAreas = new Rectangle2D[n];
double x = adjustedPlotArea.getX();
double y = adjustedPlotArea.getY();
double usableSize = 0.0;
if (orientation == PlotOrientation.HORIZONTAL) {
  usableSize = adjustedPlotArea.getWidth() - this.gap * (n - 1);
}
else
  if (orientation == PlotOrientation.VERTICAL) {
    usableSize = adjustedPlotArea.getHeight() - this.gap * (n - 1);
  }
for (int i = 0; i < n; i++) {
   [[#variable150c0d80]] plot = ( [[#variable150c0d80]]) this.subplots.get(i);
  // calculate sub-plot area
  if (orientation == PlotOrientation.HORIZONTAL) {
    double w = usableSize * plot.getWeight() / this.totalWeight;
    this.subplotAreas[i] = new Rectangle2D.Double(x, y, w, adjustedPlotArea.getHeight());
    x = x + w + this.gap;
  }
  else
    if (orientation == PlotOrientation.VERTICAL) {
      double h = usableSize * plot.getWeight() / this.totalWeight;
      this.subplotAreas[i] = new Rectangle2D.Double(x, y, adjustedPlotArea.getWidth(), h);
      y = y + h + this.gap;
    }
  AxisSpace subSpace = plot.calculateRangeAxisSpace(g2, this.subplotAreas[i], null);
  space.ensureAtLeast(subSpace);
}
return space;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#150c0d80]]
CategoryPlot 
12[[#150c0d80]]
XYPlot