CloneSet172


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
34210.991method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1342768
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java
2342709
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java
Next
Last
Clone Instance
1
Line Count
34
Source Line
2768
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java

/**
 * Calculates the space required for the range axis/axes.
 *
 * @param g2  the graphics device.
 * @param plotArea  the plot area.
 * @param space  a carrier for the result (<code>null</code> permitted).
 *
 * @return The required space.
 */
protected AxisSpace calculateRangeAxisSpace(Graphics2D g2, Rectangle2D plotArea, AxisSpace space) {
  if (space == null) {
    space = new AxisSpace();
  }
  // reserve some space for the range axis...
  if (this.fixedRangeAxisSpace != null) {
    if (this.orientation == PlotOrientation.HORIZONTAL) {
      space.ensureAtLeast(this.fixedRangeAxisSpace.getTop(), RectangleEdge.TOP);
      space.ensureAtLeast(this.fixedRangeAxisSpace.getBottom(), RectangleEdge.BOTTOM);
    }
    else
      if (this.orientation == PlotOrientation.VERTICAL) {
        space.ensureAtLeast(this.fixedRangeAxisSpace.getLeft(), RectangleEdge.LEFT);
        space.ensureAtLeast(this.fixedRangeAxisSpace.getRight(), RectangleEdge.RIGHT);
      }
  }
  else {
    // reserve space for the range axes (if any)...
    for (int i = 0; i < this.rangeAxes.size(); i++) {
      Axis yAxis = (Axis) this.rangeAxes.get(i);
      if (yAxis != null) {
        RectangleEdge edge = getRangeAxisEdge(i);
        space = yAxis.reserveSpace(g2, this, plotArea, edge, space);
      }
    }
  }
  return space;
}


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

/**
 * Calculates the space required for the range axis/axes.
 *
 * @param g2  the graphics device.
 * @param plotArea  the plot area.
 * @param space  a carrier for the result (<code>null</code> permitted).
 *
 * @return The required space.
 */
protected AxisSpace calculateRangeAxisSpace(Graphics2D g2, Rectangle2D plotArea, AxisSpace space) {
  if (space == null) {
    space = new AxisSpace();
  }
  // reserve some space for the range axis...
  if (this.fixedRangeAxisSpace != null) {
    if (this.orientation == PlotOrientation.HORIZONTAL) {
      space.ensureAtLeast(this.fixedRangeAxisSpace.getTop(), RectangleEdge.TOP);
      space.ensureAtLeast(this.fixedRangeAxisSpace.getBottom(), RectangleEdge.BOTTOM);
    }
    else
      if (this.orientation == PlotOrientation.VERTICAL) {
        space.ensureAtLeast(this.fixedRangeAxisSpace.getLeft(), RectangleEdge.LEFT);
        space.ensureAtLeast(this.fixedRangeAxisSpace.getRight(), RectangleEdge.RIGHT);
      }
  }
  else {
    // reserve space for the range axes...
    for (int i = 0; i < this.rangeAxes.size(); i++) {
      Axis axis = (Axis) this.rangeAxes.get(i);
      if (axis != null) {
        RectangleEdge edge = getRangeAxisEdge(i);
        space = axis.reserveSpace(g2, this, plotArea, edge, space);
      }
    }
  }
  return space;
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
     * Calculates the space required for the range axis/axes.
     *
     * @param g2  the graphics device.
     * @param plotArea  the plot area.
     * @param space  a carrier for the result (<code>null</code> permitted).
     *
     * @return The required space.
     */
protected AxisSpace calculateRangeAxisSpace(Graphics2D g2, Rectangle2D plotArea, AxisSpace space) {
  if (space == null) {
    space = new AxisSpace();
  }
  // reserve some space for the range axis...
  if (this.fixedRangeAxisSpace != null) {
    if (this.orientation == PlotOrientation.HORIZONTAL) {
      space.ensureAtLeast(this.fixedRangeAxisSpace.getTop(), RectangleEdge.TOP);
      space.ensureAtLeast(this.fixedRangeAxisSpace.getBottom(), RectangleEdge.BOTTOM);
    }
    else
      if (this.orientation == PlotOrientation.VERTICAL) {
        space.ensureAtLeast(this.fixedRangeAxisSpace.getLeft(), RectangleEdge.LEFT);
        space.ensureAtLeast(this.fixedRangeAxisSpace.getRight(), RectangleEdge.RIGHT);
      }
  }
  else {
    // reserve space for the range axes (if any)...
    // reserve space for the range axes...
    for (int i = 0; i < this.rangeAxes.size(); i++) {
      Axis  [[#variable1aad0480]]= (Axis) this.rangeAxes.get(i);
      if ( [[#variable1aad0480]]!= null) {
        RectangleEdge edge = getRangeAxisEdge(i);
        space = [[#variable1aad0480]].reserveSpace(g2, this, plotArea, edge, space);
      }
    }
  }
  return space;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1aad0480]]
yAxis 
12[[#1aad0480]]
axis